From 313da145187d92845fc88dcc3926b17226229e7a Mon Sep 17 00:00:00 2001 From: "Nicholas J. Kain" Date: Fri, 6 May 2016 06:36:01 -0400 Subject: [PATCH] Update nl.[ch] to latest. No functional change for ndhc. --- src/nl.c | 5 +++++ src/nl.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/nl.c b/src/nl.c index 2c9d4ab..0f029b7 100644 --- a/src/nl.c +++ b/src/nl.c @@ -243,6 +243,11 @@ int nl_sendgetaddrs6(int fd, int seq) return nl_sendgetaddr_do(fd, seq, 0, 0, AF_INET6, 1); } +int nl_sendgetaddr(int fd, int seq, int ifindex) +{ + return nl_sendgetaddr_do(fd, seq, ifindex, 1, 0, 0); +} + int nl_sendgetaddr4(int fd, int seq, int ifindex) { return nl_sendgetaddr_do(fd, seq, ifindex, 1, AF_INET, 1); diff --git a/src/nl.h b/src/nl.h index 2e6b8f8..0a742f9 100644 --- a/src/nl.h +++ b/src/nl.h @@ -56,6 +56,7 @@ int nl_foreach_nlmsg(char *buf, size_t blen, uint32_t seq, nlmsg_foreach_fn pfn, void *fnarg); int nl_sendgetlinks(int fd, int seq); int nl_sendgetlink(int fd, int seq, int ifindex); +int nl_sendgetaddr(int fd, int seq, int ifindex); int nl_sendgetaddr4(int fd, int seq, int ifindex); int nl_sendgetaddr6(int fd, int seq, int ifindex); int nl_sendgetaddrs(int fd, int seq);