projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't rely on AF_MAX (comes from kernel include): check for nil explicitly,
[unix-history]
/
usr
/
src
/
sbin
/
routed
/
af.h
diff --git
a/usr/src/sbin/routed/af.h
b/usr/src/sbin/routed/af.h
index
99747b8
..
ac8ceff
100644
(file)
--- a/
usr/src/sbin/routed/af.h
+++ b/
usr/src/sbin/routed/af.h
@@
-1,4
+1,10
@@
-/* af.h 4.2 84/03/07 */
+/*
+ * Copyright (c) 1983 Regents of the University of California.
+ * All rights reserved. The Berkeley software License Agreement
+ * specifies the terms and conditions for redistribution.
+ *
+ * @(#)af.h 5.2 (Berkeley) %G%
+ */
/*
* Routing table management daemon.
/*
* Routing table management daemon.
@@
-16,6
+22,7
@@
struct afswitch {
int (*af_checkhost)(); /* tells if address for host or net */
int (*af_ishost)(); /* tells if address is valid */
int (*af_canon)(); /* canonicalize address for compares */
int (*af_checkhost)(); /* tells if address for host or net */
int (*af_ishost)(); /* tells if address is valid */
int (*af_canon)(); /* canonicalize address for compares */
+ char *(*af_format)(); /* convert address to string */
};
/*
};
/*
@@
-26,4
+33,5
@@
struct afhash {
u_int afh_nethash; /* network based hash */
};
u_int afh_nethash; /* network based hash */
};
-struct afswitch afswitch[AF_MAX]; /* table proper */
+struct afswitch afswitch[]; /* table proper */
+int af_max; /* number of entries in table */