ip_divert.c (093f25f8c8b449b9b3cdb6cac7ef2d31f84bdca7) ip_divert.c (f6dfe47a145263dc5eb67fa4789925ab708709bc)
1/*-
2 * Copyright (c) 1982, 1986, 1988, 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

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

157void
158div_init(void)
159{
160 INIT_VNET_INET(curvnet);
161
162 INP_INFO_LOCK_INIT(&V_divcbinfo, "div");
163 LIST_INIT(&V_divcb);
164 V_divcbinfo.ipi_listhead = &V_divcb;
1/*-
2 * Copyright (c) 1982, 1986, 1988, 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

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

157void
158div_init(void)
159{
160 INIT_VNET_INET(curvnet);
161
162 INP_INFO_LOCK_INIT(&V_divcbinfo, "div");
163 LIST_INIT(&V_divcb);
164 V_divcbinfo.ipi_listhead = &V_divcb;
165#ifdef VIMAGE
166 V_divcbinfo.ipi_vnet = curvnet;
167#endif
165 /*
166 * XXX We don't use the hash list for divert IP, but it's easier
167 * to allocate a one entry hash list than it is to check all
168 * over the place for hashbase == NULL.
169 */
170 V_divcbinfo.ipi_hashbase = hashinit(1, M_PCB, &V_divcbinfo.ipi_hashmask);
171 V_divcbinfo.ipi_porthashbase = hashinit(1, M_PCB,
172 &V_divcbinfo.ipi_porthashmask);

--- 617 unchanged lines hidden ---
168 /*
169 * XXX We don't use the hash list for divert IP, but it's easier
170 * to allocate a one entry hash list than it is to check all
171 * over the place for hashbase == NULL.
172 */
173 V_divcbinfo.ipi_hashbase = hashinit(1, M_PCB, &V_divcbinfo.ipi_hashmask);
174 V_divcbinfo.ipi_porthashbase = hashinit(1, M_PCB,
175 &V_divcbinfo.ipi_porthashmask);

--- 617 unchanged lines hidden ---