Deleted Added
full compact
in6_proto.c (185571) in6_proto.c (185895)
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

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

56 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
57 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
58 * SUCH DAMAGE.
59 *
60 * @(#)in_proto.c 8.1 (Berkeley) 6/10/93
61 */
62
63#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

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

56 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
57 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
58 * SUCH DAMAGE.
59 *
60 * @(#)in_proto.c 8.1 (Berkeley) 6/10/93
61 */
62
63#include <sys/cdefs.h>
64__FBSDID("$FreeBSD: head/sys/netinet6/in6_proto.c 185571 2008-12-02 21:37:28Z bz $");
64__FBSDID("$FreeBSD: head/sys/netinet6/in6_proto.c 185895 2008-12-10 23:12:39Z zec $");
65
66#include "opt_inet.h"
67#include "opt_inet6.h"
68#include "opt_ipsec.h"
69#include "opt_ipstealth.h"
70#include "opt_carp.h"
71#include "opt_sctp.h"
72#include "opt_mpath.h"
73
74#include <sys/param.h>
75#include <sys/socket.h>
76#include <sys/socketvar.h>
65
66#include "opt_inet.h"
67#include "opt_inet6.h"
68#include "opt_ipsec.h"
69#include "opt_ipstealth.h"
70#include "opt_carp.h"
71#include "opt_sctp.h"
72#include "opt_mpath.h"
73
74#include <sys/param.h>
75#include <sys/socket.h>
76#include <sys/socketvar.h>
77#include <sys/proc.h>
77#include <sys/protosw.h>
78#include <sys/kernel.h>
79#include <sys/domain.h>
80#include <sys/mbuf.h>
81#include <sys/systm.h>
82#include <sys/sysctl.h>
83#include <sys/vimage.h>
84

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

513SYSCTL_V_OID(V_NET, vnet_inet6, _net_inet6_ip6, IPV6CTL_TEMPPLTIME, temppltime,
514 CTLTYPE_INT|CTLFLAG_RW, ip6_temp_preferred_lifetime, 0,
515 sysctl_ip6_temppltime, "I", "");
516SYSCTL_V_OID(V_NET, vnet_inet6, _net_inet6_ip6, IPV6CTL_TEMPVLTIME, tempvltime,
517 CTLTYPE_INT|CTLFLAG_RW, ip6_temp_valid_lifetime, 0,
518 sysctl_ip6_tempvltime, "I", "");
519SYSCTL_V_INT(V_NET, vnet_inet6, _net_inet6_ip6, IPV6CTL_V6ONLY,
520 v6only, CTLFLAG_RW, ip6_v6only, 0, "");
78#include <sys/protosw.h>
79#include <sys/kernel.h>
80#include <sys/domain.h>
81#include <sys/mbuf.h>
82#include <sys/systm.h>
83#include <sys/sysctl.h>
84#include <sys/vimage.h>
85

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

514SYSCTL_V_OID(V_NET, vnet_inet6, _net_inet6_ip6, IPV6CTL_TEMPPLTIME, temppltime,
515 CTLTYPE_INT|CTLFLAG_RW, ip6_temp_preferred_lifetime, 0,
516 sysctl_ip6_temppltime, "I", "");
517SYSCTL_V_OID(V_NET, vnet_inet6, _net_inet6_ip6, IPV6CTL_TEMPVLTIME, tempvltime,
518 CTLTYPE_INT|CTLFLAG_RW, ip6_temp_valid_lifetime, 0,
519 sysctl_ip6_tempvltime, "I", "");
520SYSCTL_V_INT(V_NET, vnet_inet6, _net_inet6_ip6, IPV6CTL_V6ONLY,
521 v6only, CTLFLAG_RW, ip6_v6only, 0, "");
521#ifndef VIMAGE
522TUNABLE_INT("net.inet6.ip6.auto_linklocal", &ip6_auto_linklocal);
523#endif
524SYSCTL_V_INT(V_NET, vnet_inet6, _net_inet6_ip6, IPV6CTL_AUTO_LINKLOCAL,
525 auto_linklocal, CTLFLAG_RW, ip6_auto_linklocal, 0, "");
526SYSCTL_V_STRUCT(V_NET, vnet_inet6, _net_inet6_ip6, IPV6CTL_RIP6STATS,
527 rip6stats, CTLFLAG_RD, rip6stat, rip6stat, "");
528SYSCTL_V_INT(V_NET, vnet_inet6, _net_inet6_ip6, IPV6CTL_PREFER_TEMPADDR,
529 prefer_tempaddr, CTLFLAG_RW, ip6_prefer_tempaddr, 0, "");
530SYSCTL_V_INT(V_NET, vnet_inet6, _net_inet6_ip6, IPV6CTL_USE_DEFAULTZONE,
531 use_defaultzone, CTLFLAG_RW, ip6_use_defzone, 0,"");

--- 38 unchanged lines hidden ---
522SYSCTL_V_INT(V_NET, vnet_inet6, _net_inet6_ip6, IPV6CTL_AUTO_LINKLOCAL,
523 auto_linklocal, CTLFLAG_RW, ip6_auto_linklocal, 0, "");
524SYSCTL_V_STRUCT(V_NET, vnet_inet6, _net_inet6_ip6, IPV6CTL_RIP6STATS,
525 rip6stats, CTLFLAG_RD, rip6stat, rip6stat, "");
526SYSCTL_V_INT(V_NET, vnet_inet6, _net_inet6_ip6, IPV6CTL_PREFER_TEMPADDR,
527 prefer_tempaddr, CTLFLAG_RW, ip6_prefer_tempaddr, 0, "");
528SYSCTL_V_INT(V_NET, vnet_inet6, _net_inet6_ip6, IPV6CTL_USE_DEFAULTZONE,
529 use_defaultzone, CTLFLAG_RW, ip6_use_defzone, 0,"");

--- 38 unchanged lines hidden ---