nd6.h (ff63037da171e11a927eea5b8fd93b7946e61fae) nd6.h (9901091ebac799a0835ba5b9ef9d418f192f47eb)
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

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

350#define ND6_WUNLOCK() rw_wunlock(&V_nd6_lock)
351#define ND6_WLOCK_ASSERT() rw_assert(&V_nd6_lock, RA_WLOCKED)
352#define ND6_RLOCK_ASSERT() rw_assert(&V_nd6_lock, RA_RLOCKED)
353#define ND6_LOCK_ASSERT() rw_assert(&V_nd6_lock, RA_LOCKED)
354#define ND6_UNLOCK_ASSERT() rw_assert(&V_nd6_lock, RA_UNLOCKED)
355
356#define nd6log(x) do { if (V_nd6_debug) log x; } while (/*CONSTCOND*/ 0)
357
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

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

350#define ND6_WUNLOCK() rw_wunlock(&V_nd6_lock)
351#define ND6_WLOCK_ASSERT() rw_assert(&V_nd6_lock, RA_WLOCKED)
352#define ND6_RLOCK_ASSERT() rw_assert(&V_nd6_lock, RA_RLOCKED)
353#define ND6_LOCK_ASSERT() rw_assert(&V_nd6_lock, RA_LOCKED)
354#define ND6_UNLOCK_ASSERT() rw_assert(&V_nd6_lock, RA_UNLOCKED)
355
356#define nd6log(x) do { if (V_nd6_debug) log x; } while (/*CONSTCOND*/ 0)
357
358VNET_DECLARE(struct callout, nd6_timer_ch);
359#define V_nd6_timer_ch VNET(nd6_timer_ch)
360
361/* nd6_rtr.c */
362VNET_DECLARE(int, nd6_defifindex);
363VNET_DECLARE(int, ip6_desync_factor); /* seconds */
364VNET_DECLARE(u_int32_t, ip6_temp_preferred_lifetime); /* seconds */
365VNET_DECLARE(u_int32_t, ip6_temp_valid_lifetime); /* seconds */
366VNET_DECLARE(int, ip6_temp_regen_advance); /* seconds */
367#define V_nd6_defifindex VNET(nd6_defifindex)
368#define V_ip6_desync_factor VNET(ip6_desync_factor)

--- 110 unchanged lines hidden ---
358/* nd6_rtr.c */
359VNET_DECLARE(int, nd6_defifindex);
360VNET_DECLARE(int, ip6_desync_factor); /* seconds */
361VNET_DECLARE(u_int32_t, ip6_temp_preferred_lifetime); /* seconds */
362VNET_DECLARE(u_int32_t, ip6_temp_valid_lifetime); /* seconds */
363VNET_DECLARE(int, ip6_temp_regen_advance); /* seconds */
364#define V_nd6_defifindex VNET(nd6_defifindex)
365#define V_ip6_desync_factor VNET(ip6_desync_factor)

--- 110 unchanged lines hidden ---