ip6_input.c (130416) | ip6_input.c (133720) |
---|---|
1/* $FreeBSD: head/sys/netinet6/ip6_input.c 130416 2004-06-13 17:29:10Z mlaier $ */ | 1/* $FreeBSD: head/sys/netinet6/ip6_input.c 133720 2004-08-14 15:32:40Z dwmalone $ */ |
2/* $KAME: ip6_input.c,v 1.259 2002/01/21 04:58:09 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 --- 51 unchanged lines hidden (view full) --- 61 * @(#)ip_input.c 8.2 (Berkeley) 1/4/94 62 */ 63 64#include "opt_ip6fw.h" 65#include "opt_inet.h" 66#include "opt_inet6.h" 67#include "opt_ipsec.h" 68#include "opt_pfil_hooks.h" | 2/* $KAME: ip6_input.c,v 1.259 2002/01/21 04:58:09 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 --- 51 unchanged lines hidden (view full) --- 61 * @(#)ip_input.c 8.2 (Berkeley) 1/4/94 62 */ 63 64#include "opt_ip6fw.h" 65#include "opt_inet.h" 66#include "opt_inet6.h" 67#include "opt_ipsec.h" 68#include "opt_pfil_hooks.h" |
69#include "opt_random_ip_id.h" | |
70 71#include <sys/param.h> 72#include <sys/systm.h> 73#include <sys/malloc.h> 74#include <sys/mbuf.h> 75#include <sys/proc.h> 76#include <sys/domain.h> 77#include <sys/protosw.h> --- 114 unchanged lines hidden (view full) --- 192#endif /* PFIL_HOOKS */ 193 ip6intrq.ifq_maxlen = ip6qmaxlen; 194 mtx_init(&ip6intrq.ifq_mtx, "ip6_inq", NULL, MTX_DEF); 195 netisr_register(NETISR_IPV6, ip6_input, &ip6intrq, 0); 196 scope6_init(); 197 addrsel_policy_init(); 198 nd6_init(); 199 frag6_init(); | 69 70#include <sys/param.h> 71#include <sys/systm.h> 72#include <sys/malloc.h> 73#include <sys/mbuf.h> 74#include <sys/proc.h> 75#include <sys/domain.h> 76#include <sys/protosw.h> --- 114 unchanged lines hidden (view full) --- 191#endif /* PFIL_HOOKS */ 192 ip6intrq.ifq_maxlen = ip6qmaxlen; 193 mtx_init(&ip6intrq.ifq_mtx, "ip6_inq", NULL, MTX_DEF); 194 netisr_register(NETISR_IPV6, ip6_input, &ip6intrq, 0); 195 scope6_init(); 196 addrsel_policy_init(); 197 nd6_init(); 198 frag6_init(); |
200#ifndef RANDOM_IP_ID 201 ip6_flow_seq = arc4random(); 202#endif | |
203 ip6_desync_factor = arc4random() % MAX_TEMP_DESYNC_FACTOR; 204} 205 206static void 207ip6_init2(dummy) 208 void *dummy; 209{ 210 --- 1440 unchanged lines hidden --- | 199 ip6_desync_factor = arc4random() % MAX_TEMP_DESYNC_FACTOR; 200} 201 202static void 203ip6_init2(dummy) 204 void *dummy; 205{ 206 --- 1440 unchanged lines hidden --- |