summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/defs.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/defs.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/defs.h')
-rw-r--r--usr.sbin/ppp/defs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/ppp/defs.h b/usr.sbin/ppp/defs.h
index a47c12e..aca0a29 100644
--- a/usr.sbin/ppp/defs.h
+++ b/usr.sbin/ppp/defs.h
@@ -96,6 +96,8 @@
#define PARSE_REDUCE 1
#define PARSE_NOHASH 2
+#define ROUNDUP(x) ((x) ? (1 + (((x) - 1) | (sizeof(long) - 1))) : sizeof(long))
+
extern void randinit(void);
extern ssize_t fullread(int, void *, size_t);
extern const char *mode2Nam(int);
OpenPOWER on IntegriCloud