chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sd-rtnl: recv_message - drop message when peeking fails
[elogind.git]
/
src
/
libsystemd
/
sd-rtnl
/
local-addresses.h
diff --git
a/src/libsystemd/sd-rtnl/local-addresses.h
b/src/libsystemd/sd-rtnl/local-addresses.h
index cc26fc479b3dd93a99c0c7ff0f61536ea768b7e1..ef7def530db50d5d52b81c3228a6143ca46fc8da 100644
(file)
--- a/
src/libsystemd/sd-rtnl/local-addresses.h
+++ b/
src/libsystemd/sd-rtnl/local-addresses.h
@@
-26,12
+26,16
@@
#include <assert.h>
#include <sys/socket.h>
#include <assert.h>
#include <sys/socket.h>
-#include "socket-util.h"
+#include "sd-rtnl.h"
+#include "in-addr-util.h"
struct local_address {
struct local_address {
- int ifindex;
- unsigned char family, scope;
+ int family, ifindex;
+ unsigned char scope;
+ uint32_t metric;
union in_addr_union address;
};
union in_addr_union address;
};
-int local_addresses(struct local_address **ret);
+int local_addresses(sd_rtnl *rtnl, int ifindex, int af, struct local_address **ret);
+
+int local_gateways(sd_rtnl *rtnl, int ifindex, int af, struct local_address **ret);