udp_usrreq.c (093f25f8c8b449b9b3cdb6cac7ef2d31f84bdca7) | udp_usrreq.c (f6dfe47a145263dc5eb67fa4789925ab708709bc) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 1988, 1990, 1993, 1995 3 * The Regents of the University of California. 4 * Copyright (c) 2008 Robert N. M. Watson 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 165 unchanged lines hidden (view full) --- 174udp_init(void) 175{ 176 INIT_VNET_INET(curvnet); 177 178 V_udp_blackhole = 0; 179 180 INP_INFO_LOCK_INIT(&V_udbinfo, "udp"); 181 LIST_INIT(&V_udb); | 1/*- 2 * Copyright (c) 1982, 1986, 1988, 1990, 1993, 1995 3 * The Regents of the University of California. 4 * Copyright (c) 2008 Robert N. M. Watson 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 165 unchanged lines hidden (view full) --- 174udp_init(void) 175{ 176 INIT_VNET_INET(curvnet); 177 178 V_udp_blackhole = 0; 179 180 INP_INFO_LOCK_INIT(&V_udbinfo, "udp"); 181 LIST_INIT(&V_udb); |
182#ifdef VIMAGE 183 V_udbinfo.ipi_vnet = curvnet; 184#endif |
|
182 V_udbinfo.ipi_listhead = &V_udb; 183 V_udbinfo.ipi_hashbase = hashinit(UDBHASHSIZE, M_PCB, 184 &V_udbinfo.ipi_hashmask); 185 V_udbinfo.ipi_porthashbase = hashinit(UDBHASHSIZE, M_PCB, 186 &V_udbinfo.ipi_porthashmask); 187 V_udbinfo.ipi_zone = uma_zcreate("udpcb", sizeof(struct inpcb), NULL, 188 NULL, udp_inpcb_init, NULL, UMA_ALIGN_PTR, UMA_ZONE_NOFREE); 189 uma_zone_set_max(V_udbinfo.ipi_zone, maxsockets); --- 1145 unchanged lines hidden --- | 185 V_udbinfo.ipi_listhead = &V_udb; 186 V_udbinfo.ipi_hashbase = hashinit(UDBHASHSIZE, M_PCB, 187 &V_udbinfo.ipi_hashmask); 188 V_udbinfo.ipi_porthashbase = hashinit(UDBHASHSIZE, M_PCB, 189 &V_udbinfo.ipi_porthashmask); 190 V_udbinfo.ipi_zone = uma_zcreate("udpcb", sizeof(struct inpcb), NULL, 191 NULL, udp_inpcb_init, NULL, UMA_ALIGN_PTR, UMA_ZONE_NOFREE); 192 uma_zone_set_max(V_udbinfo.ipi_zone, maxsockets); --- 1145 unchanged lines hidden --- |