diff options
author | bms <bms@FreeBSD.org> | 2003-11-14 18:53:22 +0000 |
---|---|---|
committer | bms <bms@FreeBSD.org> | 2003-11-14 18:53:22 +0000 |
commit | 47c129ab4445e4c2476772fd12576c58374dc7f0 (patch) | |
tree | d7da58d9004bc41430474427213f067467a3eb59 /include | |
parent | 690de3f7ac39802c0fe04563dacd6ab0f2a4d79f (diff) | |
download | FreeBSD-src-47c129ab4445e4c2476772fd12576c58374dc7f0.zip FreeBSD-src-47c129ab4445e4c2476772fd12576c58374dc7f0.tar.gz |
Add the userland part of the NET_RT_IFMALIST sysctl MIB. A new function,
getifmaddrs(), is added to retrieve current multicast group memberships.
Reviewed by: harti
Diffstat (limited to 'include')
-rw-r--r-- | include/ifaddrs.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/ifaddrs.h b/include/ifaddrs.h index dfbf0de..f0911a4 100644 --- a/include/ifaddrs.h +++ b/include/ifaddrs.h @@ -46,11 +46,20 @@ struct ifaddrs { #define ifa_broadaddr ifa_dstaddr /* broadcast address interface */ #endif +struct ifmaddrs { + struct ifmaddrs *ifma_next; + struct sockaddr *ifma_name; + struct sockaddr *ifma_addr; + struct sockaddr *ifma_lladdr; +}; + #include <sys/cdefs.h> __BEGIN_DECLS extern int getifaddrs(struct ifaddrs **); extern void freeifaddrs(struct ifaddrs *); +extern int getifmaddrs(struct ifmaddrs **); +extern void freeifmaddrs(struct ifmaddrs *); __END_DECLS #endif |