ip6_input.c (33cde13046eaba762428c55bb5d5e07c1a7c5f33) | ip6_input.c (f6dfe47a145263dc5eb67fa4789925ab708709bc) |
---|---|
1/*- 2 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 3 * 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 --- 147 unchanged lines hidden (view full) --- 156#endif 157 158#ifndef VIMAGE_GLOBALS 159static void vnet_inet6_register(void); 160 161static const vnet_modinfo_t vnet_inet6_modinfo = { 162 .vmi_id = VNET_MOD_INET6, 163 .vmi_name = "inet6", | 1/*- 2 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 3 * 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 --- 147 unchanged lines hidden (view full) --- 156#endif 157 158#ifndef VIMAGE_GLOBALS 159static void vnet_inet6_register(void); 160 161static const vnet_modinfo_t vnet_inet6_modinfo = { 162 .vmi_id = VNET_MOD_INET6, 163 .vmi_name = "inet6", |
164 .vmi_size = sizeof(struct vnet_inet6), |
|
164 .vmi_dependson = VNET_MOD_INET /* XXX revisit - TCP/UDP needs this? */ 165}; 166 167static void 168vnet_inet6_register(void) 169{ 170 171 vnet_mod_register(&vnet_inet6_modinfo); --- 130 unchanged lines hidden (view full) --- 302 303static int 304ip6_init2_vnet(const void *unused __unused) 305{ 306 INIT_VNET_INET6(curvnet); 307 308 /* nd6_timer_init */ 309 callout_init(&V_nd6_timer_ch, 0); | 165 .vmi_dependson = VNET_MOD_INET /* XXX revisit - TCP/UDP needs this? */ 166}; 167 168static void 169vnet_inet6_register(void) 170{ 171 172 vnet_mod_register(&vnet_inet6_modinfo); --- 130 unchanged lines hidden (view full) --- 303 304static int 305ip6_init2_vnet(const void *unused __unused) 306{ 307 INIT_VNET_INET6(curvnet); 308 309 /* nd6_timer_init */ 310 callout_init(&V_nd6_timer_ch, 0); |
310 callout_reset(&V_nd6_timer_ch, hz, nd6_timer, NULL); | 311 callout_reset(&V_nd6_timer_ch, hz, nd6_timer, curvnet); |
311 312 /* timer for regeneranation of temporary addresses randomize ID */ 313 callout_init(&V_in6_tmpaddrtimer_ch, 0); 314 callout_reset(&V_in6_tmpaddrtimer_ch, 315 (V_ip6_temp_preferred_lifetime - V_ip6_desync_factor - 316 V_ip6_temp_regen_advance) * hz, | 312 313 /* timer for regeneranation of temporary addresses randomize ID */ 314 callout_init(&V_in6_tmpaddrtimer_ch, 0); 315 callout_reset(&V_in6_tmpaddrtimer_ch, 316 (V_ip6_temp_preferred_lifetime - V_ip6_desync_factor - 317 V_ip6_temp_regen_advance) * hz, |
317 in6_tmpaddrtimer, NULL); | 318 in6_tmpaddrtimer, curvnet); |
318 319 return (0); 320} 321 322static void 323ip6_init2(void *dummy) 324{ 325 --- 1379 unchanged lines hidden --- | 319 320 return (0); 321} 322 323static void 324ip6_init2(void *dummy) 325{ 326 --- 1379 unchanged lines hidden --- |