Deleted Added
full compact
in6_ifattach.c (197996) in6_ifattach.c (207369)
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

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

25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * $KAME: in6_ifattach.c,v 1.118 2001/05/24 07:44:00 itojun Exp $
30 */
31
32#include <sys/cdefs.h>
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

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

25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * $KAME: in6_ifattach.c,v 1.118 2001/05/24 07:44:00 itojun Exp $
30 */
31
32#include <sys/cdefs.h>
33__FBSDID("$FreeBSD: head/sys/netinet6/in6_ifattach.c 197996 2009-10-12 18:54:02Z hrs $");
33__FBSDID("$FreeBSD: head/sys/netinet6/in6_ifattach.c 207369 2010-04-29 11:52:42Z bz $");
34
35#include <sys/param.h>
36#include <sys/systm.h>
37#include <sys/malloc.h>
38#include <sys/socket.h>
39#include <sys/sockio.h>
40#include <sys/jail.h>
41#include <sys/kernel.h>

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

62#include <netinet6/in6_var.h>
63#include <netinet6/in6_pcb.h>
64#include <netinet6/in6_ifattach.h>
65#include <netinet6/ip6_var.h>
66#include <netinet6/nd6.h>
67#include <netinet6/mld6_var.h>
68#include <netinet6/scope6_var.h>
69
34
35#include <sys/param.h>
36#include <sys/systm.h>
37#include <sys/malloc.h>
38#include <sys/socket.h>
39#include <sys/sockio.h>
40#include <sys/jail.h>
41#include <sys/kernel.h>

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

62#include <netinet6/in6_var.h>
63#include <netinet6/in6_pcb.h>
64#include <netinet6/in6_ifattach.h>
65#include <netinet6/ip6_var.h>
66#include <netinet6/nd6.h>
67#include <netinet6/mld6_var.h>
68#include <netinet6/scope6_var.h>
69
70VNET_DEFINE(unsigned long, in6_maxmtu);
71VNET_DEFINE(int, ip6_auto_linklocal);
72VNET_DEFINE(struct callout, in6_tmpaddrtimer_ch);
70VNET_DEFINE(unsigned long, in6_maxmtu) = 0;
73
71
72#ifdef IP6_AUTO_LINKLOCAL
73VNET_DEFINE(int, ip6_auto_linklocal) = IP6_AUTO_LINKLOCAL;
74#else
75VNET_DEFINE(int, ip6_auto_linklocal) = 1; /* enabled by default */
76#endif
77
78VNET_DEFINE(struct callout, in6_tmpaddrtimer_ch);
74#define V_in6_tmpaddrtimer_ch VNET(in6_tmpaddrtimer_ch)
75
76VNET_DECLARE(struct inpcbinfo, ripcbinfo);
77#define V_ripcbinfo VNET(ripcbinfo)
78
79static int get_rand_ifid(struct ifnet *, struct in6_addr *);
80static int generate_tmp_ifid(u_int8_t *, const u_int8_t *, u_int8_t *);
81static int get_ifid(struct ifnet *, struct ifnet *, struct in6_addr *);

--- 889 unchanged lines hidden ---
79#define V_in6_tmpaddrtimer_ch VNET(in6_tmpaddrtimer_ch)
80
81VNET_DECLARE(struct inpcbinfo, ripcbinfo);
82#define V_ripcbinfo VNET(ripcbinfo)
83
84static int get_rand_ifid(struct ifnet *, struct in6_addr *);
85static int generate_tmp_ifid(u_int8_t *, const u_int8_t *, u_int8_t *);
86static int get_ifid(struct ifnet *, struct ifnet *, struct in6_addr *);

--- 889 unchanged lines hidden ---