summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/iface.h
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2000-03-14 01:46:44 +0000
committerbrian <brian@FreeBSD.org>2000-03-14 01:46:44 +0000
commita69e155f87ae5e1b59088d06927f1d02e5fd2518 (patch)
tree6f68255de2ce33b073f473b78e8f9283010443ea /usr.sbin/ppp/iface.h
parentca63a8dc14cfe59294896ffbad69a07d20d6a4f4 (diff)
downloadFreeBSD-src-a69e155f87ae5e1b59088d06927f1d02e5fd2518.zip
FreeBSD-src-a69e155f87ae5e1b59088d06927f1d02e5fd2518.tar.gz
The interface list that comes back from the PF_ROUTE/NET_RT_IFLIST mib
is aligned. Teach this to ``show route''. Clean up some of the sockaddr parsing routines.
Diffstat (limited to 'usr.sbin/ppp/iface.h')
-rw-r--r--usr.sbin/ppp/iface.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.sbin/ppp/iface.h b/usr.sbin/ppp/iface.h
index a42ec09..f22883b 100644
--- a/usr.sbin/ppp/iface.h
+++ b/usr.sbin/ppp/iface.h
@@ -26,6 +26,8 @@
* $FreeBSD$
*/
+struct ifa_msghdr;
+
struct iface_addr {
struct in_addr ifa; /* local address */
struct in_addr mask; /* netmask */
@@ -60,3 +62,4 @@ extern int iface_Show(struct cmdargs const *);
extern int iface_SetFlags(struct iface *, int);
extern int iface_ClearFlags(struct iface *, int);
extern void iface_Destroy(struct iface *);
+extern void iface_ParseHdr(struct ifa_msghdr *, struct sockaddr *[RTAX_MAX]);
OpenPOWER on IntegriCloud