raw_ip.c (9c79794016d679440487dea61b3b986397c9ecbb) raw_ip.c (f6dfe47a145263dc5eb67fa4789925ab708709bc)
1/*-
2 * Copyright (c) 1982, 1986, 1988, 1993
3 * The Regents of the University of California.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

182
183void
184rip_init(void)
185{
186 INIT_VNET_INET(curvnet);
187
188 INP_INFO_LOCK_INIT(&V_ripcbinfo, "rip");
189 LIST_INIT(&V_ripcb);
1/*-
2 * Copyright (c) 1982, 1986, 1988, 1993
3 * The Regents of the University of California.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

182
183void
184rip_init(void)
185{
186 INIT_VNET_INET(curvnet);
187
188 INP_INFO_LOCK_INIT(&V_ripcbinfo, "rip");
189 LIST_INIT(&V_ripcb);
190#ifdef VIMAGE
191 V_ripcbinfo.ipi_vnet = curvnet;
192#endif
190 V_ripcbinfo.ipi_listhead = &V_ripcb;
191 V_ripcbinfo.ipi_hashbase =
192 hashinit(INP_PCBHASH_RAW_SIZE, M_PCB, &V_ripcbinfo.ipi_hashmask);
193 V_ripcbinfo.ipi_porthashbase =
194 hashinit(1, M_PCB, &V_ripcbinfo.ipi_porthashmask);
195 V_ripcbinfo.ipi_zone = uma_zcreate("ripcb", sizeof(struct inpcb),
196 NULL, NULL, rip_inpcb_init, NULL, UMA_ALIGN_PTR, UMA_ZONE_NOFREE);
197 uma_zone_set_max(V_ripcbinfo.ipi_zone, maxsockets);

--- 857 unchanged lines hidden ---
193 V_ripcbinfo.ipi_listhead = &V_ripcb;
194 V_ripcbinfo.ipi_hashbase =
195 hashinit(INP_PCBHASH_RAW_SIZE, M_PCB, &V_ripcbinfo.ipi_hashmask);
196 V_ripcbinfo.ipi_porthashbase =
197 hashinit(1, M_PCB, &V_ripcbinfo.ipi_porthashmask);
198 V_ripcbinfo.ipi_zone = uma_zcreate("ripcb", sizeof(struct inpcb),
199 NULL, NULL, rip_inpcb_init, NULL, UMA_ALIGN_PTR, UMA_ZONE_NOFREE);
200 uma_zone_set_max(V_ripcbinfo.ipi_zone, maxsockets);

--- 857 unchanged lines hidden ---