summaryrefslogtreecommitdiffstats
path: root/netlink.h
diff options
context:
space:
mode:
authorRobert Millan <rmh@debian.org>2011-06-15 16:49:24 +0200
committerLennart Poettering <lennart@poettering.net>2011-06-15 16:49:56 +0200
commit1df2a0fce427fab7754f6ac572cf68cef2e95696 (patch)
tree3a4fcc5f1e9a3cad3d4c875564b48afed73ae926 /netlink.h
parent87a477c74e2478e94e89e7026cf7207fcdc2dffc (diff)
Use legacy getifaddrs() on GNU/kFreeBSDHEADmaster
Diffstat (limited to 'netlink.h')
-rw-r--r--netlink.h48
1 files changed, 0 insertions, 48 deletions
diff --git a/netlink.h b/netlink.h
deleted file mode 100644
index 4f00248..0000000
--- a/netlink.h
+++ /dev/null
@@ -1,48 +0,0 @@
-/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-
-#ifndef foonetlinkhfoo
-#define foonetlinkhfoo
-
-/***
- This file is part of nss-myhostname.
-
- Copyright 2008-2011 Lennart Poettering
-
- nss-myhostname is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public License
- as published by the Free Software Foundation; either version 2.1 of
- the License, or (at your option) any later version.
-
- nss-myhostname is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with nss-myhostname; If not, see
- <http://www.gnu.org/licenses/>.
-***/
-
-#include <inttypes.h>
-#include <sys/types.h>
-#include <assert.h>
-
-struct address {
- unsigned char family;
- uint8_t address[16];
- unsigned char scope;
- int ifindex;
-};
-
-#define _public_ __attribute__ ((visibility("default")))
-#define _hidden_ __attribute__ ((visibility("hidden")))
-
-int netlink_acquire_addresses(struct address **_list, unsigned *_n_list) _hidden_;
-
-static inline size_t PROTO_ADDRESS_SIZE(int proto) {
- assert(proto == AF_INET || proto == AF_INET6);
-
- return proto == AF_INET6 ? 16 : 4;
-}
-
-#endif