Deleted Added
full compact
nd6.h (121576) nd6.h (121807)
1/* $FreeBSD: head/sys/netinet6/nd6.h 121576 2003-10-26 15:15:36Z ume $ */
1/* $FreeBSD: head/sys/netinet6/nd6.h 121807 2003-10-31 16:06:05Z ume $ */
2/* $KAME: nd6.h,v 1.76 2001/12/18 02:10:31 itojun Exp $ */
3
4/*
5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

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

223#define RETRANS_TIMER 1000 /* msec */
224#define MIN_RANDOM_FACTOR 512 /* 1024 * 0.5 */
225#define MAX_RANDOM_FACTOR 1536 /* 1024 * 1.5 */
226#define DEF_TEMP_VALID_LIFETIME 604800 /* 1 week */
227#define DEF_TEMP_PREFERRED_LIFETIME 86400 /* 1 day */
228#define TEMPADDR_REGEN_ADVANCE 5 /* sec */
229#define MAX_TEMP_DESYNC_FACTOR 600 /* 10 min */
230#define ND_COMPUTE_RTIME(x) \
2/* $KAME: nd6.h,v 1.76 2001/12/18 02:10:31 itojun Exp $ */
3
4/*
5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

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

223#define RETRANS_TIMER 1000 /* msec */
224#define MIN_RANDOM_FACTOR 512 /* 1024 * 0.5 */
225#define MAX_RANDOM_FACTOR 1536 /* 1024 * 1.5 */
226#define DEF_TEMP_VALID_LIFETIME 604800 /* 1 week */
227#define DEF_TEMP_PREFERRED_LIFETIME 86400 /* 1 day */
228#define TEMPADDR_REGEN_ADVANCE 5 /* sec */
229#define MAX_TEMP_DESYNC_FACTOR 600 /* 10 min */
230#define ND_COMPUTE_RTIME(x) \
231 (((MIN_RANDOM_FACTOR * (x >> 10)) + (random() & \
231 (((MIN_RANDOM_FACTOR * (x >> 10)) + (arc4random() & \
232 ((MAX_RANDOM_FACTOR - MIN_RANDOM_FACTOR) * (x >> 10)))) /1000)
233
234TAILQ_HEAD(nd_drhead, nd_defrouter);
235struct nd_defrouter {
236 TAILQ_ENTRY(nd_defrouter) dr_entry;
237 struct in6_addr rtaddr;
238 u_char flags; /* flags on RA message */
239 u_short rtlifetime;

--- 186 unchanged lines hidden ---
232 ((MAX_RANDOM_FACTOR - MIN_RANDOM_FACTOR) * (x >> 10)))) /1000)
233
234TAILQ_HEAD(nd_drhead, nd_defrouter);
235struct nd_defrouter {
236 TAILQ_ENTRY(nd_defrouter) dr_entry;
237 struct in6_addr rtaddr;
238 u_char flags; /* flags on RA message */
239 u_short rtlifetime;

--- 186 unchanged lines hidden ---