From a69e155f87ae5e1b59088d06927f1d02e5fd2518 Mon Sep 17 00:00:00 2001 From: brian Date: Tue, 14 Mar 2000 01:46:44 +0000 Subject: 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. --- usr.sbin/ppp/iface.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'usr.sbin/ppp/iface.h') 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]); -- cgit v1.1