if.c (10b3b54548f2290bbe8d8f88c59c28d12b7a635d) if.c (13e403fdeadd26f9748ba83ea50ee271fbfc862a)
1/*
2 * Copyright (c) 1983, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 28 unchanged lines hidden (view full) ---

37#elif defined(__FreeBSD__)
38__RCSID("$FreeBSD$");
39#else
40__RCSID("$Revision: 2.27 $");
41#ident "$Revision: 2.27 $"
42#endif
43
44struct ifhead ifnet = LIST_HEAD_INITIALIZER(ifnet); /* all interfaces */
1/*
2 * Copyright (c) 1983, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 28 unchanged lines hidden (view full) ---

37#elif defined(__FreeBSD__)
38__RCSID("$FreeBSD$");
39#else
40__RCSID("$Revision: 2.27 $");
41#ident "$Revision: 2.27 $"
42#endif
43
44struct ifhead ifnet = LIST_HEAD_INITIALIZER(ifnet); /* all interfaces */
45struct ifhead remote_if = LIST_HEAD_INITIALIZER(ifnet); /* remote interfaces */
45struct ifhead remote_if = LIST_HEAD_INITIALIZER(remote_if); /* remote interfaces */
46
47/* hash table for all interfaces, big enough to tolerate ridiculous
48 * numbers of IP aliases. Crazy numbers of aliases such as 7000
49 * still will not do well, but not just in looking up interfaces
50 * by name or address.
51 */
52#define AHASH_LEN 211 /* must be prime */
53#define AHASH(a) &ahash_tbl[(a)%AHASH_LEN]

--- 1328 unchanged lines hidden ---
46
47/* hash table for all interfaces, big enough to tolerate ridiculous
48 * numbers of IP aliases. Crazy numbers of aliases such as 7000
49 * still will not do well, but not just in looking up interfaces
50 * by name or address.
51 */
52#define AHASH_LEN 211 /* must be prime */
53#define AHASH(a) &ahash_tbl[(a)%AHASH_LEN]

--- 1328 unchanged lines hidden ---