diff options
author | Esben Norby <norby@cvs.openbsd.org> | 2006-06-02 15:43:17 +0000 |
---|---|---|
committer | Esben Norby <norby@cvs.openbsd.org> | 2006-06-02 15:43:17 +0000 |
commit | 16f51895c695dd96d7876b703d69137146fd3da4 (patch) | |
tree | b75e7d2ca15b2615e05665ad73c12a9ba160e0c0 /usr.sbin/dvmrpd/dvmrpd.h | |
parent | 47fcf79410eea6ff9db7753c088aafc2a9897344 (diff) |
simplify netid_len calculation, inspired by stuff from bgpd.
Diffstat (limited to 'usr.sbin/dvmrpd/dvmrpd.h')
-rw-r--r-- | usr.sbin/dvmrpd/dvmrpd.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/dvmrpd/dvmrpd.h b/usr.sbin/dvmrpd/dvmrpd.h index 34544c7e677..8e6ef2b89e6 100644 --- a/usr.sbin/dvmrpd/dvmrpd.h +++ b/usr.sbin/dvmrpd/dvmrpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dvmrpd.h,v 1.3 2006/06/01 22:07:30 claudio Exp $ */ +/* $OpenBSD: dvmrpd.h,v 1.4 2006/06/02 15:43:16 norby Exp $ */ /* * Copyright (c) 2004, 2005, 2006 Esben Norby <norby@openbsd.org> @@ -447,4 +447,6 @@ const char *group_state_name(int); /* printconf.c */ void print_config(struct dvmrpd_conf *); +#define PREFIX_SIZE(x) (((x) + 7) / 8) + #endif /* _DVMRPD_H_ */ |