nd6_rtr.c (83130) | nd6_rtr.c (90868) |
---|---|
1/* $FreeBSD: head/sys/netinet6/nd6_rtr.c 83130 2001-09-06 02:40:43Z jlemon $ */ | 1/* $FreeBSD: head/sys/netinet6/nd6_rtr.c 90868 2002-02-18 20:35:27Z mike $ */ |
2/* $KAME: nd6_rtr.c,v 1.111 2001/04/27 01:37:15 jinmei 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 --- 254 unchanged lines hidden (view full) --- 264 dr0.rtlifetime = ntohs(nd_ra->nd_ra_router_lifetime); 265 dr0.expire = time_second + dr0.rtlifetime; 266 dr0.ifp = ifp; 267 dr0.advint = 0; /* Mobile IPv6 */ 268 dr0.advint_expire = 0; /* Mobile IPv6 */ 269 dr0.advints_lost = 0; /* Mobile IPv6 */ 270 /* unspecified or not? (RFC 2461 6.3.4) */ 271 if (advreachable) { | 2/* $KAME: nd6_rtr.c,v 1.111 2001/04/27 01:37:15 jinmei 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 --- 254 unchanged lines hidden (view full) --- 264 dr0.rtlifetime = ntohs(nd_ra->nd_ra_router_lifetime); 265 dr0.expire = time_second + dr0.rtlifetime; 266 dr0.ifp = ifp; 267 dr0.advint = 0; /* Mobile IPv6 */ 268 dr0.advint_expire = 0; /* Mobile IPv6 */ 269 dr0.advints_lost = 0; /* Mobile IPv6 */ 270 /* unspecified or not? (RFC 2461 6.3.4) */ 271 if (advreachable) { |
272 NTOHL(advreachable); | 272 advreachable = ntohl(advreachable); |
273 if (advreachable <= MAX_REACHABLE_TIME && 274 ndi->basereachable != advreachable) { 275 ndi->basereachable = advreachable; 276 ndi->reachable = ND_COMPUTE_RTIME(ndi->basereachable); 277 ndi->recalctm = nd6_recalc_reachtm_interval; /* reset */ 278 } 279 } 280 if (nd_ra->nd_ra_retransmit) --- 1706 unchanged lines hidden --- | 273 if (advreachable <= MAX_REACHABLE_TIME && 274 ndi->basereachable != advreachable) { 275 ndi->basereachable = advreachable; 276 ndi->reachable = ND_COMPUTE_RTIME(ndi->basereachable); 277 ndi->recalctm = nd6_recalc_reachtm_interval; /* reset */ 278 } 279 } 280 if (nd_ra->nd_ra_retransmit) --- 1706 unchanged lines hidden --- |