in_var.h (44e33a075818146eb289c39c3ca2817f54517c9f) | in_var.h (1b193af6101e6c1d10c6e2c5486bd4bbb7252fc2) |
---|---|
1/*- 2 * Copyright (c) 1985, 1986, 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 --- 70 unchanged lines hidden (view full) --- 79 80 81#ifdef _KERNEL 82extern u_char inetctlerrmap[]; 83 84/* 85 * Hash table for IP addresses. 86 */ | 1/*- 2 * Copyright (c) 1985, 1986, 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 --- 70 unchanged lines hidden (view full) --- 79 80 81#ifdef _KERNEL 82extern u_char inetctlerrmap[]; 83 84/* 85 * Hash table for IP addresses. 86 */ |
87extern LIST_HEAD(in_ifaddrhashhead, in_ifaddr) *in_ifaddrhashtbl; 88extern TAILQ_HEAD(in_ifaddrhead, in_ifaddr) in_ifaddrhead; | 87TAILQ_HEAD(in_ifaddrhead, in_ifaddr); 88LIST_HEAD(in_ifaddrhashhead, in_ifaddr); 89#ifdef VIMAGE_GLOBALS 90extern struct in_ifaddrhashhead *in_ifaddrhashtbl; 91extern struct in_ifaddrhead in_ifaddrhead; |
89extern u_long in_ifaddrhmask; /* mask for hash table */ | 92extern u_long in_ifaddrhmask; /* mask for hash table */ |
93#endif |
|
90 91#define INADDR_NHASH_LOG2 9 92#define INADDR_NHASH (1 << INADDR_NHASH_LOG2) 93#define INADDR_HASHVAL(x) fnv_32_buf((&(x)), sizeof(x), FNV1_32_INIT) 94#define INADDR_HASH(x) \ 95 (&V_in_ifaddrhashtbl[INADDR_HASHVAL(x) & V_in_ifaddrhmask]) 96 97/* --- 124 unchanged lines hidden (view full) --- 222#ifdef _KERNEL 223 224#ifdef SYSCTL_DECL 225SYSCTL_DECL(_net_inet); 226SYSCTL_DECL(_net_inet_ip); 227SYSCTL_DECL(_net_inet_raw); 228#endif 229 | 94 95#define INADDR_NHASH_LOG2 9 96#define INADDR_NHASH (1 << INADDR_NHASH_LOG2) 97#define INADDR_HASHVAL(x) fnv_32_buf((&(x)), sizeof(x), FNV1_32_INIT) 98#define INADDR_HASH(x) \ 99 (&V_in_ifaddrhashtbl[INADDR_HASHVAL(x) & V_in_ifaddrhmask]) 100 101/* --- 124 unchanged lines hidden (view full) --- 226#ifdef _KERNEL 227 228#ifdef SYSCTL_DECL 229SYSCTL_DECL(_net_inet); 230SYSCTL_DECL(_net_inet_ip); 231SYSCTL_DECL(_net_inet_raw); 232#endif 233 |
230extern LIST_HEAD(in_multihead, in_multi) in_multihead; | 234LIST_HEAD(in_multihead, in_multi); 235#ifdef VIMAGE_GLOBALS 236extern struct in_multihead in_multihead; 237#endif |
231 232/* 233 * Lock macros for IPv4 layer multicast address lists. IPv4 lock goes 234 * before link layer multicast locks in the lock order. In most cases, 235 * consumers of IN_*_MULTI() macros should acquire the locks before 236 * calling them; users of the in_{add,del}multi() functions should not. 237 */ 238extern struct mtx in_multi_mtx; --- 99 unchanged lines hidden --- | 238 239/* 240 * Lock macros for IPv4 layer multicast address lists. IPv4 lock goes 241 * before link layer multicast locks in the lock order. In most cases, 242 * consumers of IN_*_MULTI() macros should acquire the locks before 243 * calling them; users of the in_{add,del}multi() functions should not. 244 */ 245extern struct mtx in_multi_mtx; --- 99 unchanged lines hidden --- |