OpenBSD CVS

CVS log for src/sys/netinet6/in6_proto.c


[BACK] Up to [local] / src / sys / netinet6

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.114 / (download) - annotate - [select for diffs], Tue Apr 16 12:40:40 2024 UTC (7 weeks, 6 days ago) by bluhm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.113: +3 -3 lines
Diff to previous 1.113 (colored)

Run raw IPv6 input in parallel.

Get rip6_input() in the same shape as rip_input().  Call
soisdisconnected() from rip6_disconnect().  This means that the raw
IP socket cannot be reconnected later.  Now raw IPv6 behaves like
IPv4 in this regard, KAME code is quite inconsistent here.  Also
make sure that there is no race between disconnect, input and wakeup.
The inpcb fileds inp_icmp6filt and inp_cksum6 are protected by
exclusive net lock in icmp6_ctloutput().  With all that, mark raw
IPv6 sockets to handle input in parallel.

OK mvs@

Revision 1.113 / (download) - annotate - [select for diffs], Thu Jan 11 14:15:12 2024 UTC (4 months, 4 weeks ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5
Changes since 1.112: +2 -2 lines
Diff to previous 1.112 (colored)

Use domain name for socket lock.

Syzkaller with witness complains about lock ordering of pf lock
with socket lock.  Socket lock for inet is taken before pf lock.
Pf lock is taken before socket lock for route.  This is a false
positive as route and inet socket locks are distinct.  Witness does
not know this.  Name the socket lock like the domain of the socket,
then rwlock name is used in witness lo_name subtype.  Make domain
names more consistent for locking, they were not used anyway.
Regardless of witness problem, unique lock name for each socket
type make sense.

Reported-by: syzbot+34d22dcbf20d76629c5a@syzkaller.appspotmail.com
Reported-by: syzbot+fde8d07ba74b69d0adfe@syzkaller.appspotmail.com
OK mvs@

Revision 1.112 / (download) - annotate - [select for diffs], Wed Nov 23 14:48:28 2022 UTC (18 months, 2 weeks ago) by kn
Branch: MAIN
CVS Tags: OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3
Changes since 1.111: +1 -3 lines
Diff to previous 1.111 (colored)

Add *if_nd to struct ifnet, call nd6_if{at,de}tach() directly

*if_afdata[] and struct domain's dom_if{at,de}tach() are only used with
IPv6 Neighbour Discovery in6_dom{at,de}tach(), which allocate/init and
free single struct nd_ifinfo.

Set up a new ND-specific *if_nd member directly to avoid yet another
layer of indirection and thus make the generic domain API obsolete.

The per-interface data is only accessed in nd6.c and nd6_nbr.c through
the ND_IFINFO() macro;  it is allocated and freed exactly once during
interface at/detach, so document it as [I]mmutable.

OK bluhm mvs claudio

Revision 1.111 / (download) - annotate - [select for diffs], Fri Sep 2 13:12:32 2022 UTC (21 months, 1 week ago) by mvs
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2
Changes since 1.110: +3 -3 lines
Diff to previous 1.110 (colored)

Move PRU_CONTROL request to (*pru_control)().

The 'proc *' arg is not used for PRU_CONTROL request, so remove it from
pru_control() wrapper.

Split out {tcp,udp}6_usrreqs from {tcp,udp}_usrreqs and use them for
inet6 case.

ok guenther@ bluhm@

Revision 1.110 / (download) - annotate - [select for diffs], Mon Aug 15 09:11:39 2022 UTC (21 months, 3 weeks ago) by mvs
Branch: MAIN
Changes since 1.109: +16 -46 lines
Diff to previous 1.109 (colored)

Introduce 'pr_usrreqs' structure and move existing user-protocol
handlers into it. We want to split existing (*pr_usrreq)() to multiple
short handlers for each PRU_ request as it was already done for
PRU_ATTACH and PRU_DETACH. This is the preparation step, (*pr_usrreq)()
split will be done with the following diffs.

Based on reverted diff from guenther@.

ok bluhm@

Revision 1.109 / (download) - annotate - [select for diffs], Fri Feb 25 23:51:04 2022 UTC (2 years, 3 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.108: +31 -16 lines
Diff to previous 1.108 (colored)

Reported-by: syzbot+1b5b209ce506db4d411d@syzkaller.appspotmail.com
Revert the pr_usrreqs move: syzkaller found a NULL pointer deref
and I won't be available to monitor for followup issues for a bit

Revision 1.108 / (download) - annotate - [select for diffs], Fri Feb 25 08:36:01 2022 UTC (2 years, 3 months ago) by guenther
Branch: MAIN
Changes since 1.107: +16 -31 lines
Diff to previous 1.107 (colored)

Move pr_attach and pr_detach to a new structure pr_usrreqs that can
then be shared among protosw structures, following the same basic
direction as NetBSD and FreeBSD for this.

Split PRU_CONTROL out of pr_usrreq into pru_control, giving it the
proper prototype to eliminate the previously necessary casts.

ok mvs@ bluhm@

Revision 1.107 / (download) - annotate - [select for diffs], Tue Feb 22 01:35:41 2022 UTC (2 years, 3 months ago) by guenther
Branch: MAIN
Changes since 1.106: +1 -2 lines
Diff to previous 1.106 (colored)

Delete unnecessary #includes of <netinet6/ip6protosw.h>: some never
needed it and some no longer need it after moving the externs from
there to <sys/protosw.h>

ok jsg@

Revision 1.106 / (download) - annotate - [select for diffs], Sun Oct 24 22:59:47 2021 UTC (2 years, 7 months ago) by bluhm
Branch: MAIN
Changes since 1.105: +4 -4 lines
Diff to previous 1.105 (colored)

Remove code duplication by merging the v4 and v6 input functions
for ah, esp, and ipcomp.  Move common code into ipsec_protoff()
which finds the offset of the next protocol field in the previous
header.
OK tobhe@

Revision 1.105 / (download) - annotate - [select for diffs], Tue May 25 22:45:10 2021 UTC (3 years ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.104: +2 -2 lines
Diff to previous 1.104 (colored)

As network features are not added dynamically, the domain structures
are constant.  Having more const makes MP review easier.  More
pointers are mapped read-only in the kernel image.
OK deraadt@ mvs@

Revision 1.104 / (download) - annotate - [select for diffs], Thu Jun 13 08:12:11 2019 UTC (4 years, 11 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.103: +2 -1 lines
Diff to previous 1.103 (colored)

Copy the user provided sockaddr into a normalized sockaddr in rtrequest()
before adding it to the routing table. The rtable code is doing memcmp()
of those rt_dest sockaddrs so it is important that they are stored in a
canonical form. To do this struct domain is extended to include the
sockaddr size for this address family.
OK bluhm@ anton@

Reported-by: syzbot+10fe9cd8d0211c562ead@syzkaller.appspotmail.com

Revision 1.103 / (download) - annotate - [select for diffs], Mon Nov 19 10:15:04 2018 UTC (5 years, 6 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.102: +1 -2 lines
Diff to previous 1.102 (colored)

Retire dom_rtkeylen from struct domain. Nothing is using this anymore.
It was used by the original patricia tree.
OK mpi@

Revision 1.102 / (download) - annotate - [select for diffs], Sat Feb 10 08:12:01 2018 UTC (6 years, 4 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.101: +18 -2 lines
Diff to previous 1.101 (colored)

rework gif to be more consistent.

while here, give us support for mpls in gif on ipv6.

this moves all the gif handling into if_gif, eg, the mpls handling
is no longer in ip_etherip.c.

ok claudio@

Revision 1.101 / (download) - annotate - [select for diffs], Wed Feb 7 22:30:59 2018 UTC (6 years, 4 months ago) by dlg
Branch: MAIN
Changes since 1.100: +19 -1 lines
Diff to previous 1.100 (colored)

update the gre driver.

the main new feature is gre keys, supported by the vnetid ioctls.
this also adds support for gre over ipv6, the use of hfsc, and
allows tx mitigation in the future.

this diff removes keepalive support, but i promised claudio@ and
patrick@ i would put it back after this goes in.

ok claudio@

Revision 1.100 / (download) - annotate - [select for diffs], Thu Nov 23 13:45:46 2017 UTC (6 years, 6 months ago) by mpi
Branch: MAIN
Changes since 1.99: +2 -2 lines
Diff to previous 1.99 (colored)

Constify protocol tables and remove an assert now that ip_deliver() is
mp-safe.

ok bluhm@, visa@

Revision 1.99 / (download) - annotate - [select for diffs], Fri Nov 17 14:51:13 2017 UTC (6 years, 6 months ago) by jca
Branch: MAIN
Changes since 1.98: +1 -14 lines
Diff to previous 1.98 (colored)

Drop all Ethernet-in-IP support from gif(4)

As a result, ip_ether.c now only deals with MPLS-in-IP.  The next
commits will move & rename stuff to make this clear.  ok visa@ mpi@

Revision 1.98 / (download) - annotate - [select for diffs], Wed Nov 15 16:50:31 2017 UTC (6 years, 6 months ago) by jca
Branch: MAIN
Changes since 1.97: +1 -3 lines
Diff to previous 1.97 (colored)

Remove inet6 etherip sysctl entries

The INET6 entries are not needed, not documented (use net.inet.etherip)
and do not appear in sysctl(8) output.

ok mpi@

Revision 1.97 / (download) - annotate - [select for diffs], Sun Nov 5 13:19:59 2017 UTC (6 years, 7 months ago) by florian
Branch: MAIN
Changes since 1.96: +1 -2 lines
Diff to previous 1.96 (colored)

Finish off pr_drain functions, they haven't been used since 2006.
OK mpi

Revision 1.96 / (download) - annotate - [select for diffs], Thu Nov 2 14:01:18 2017 UTC (6 years, 7 months ago) by florian
Branch: MAIN
Changes since 1.95: +16 -2 lines
Diff to previous 1.95 (colored)

Move PRU_DETACH out of pr_usrreq into per proto pr_detach
functions to pave way for more fine grained locking.

Suggested by, comments & OK mpi

Revision 1.95 / (download) - annotate - [select for diffs], Thu Jul 13 17:17:27 2017 UTC (6 years, 10 months ago) by florian
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.94: +1 -3 lines
Diff to previous 1.94 (colored)

Get rid of ip6.maxifprefixes and ip6.maxifdefrouters, the kernel no
longer tracks prefixes or default routers from router advertisements.
Pointed out by jmc.
ports tree grepping sthen, who only found nsh
OK mpi, sthen

Revision 1.94 / (download) - annotate - [select for diffs], Thu May 18 10:56:45 2017 UTC (7 years ago) by bluhm
Branch: MAIN
Changes since 1.93: +3 -3 lines
Diff to previous 1.93 (colored)

The function name ip4_input() is confusing as it also handles IPv6
packets.  This is the IP in IP protocol input function, so call it
ipip_input().  Rename the existing ipip_input() to ipip_input_gif()
as it is the input function used by the gif interface.  Pass the
address family to make it consistent with pr_input.  Use __func__
in debug print and panic messages.  Move all ipip prototypes to the
ip_ipip.h header file.
OK dhill@ mpi@

Revision 1.93 / (download) - annotate - [select for diffs], Wed May 17 15:39:36 2017 UTC (7 years ago) by bluhm
Branch: MAIN
Changes since 1.92: +16 -30 lines
Diff to previous 1.92 (colored)

The large and nested GIF #ifdef in protosw made it hard to figure
out what is going on.  There were also some inconsistencies that
seem to be oversights.  Use more specific the #ifdefs.
OK mpi@

Revision 1.92 / (download) - annotate - [select for diffs], Tue May 9 13:33:50 2017 UTC (7 years, 1 month ago) by bluhm
Branch: MAIN
Changes since 1.91: +1 -14 lines
Diff to previous 1.91 (colored)

Remove rip_output() and rip6_output() from inetsw and inet6sw.  The
rip_output() function is never called via the pr_output pointer.
rip_usrreq(PRU_SEND) calls rip_output() directly.  raw_usrreq() is
never called from inetsw.  Situation in inet and inet6 is analog.
OK claudio@ mikeb@

Revision 1.91 / (download) - annotate - [select for diffs], Mon Mar 13 20:18:21 2017 UTC (7 years, 2 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.90: +20 -4 lines
Diff to previous 1.90 (colored)

Move PRU_ATTACH out of the pr_usrreq functions into pr_attach.
Attach is quite a different thing to the other PRU functions and
this should make locking a bit simpler. This also removes the ugly
hack on how proto was passed to the attach function.
OK bluhm@ and mpi@ on a previous version

Revision 1.90 / (download) - annotate - [select for diffs], Thu Mar 2 08:58:24 2017 UTC (7 years, 3 months ago) by mpi
Branch: MAIN
Changes since 1.89: +12 -8 lines
Diff to previous 1.89 (colored)

Convert domain declarations to C99 initializers.

ok dhill@, florian@, bluhm@

Revision 1.89 / (download) - annotate - [select for diffs], Wed Feb 22 19:34:42 2017 UTC (7 years, 3 months ago) by dhill
Branch: MAIN
Changes since 1.88: +199 -102 lines
Diff to previous 1.88 (colored)

Use c99 struct initialization with protosw.

This makes it easier to grep for a member, such as .pr_usrreq, and know
which functions to review.

ok mpi@ bluhm@ jca@

Revision 1.88 / (download) - annotate - [select for diffs], Sun Jan 29 19:58:47 2017 UTC (7 years, 4 months ago) by bluhm
Branch: MAIN
Changes since 1.87: +8 -8 lines
Diff to previous 1.87 (colored)

Change the IPv4 pr_input function to the way IPv6 is implemented,
to get rid of struct ip6protosw and some wrapper functions.  It is
more consistent to have less different structures.  The divert_input
functions cannot be called anyway, so remove them.
OK visa@ mpi@

Revision 1.87 / (download) - annotate - [select for diffs], Thu Dec 22 11:04:44 2016 UTC (7 years, 5 months ago) by rzalamena
Branch: MAIN
Changes since 1.86: +1 -12 lines
Diff to previous 1.86 (colored)

Remove PIM support from the multicast stack.

ok mpi@

Revision 1.86 / (download) - annotate - [select for diffs], Wed Jun 1 11:11:44 2016 UTC (8 years ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.85: +1 -3 lines
Diff to previous 1.85 (colored)

Kill sysctl net.inet6.ip6.rr_prune

We don't support Router Renumbering and there are no plans to change
that.  ok mpi@

Revision 1.85 / (download) - annotate - [select for diffs], Thu May 19 11:34:40 2016 UTC (8 years ago) by jca
Branch: MAIN
Changes since 1.84: +1 -2 lines
Diff to previous 1.84 (colored)

Remove sysctl net.inet6.ip6.v6only

This sysctl is a no-op, read-only since it was introduced.  There are no
plans to support IPv4-mapped addresses on OpenBSD, thus this sysctl is
meaningless.

Noticed by djm@, ok claudio@ mpi@ sthen@ henning@

Revision 1.84 / (download) - annotate - [select for diffs], Thu Dec 3 21:57:59 2015 UTC (8 years, 6 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.83: +2 -2 lines
Diff to previous 1.83 (colored)

Get rid of rt_mask() and stop allocating a "struct sockaddr" for every
route entry in ART.

rt_plen() now represents the prefix length of a route entry and should
be used instead.

For now use a "struct sockaddr_in6" to represent the mask when needed,
this should be then replaced by the prefix length and RTA_NETMASK only
used for compatibility with userland.

ok claudio@

Revision 1.83 / (download) - annotate - [select for diffs], Thu Dec 3 12:42:03 2015 UTC (8 years, 6 months ago) by goda
Branch: MAIN
Changes since 1.82: +13 -1 lines
Diff to previous 1.82 (colored)

Implement etherip(4) driver

This commit is not removing the existing EtherIP part of gif(4) and
it keeps EtherIP of gif(4) working.

ok jbg@ sthen@ mpi@ reyk@ yasuoka@

Revision 1.82 / (download) - annotate - [select for diffs], Wed Oct 7 10:50:35 2015 UTC (8 years, 8 months ago) by mpi
Branch: MAIN
Changes since 1.81: +3 -3 lines
Diff to previous 1.81 (colored)

Initialize the routing table before domains.

The routing table is not an optional component of the network stack
and initializing it inside the "routing domain" requires some ugly
introspection in the domain interface.

This put the rtable* layer at the same level of the if* level.  These
two subsystem are organized around the two global data structure used
in the network stack:

- the global &ifnet list, to be used in process context only, and
- the routing table which can be read in interrupt context.

This change makes the rtable_* layer domain-aware and extends the
"struct domain" such that INET, INET6 and MPLS can specify the length
of the binary key used in lookups.  This allows us to keep, or move
towards, AF-free route and rtable layers.

While here stop the madness and pass the size of the maximum key length
in *byte* to rn_inithead0().

ok claudio@, mikeb@

Revision 1.81 / (download) - annotate - [select for diffs], Mon Sep 28 08:32:05 2015 UTC (8 years, 8 months ago) by mpi
Branch: MAIN
Changes since 1.80: +2 -2 lines
Diff to previous 1.80 (colored)

Merge gif(4)'s tentacles in a single file.

Tested by <mxb AT alumni DOT chalmers DOT se>.

ok dlg@

Revision 1.80 / (download) - annotate - [select for diffs], Fri Sep 4 08:43:39 2015 UTC (8 years, 9 months ago) by mpi
Branch: MAIN
Changes since 1.79: +1 -2 lines
Diff to previous 1.79 (colored)

Make every subsystem using a radix tree call rn_init() and pass the
length of the key as argument.

This way every consumer of the radix tree has a chance to explicitly
initialize the shared data structures and no longer rely on another
subsystem to do the initialization.

As a bonus ``dom_maxrtkey'' is no longer used an die.

ART kernels should now be fully usable because pf(4) and IPSEC properly
initialized the radix tree.

ok chris@, reyk@

Revision 1.79 / (download) - annotate - [select for diffs], Sun Aug 30 10:39:16 2015 UTC (8 years, 9 months ago) by mpi
Branch: MAIN
Changes since 1.78: +2 -2 lines
Diff to previous 1.78 (colored)

Use a global table for domains instead of building a list at run time.

As a side effect there's no need to run if_attachdomain() after the
list of domains has been built.

ok claudio@, reyk@

Revision 1.78 / (download) - annotate - [select for diffs], Sat Jul 18 15:51:17 2015 UTC (8 years, 10 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.77: +3 -10 lines
Diff to previous 1.77 (colored)

Abstract the routing table internals behind an rtable_* API.

Code abusing the radix internals for the routing table should now
includes <net/rtable.h> and only deal with "struct rtentry".

Code using a radix tree for another purpose can still include
<net/radix.h>.

Inputs from and ok claudio@, mikeb@

Revision 1.77 / (download) - annotate - [select for diffs], Fri Dec 19 17:14:40 2014 UTC (9 years, 5 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.76: +1 -9 lines
Diff to previous 1.76 (colored)

unifdef INET in net code as a precursor to removing the pretend option.
long live the one true internet.
ok henning mikeb

Revision 1.76 / (download) - annotate - [select for diffs], Fri Dec 5 15:50:04 2014 UTC (9 years, 6 months ago) by mpi
Branch: MAIN
Changes since 1.75: +2 -1 lines
Diff to previous 1.75 (colored)

Explicitly include <net/if_var.h> instead of pulling it in <net/if.h>.

ok mikeb@, krw@, bluhm@, tedu@

Revision 1.75 / (download) - annotate - [select for diffs], Wed Aug 27 14:04:16 2014 UTC (9 years, 9 months ago) by florian
Branch: MAIN
Changes since 1.74: +1 -2 lines
Diff to previous 1.74 (colored)

Nuke net.inet6.icmp6.rediraccept and allow redirects on interfaces
with autoconf enabled.
If one is doing SLAAC one does already trust link local icmp6 so the
policy for icmp6 redirects should be the same.
pointed out by & OK bluhm@; OK henning@

Revision 1.74 / (download) - annotate - [select for diffs], Tue Aug 19 12:28:03 2014 UTC (9 years, 9 months ago) by mpi
Branch: MAIN
Changes since 1.73: +4 -4 lines
Diff to previous 1.73 (colored)

Keep pim code under #ifdef PIM to be coherent with what's in netinet/.

Revision 1.73 / (download) - annotate - [select for diffs], Tue Jul 22 11:06:10 2014 UTC (9 years, 10 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.72: +1 -2 lines
Diff to previous 1.72 (colored)

Fewer <netinet/in_systm.h> !

Revision 1.72 / (download) - annotate - [select for diffs], Fri Jul 11 16:39:06 2014 UTC (9 years, 11 months ago) by henning
Branch: MAIN
Changes since 1.71: +0 -1 lines
Diff to previous 1.71 (colored)

introduce the IFXF_AUTOCONF6 interface flag which controls wether we
accept rtadvs on that interface. the global net.inet6.ip6.accept_rtadv
sysctl just doesn't cut it, even tho the spec wants that - but in their
little absurd world, a host just has one interface by definition anyway...
the sysctlgoes away.
lots of head scratching, brain cell elemination etc from bluhm benno stsp
florian, excitement from simon and todd, ok bluhm stsp benno florian

Revision 1.71 / (download) - annotate - [select for diffs], Fri Jul 11 12:20:26 2014 UTC (9 years, 11 months ago) by benno
Branch: MAIN
Changes since 1.70: +1 -2 lines
Diff to previous 1.70 (colored)

Remove rfc 4620 Node Information Query support (from the kernel).

ok henning@ stu@, Yay! weerd@

Revision 1.70 / (download) - annotate - [select for diffs], Wed Jul 9 08:07:53 2014 UTC (9 years, 11 months ago) by benno
Branch: MAIN
Changes since 1.69: +2 -2 lines
Diff to previous 1.69 (colored)

Set default of net.inet6.icmp6.nodeinfo to 0,
disables responses to RFC4620 IPv6 Node Information Queries.
ok florian henning bluhm

Revision 1.69 / (download) - annotate - [select for diffs], Mon Oct 21 12:27:15 2013 UTC (10 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.68: +2 -9 lines
Diff to previous 1.68 (colored)

There are gasps of shock!  Add a pmtu delay sysctl BUTTON for netinet6,
making the code the same as netinet4 along the way.
ok bluhm phessler

Revision 1.68 / (download) - annotate - [select for diffs], Thu Oct 17 16:27:45 2013 UTC (10 years, 7 months ago) by bluhm
Branch: MAIN
Changes since 1.67: +2 -3 lines
Diff to previous 1.67 (colored)

The header file netinet/in_var.h included netinet6/in6_var.h.  This
created a bunch of useless dependencies.  Remove this implicit
inclusion and do an explicit #include <netinet6/in6_var.h> when it
is needed.
OK mpi@ henning@

Revision 1.67 / (download) - annotate - [select for diffs], Wed Apr 24 10:17:08 2013 UTC (11 years, 1 month ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.66: +2 -3 lines
Diff to previous 1.66 (colored)

Instead of having various extern declarations for protocol variables,
declare them once in their corresponding header file.

Revision 1.66 / (download) - annotate - [select for diffs], Mon Apr 1 22:58:29 2013 UTC (11 years, 2 months ago) by bluhm
Branch: MAIN
Changes since 1.65: +7 -7 lines
Diff to previous 1.65 (colored)

Allow raw IPv6 sockets for IPsec protocols.  IPv4 does the same.
Ok claudio@

Revision 1.65 / (download) - annotate - [select for diffs], Thu Mar 14 11:18:37 2013 UTC (11 years, 3 months ago) by mpi
Branch: MAIN
Changes since 1.64: +1 -2 lines
Diff to previous 1.64 (colored)

tedu faith(4), suggested by todd@ some weeks ago after a submission by
dhill.

ok krw@, mikeb@, tedu@ (implicit)

Revision 1.64 / (download) - annotate - [select for diffs], Thu Jan 17 16:30:10 2013 UTC (11 years, 4 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.63: +2 -2 lines
Diff to previous 1.63 (colored)

Expand the socket splicing functionality from TCP to UDP.  Merge
the code relevant for UDP from sosend() and soreceive() into somove().
That allows the kernel to directly transfer the UDP data from one
socket to another.
OK claudio@

Revision 1.63 / (download) - annotate - [select for diffs], Thu Mar 15 14:11:57 2012 UTC (12 years, 2 months ago) by mikeb
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.62: +8 -2 lines
Diff to previous 1.62 (colored)

Direct IPv6 packets with Ethernet encapsulation into the appropriate
input routine allowing us to bridge two IPv4 networks over an IPv6
link with gif(4).

ok henning, sthen, ok and tests phessler, "lets get this in!" todd

Revision 1.62 / (download) - annotate - [select for diffs], Thu Mar 31 10:36:42 2011 UTC (13 years, 2 months ago) by jasper
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.61: +2 -2 lines
Diff to previous 1.61 (colored)

- use nitems(); no binary change

ok claudio@

Revision 1.61 / (download) - annotate - [select for diffs], Wed Mar 23 13:40:42 2011 UTC (13 years, 2 months ago) by claudio
Branch: MAIN
Changes since 1.60: +2 -2 lines
Diff to previous 1.60 (colored)

Don't process ICMP6 redirects by default anymore. This is in line with
what we do for IPv4. rtsol will turn it back on if -F is used.
After discussion with bluhm@, fgsch@, sthen@ and deraadt@
OK sthen@

Revision 1.60 / (download) - annotate - [select for diffs], Fri Jan 7 17:50:42 2011 UTC (13 years, 5 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.59: +2 -2 lines
Diff to previous 1.59 (colored)

Add socket option SO_SPLICE to splice together two TCP sockets.
The data received on the source socket will automatically be sent
on the drain socket.  This allows to write relay daemons with zero
data copy.
ok markus@

Revision 1.59 / (download) - annotate - [select for diffs], Thu Jul 8 19:42:46 2010 UTC (13 years, 11 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.58: +1 -8 lines
Diff to previous 1.58 (colored)

remove some unused netinet6 code
ok stsp@ henning@ claudio@

Revision 1.58 / (download) - annotate - [select for diffs], Thu Nov 5 20:50:14 2009 UTC (14 years, 7 months ago) by michele
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.57: +15 -3 lines
Diff to previous 1.57 (colored)

IPv6 support for divert sockets.

tested by phessler@ pyr@
ok claudio@
"go ahead" deraadt@

Revision 1.57 / (download) - annotate - [select for diffs], Tue Nov 25 12:11:45 2008 UTC (15 years, 6 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.56: +2 -1 lines
Diff to previous 1.56 (colored)

delay /etc/netstart until IPv6-DAD (dup-address-detection) is completed.
ok fries, hshoexer, claudio

Revision 1.56 / (download) - annotate - [select for diffs], Wed Jun 11 06:30:36 2008 UTC (16 years ago) by mcbride
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.55: +5 -1 lines
Diff to previous 1.55 (colored)

From KAME, allow adjustable limits on NDP entries and discovered routes.

ok mpf naddy

Revision 1.55 / (download) - annotate - [select for diffs], Sat May 24 19:48:32 2008 UTC (16 years ago) by thib
Branch: MAIN
Changes since 1.54: +3 -3 lines
Diff to previous 1.54 (colored)

Remove {tcp/udp}6_usrreq(); Since the normal ones now
take a proc argument, theres no need for these, since
they are just wrappers.

OK claudio@

Revision 1.54 / (download) - annotate - [select for diffs], Tue May 6 08:47:36 2008 UTC (16 years, 1 month ago) by markus
Branch: MAIN
Changes since 1.53: +3 -3 lines
Diff to previous 1.53 (colored)

remove tcp_drain code since it's not longer used; ok henning, feedback thib

Revision 1.53 / (download) - annotate - [select for diffs], Fri Dec 14 18:33:41 2007 UTC (16 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.52: +3 -3 lines
Diff to previous 1.52 (colored)

add sysctl entry points into various network layers, in particular to
provide netstat(1) with data it needs;  ok claudio reyk

Revision 1.52 / (download) - annotate - [select for diffs], Thu May 3 15:47:47 2007 UTC (17 years, 1 month ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.51: +2 -2 lines
Diff to previous 1.51 (colored)

Reduce ip6_hdrnestlimit from 50 to 10. Normal IPv6 packets should not have
more then 10 headers nested.
OK deraadt@ henning@ mcbride@

Revision 1.51 / (download) - annotate - [select for diffs], Tue Nov 21 05:37:32 2006 UTC (17 years, 6 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.50: +2 -1 lines
Diff to previous 1.50 (colored)

introduce sysctl net.inet6.ip6.multicast_mtudisc (for multicast routers).
deraadt ok.  manpage nit by jmc.

Revision 1.50 / (download) - annotate - [select for diffs], Sun Jun 18 11:47:46 2006 UTC (17 years, 11 months ago) by pascoe
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.49: +2 -1 lines
Diff to previous 1.49 (colored)

Add support for equal-cost multipath IP.

To minimise path disruptions, this implements recommendations made in RFC2992 -
the hash-threshold mechanism to select paths based on source/destination IP
address pairs, and inserts multipath routes in the middle of the route table.

To enable multipath distribution, use:
   sysctl net.inet.ip.multipath=1
and/or:
   sysctl net.inet6.ip6.multipath=1

testing norby@
ok claudio@ henning@ hshoexer@

Revision 1.49 / (download) - annotate - [select for diffs], Fri Jun 16 15:18:42 2006 UTC (17 years, 11 months ago) by pascoe
Branch: MAIN
Changes since 1.48: +2 -2 lines
Diff to previous 1.48 (colored)

SZpelling.

Revision 1.48 / (download) - annotate - [select for diffs], Sat May 27 23:40:27 2006 UTC (18 years ago) by claudio
Branch: MAIN
Changes since 1.47: +6 -1 lines
Diff to previous 1.47 (colored)

Do the same thing as for IPv4. Use a sysctl to enable/disable mfrowarding
and additionaly make the code part of the MROUTING option. Put it in deraadt@

Revision 1.47 / (download) - annotate - [select for diffs], Fri Oct 14 02:44:27 2005 UTC (18 years, 8 months ago) by brad
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.46: +3 -11 lines
Diff to previous 1.46 (colored)

bye bye more compile time knobs, use the sysctl to enable v6 forwarding.

ok deraadt@

Revision 1.46 / (download) - annotate - [select for diffs], Tue Dec 7 20:38:47 2004 UTC (19 years, 6 months ago) by mcbride
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.45: +2 -2 lines
Diff to previous 1.45 (colored)

Convert carp(4) to behave more like a regular interface, much in the same
style as vlan(4). carp interfaces no longer require the physical interface
to be on the same subnet as the carp interface, or even that the physical
interface has an adress at all, so CARP can now be used on /30 networks.

ok deraadt@ henning@

Revision 1.45 / (download) - annotate - [select for diffs], Mon Oct 18 03:59:33 2004 UTC (19 years, 7 months ago) by itojun
Branch: MAIN
Changes since 1.44: +1 -2 lines
Diff to previous 1.44 (colored)

g/c ip6_flow_seq.  found by mcbride.  mcbride ok

Revision 1.17.2.9 / (download) - annotate - [select for diffs], Sat Jun 5 23:11:26 2004 UTC (20 years ago) by niklas
Branch: SMP
Changes since 1.17.2.8: +7 -0 lines
Diff to previous 1.17.2.8 (colored) to branchpoint 1.17 (colored) next main 1.18 (colored)

Merge with the trunk

Revision 1.44 / (download) - annotate - [select for diffs], Sun Apr 25 02:48:04 2004 UTC (20 years, 1 month ago) by itojun
Branch: MAIN
CVS Tags: SMP_SYNC_B, SMP_SYNC_A, OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.43: +8 -1 lines
Diff to previous 1.43 (colored)

radix tree with multipath support.  from kame.  deraadt ok
user visible changes:
- you can add multiple routes with same key (route add A B then route add A C)
- you have to specify gateway address if there are multiple entries on the table
  (route delete A B, instead of route delete A)
kernel change:
- radix_node_head has an extra entry
- rnh_deladdr takes extra argument

TODO:
- actually take advantage of multipath (rtalloc -> rtalloc_mpath)

Revision 1.17.2.8 / (download) - annotate - [select for diffs], Thu Feb 19 10:57:25 2004 UTC (20 years, 3 months ago) by niklas
Branch: SMP
Changes since 1.17.2.7: +14 -6 lines
Diff to previous 1.17.2.7 (colored) to branchpoint 1.17 (colored)

Merge of current from two weeks agointo the SMP branch

Revision 1.43 / (download) - annotate - [select for diffs], Fri Oct 31 09:00:32 2003 UTC (20 years, 7 months ago) by mcbride
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.42: +13 -1 lines
Diff to previous 1.42 (colored)

Add IPv6 support to CARP.

ok deraadt@

Revision 1.42 / (download) - annotate - [select for diffs], Thu Aug 7 09:11:53 2003 UTC (20 years, 10 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.41: +2 -6 lines
Diff to previous 1.41 (colored)

make net.inet6.ip6.redirect actually work.  from kame

Revision 1.17.2.7 / (download) - annotate - [select for diffs], Sat Jun 7 11:06:09 2003 UTC (21 years ago) by ho
Branch: SMP
Changes since 1.17.2.6: +2 -6 lines
Diff to previous 1.17.2.6 (colored) to branchpoint 1.17 (colored)

Sync SMP branch to -current

Revision 1.41 / (download) - annotate - [select for diffs], Mon Jun 2 23:28:15 2003 UTC (21 years ago) by millert
Branch: MAIN
Changes since 1.40: +2 -6 lines
Diff to previous 1.40 (colored)

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.

Revision 1.31.4.4 / (download) - annotate - [select for diffs], Mon May 19 22:27:25 2003 UTC (21 years ago) by tedu
Branch: UBC
Changes since 1.31.4.3: +1 -2 lines
Diff to previous 1.31.4.3 (colored) to branchpoint 1.31 (colored) next main 1.32 (colored)

sync

Revision 1.17.2.6 / (download) - annotate - [select for diffs], Fri Mar 28 00:41:29 2003 UTC (21 years, 2 months ago) by niklas
Branch: SMP
Changes since 1.17.2.5: +13 -11 lines
Diff to previous 1.17.2.5 (colored) to branchpoint 1.17 (colored)

Sync the SMP branch with 3.3

Revision 1.40 / (download) - annotate - [select for diffs], Mon Nov 11 18:25:40 2002 UTC (21 years, 7 months ago) by itojun
Branch: MAIN
CVS Tags: UBC_SYNC_A, OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.39: +1 -2 lines
Diff to previous 1.39 (colored)

pmtu_probe is not used anywhere (it is used in KAME TCP6-only code).
From: Krister Walfridsson <cato@df.lth.se>

Revision 1.31.4.3 / (download) - annotate - [select for diffs], Tue Oct 29 00:36:48 2002 UTC (21 years, 7 months ago) by art
Branch: UBC
Changes since 1.31.4.2: +9 -9 lines
Diff to previous 1.31.4.2 (colored) to branchpoint 1.31 (colored)

sync to -current

Revision 1.39 / (download) - annotate - [select for diffs], Tue Aug 20 21:59:12 2002 UTC (21 years, 9 months ago) by itojun
Branch: MAIN
CVS Tags: UBC_SYNC_B, OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored)

set use_deprecated back to 1.  sync w/kame

Revision 1.38 / (download) - annotate - [select for diffs], Sat Aug 17 22:19:28 2002 UTC (21 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored)

set default value for use_deprecated to 0, to avoid consequences with ftpd.

Revision 1.31.4.2 / (download) - annotate - [select for diffs], Tue Jun 11 03:31:37 2002 UTC (22 years ago) by art
Branch: UBC
Changes since 1.31.4.1: +6 -3 lines
Diff to previous 1.31.4.1 (colored) to branchpoint 1.31 (colored)

Sync UBC branch to -current

Revision 1.37 / (download) - annotate - [select for diffs], Sun Jun 9 14:38:39 2002 UTC (22 years ago) by itojun
Branch: MAIN
Changes since 1.36: +9 -9 lines
Diff to previous 1.36 (colored)

whitespace cleanup

Revision 1.36 / (download) - annotate - [select for diffs], Fri Jun 7 21:47:44 2002 UTC (22 years ago) by itojun
Branch: MAIN
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)

move IPV6_CHECKSUM processing to ip6_raw_ctloutput().  bunch of KNFs.
rip6 stats.  sync w/kame

Revision 1.35 / (download) - annotate - [select for diffs], Fri Jun 7 15:27:58 2002 UTC (22 years ago) by itojun
Branch: MAIN
Changes since 1.34: +2 -1 lines
Diff to previous 1.34 (colored)

just for consistency/compatibility, have net.inet6.ip6.v6only sysctl MIB,
as well as set/getsockopt(IPV6_V6ONLY).

Revision 1.34 / (download) - annotate - [select for diffs], Wed May 29 02:59:12 2002 UTC (22 years ago) by itojun
Branch: MAIN
Changes since 1.33: +3 -2 lines
Diff to previous 1.33 (colored)

move per-interface ip6/icmp6 stat to ifnet->if_afdata.   sync w/kame

Revision 1.33 / (download) - annotate - [select for diffs], Tue May 28 03:04:38 2002 UTC (22 years ago) by itojun
Branch: MAIN
Changes since 1.32: +2 -1 lines
Diff to previous 1.32 (colored)

limit number of IPv6 fragments (not the fragment queue size) to
fight against lots-of-frags DoS attacks.  sync w/kame

Revision 1.17.2.5 / (download) - annotate - [select for diffs], Wed Mar 6 02:15:08 2002 UTC (22 years, 3 months ago) by niklas
Branch: SMP
Changes since 1.17.2.4: +17 -17 lines
Diff to previous 1.17.2.4 (colored) to branchpoint 1.17 (colored)

Merge in trunk

Revision 1.31.4.1 / (download) - annotate - [select for diffs], Thu Jan 31 22:55:46 2002 UTC (22 years, 4 months ago) by niklas
Branch: UBC
Changes since 1.31: +17 -17 lines
Diff to previous 1.31 (colored)

Merge in -current, builds on i386, otherwise untested

Revision 1.32 / (download) - annotate - [select for diffs], Tue Jan 8 02:29:03 2002 UTC (22 years, 5 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.31: +17 -17 lines
Diff to previous 1.31 (colored)

correct behavior of IPv4 over IPv6 tunnel (using gif).

http://archives.neohapsis.com/archives/openbsd/2001-09/0165.html
From: Alexander Yurchenko <grange@rt.mipt.ru>

Revision 1.17.2.4 / (download) - annotate - [select for diffs], Wed Oct 31 03:29:04 2001 UTC (22 years, 7 months ago) by nate
Branch: SMP
Changes since 1.17.2.3: +2 -4 lines
Diff to previous 1.17.2.3 (colored) to branchpoint 1.17 (colored)

Sync the SMP branch to something just after 3.0

Revision 1.31 / (download) - annotate - [select for diffs], Wed Aug 8 15:09:00 2001 UTC (22 years, 10 months ago) by jjbg
Branch: MAIN
CVS Tags: UBC_BASE, OPENBSD_3_0_BASE, OPENBSD_3_0
Branch point for: UBC
Changes since 1.30: +1 -3 lines
Diff to previous 1.30 (colored)

remove IPCOMP option. deraadt@ ok.

Revision 1.30 / (download) - annotate - [select for diffs], Thu Jul 5 16:49:45 2001 UTC (22 years, 11 months ago) by jjbg
Branch: MAIN
Changes since 1.29: +4 -4 lines
Diff to previous 1.29 (colored)

IPComp support. angelos@ ok.

Revision 1.17.2.3 / (download) - annotate - [select for diffs], Wed Jul 4 10:55:21 2001 UTC (22 years, 11 months ago) by niklas
Branch: SMP
Changes since 1.17.2.2: +6 -8 lines
Diff to previous 1.17.2.2 (colored) to branchpoint 1.17 (colored)

Merge in -current from two days ago in the SMP branch.
As usual with merges, they do not indicate progress, so do not hold
your breath for working SMP, and do not mail me and ask about the
state of it.  It has not changed.  There is work ongoing, but very, very
slowly.  The commit is done in parts as to not lock up the tree in too
big chunks at a time.

Revision 1.29 / (download) - annotate - [select for diffs], Sat Jun 9 06:43:38 2001 UTC (23 years ago) by angelos
Branch: MAIN
Changes since 1.28: +1 -3 lines
Diff to previous 1.28 (colored)

No need for net/net_osdep.h

Revision 1.28 / (download) - annotate - [select for diffs], Fri May 25 22:08:24 2001 UTC (23 years ago) by itojun
Branch: MAIN
Changes since 1.27: +6 -6 lines
Diff to previous 1.27 (colored)

recover old acecept(2) behavior (no ECONNABORTED) for unix domain socket.
it is to be friendly with postfix daemon-to-daemon communication
(not 100% sure if which behavior is correct, specwise).  patch similar to netbsd.

Revision 1.17.2.2 / (download) - annotate - [select for diffs], Mon May 14 22:40:18 2001 UTC (23 years, 1 month ago) by niklas
Branch: SMP
Changes since 1.17.2.1: +9 -98 lines
Diff to previous 1.17.2.1 (colored) to branchpoint 1.17 (colored)

merge in approximately 2.9 into SMP branch

Revision 1.27 / (download) - annotate - [select for diffs], Fri Apr 6 04:42:09 2001 UTC (23 years, 2 months ago) by csapuntz
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.26: +1 -3 lines
Diff to previous 1.26 (colored)



Move offsetof define into sys/param.h

Revision 1.26 / (download) - annotate - [select for diffs], Mon Dec 11 08:04:56 2000 UTC (23 years, 6 months ago) by itojun
Branch: MAIN
Changes since 1.25: +1 -85 lines
Diff to previous 1.25 (colored)

nuke #ifdef TCP6 (no longer supported).
validate ICMPv6 too big messages (pmtud) based on pcb.  we accept
certain amount of non-validated ones, as IPv6 mandates ICMPv6 (so even for
traffic from unconnected pcb, we need pmtud).
sync with kame

Revision 1.25 / (download) - annotate - [select for diffs], Tue Oct 10 15:53:09 2000 UTC (23 years, 8 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

little bit of sync with kame ($KAME, s/u_char/u_int8_t/)

Revision 1.24 / (download) - annotate - [select for diffs], Tue Oct 10 14:23:34 2000 UTC (23 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored)

do not call tcp_init twice on dualstack machine

Revision 1.23 / (download) - annotate - [select for diffs], Thu Jul 6 10:11:25 2000 UTC (23 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.22: +6 -4 lines
Diff to previous 1.22 (colored)

- more icmp6/ip6 stats.
- protect IPv6 ND from being hosed (due to neighbor unreachability detection
  hint) by wrong tcp traffic.  still not sure if there's real attack, but
  it is good to be cautious.
- avoid bitfield for router renumbering header decl.
- implement packet-per-sec limitation for icmp6 errors, turn interval
  limit off (it is not very useful due to unix timer resolution).

Revision 1.22 / (download) - annotate - [select for diffs], Sun Jun 18 17:32:48 2000 UTC (23 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

sync with KAME udp6_output().  udp output logic is very different between
IPv4/v6 so the separation should make more sense.

TODO: remove IPv6 case from udp_output()
TODO: remove/comment out/#if 0 IPv4 mapped address cases

Revision 1.21 / (download) - annotate - [select for diffs], Thu May 25 01:22:00 2000 UTC (24 years ago) by itojun
Branch: MAIN
Changes since 1.20: +1 -6 lines
Diff to previous 1.20 (colored)

net.inet.ip.gif_ttl (and IPv6 counterpart) is never used.
enforce type checking on IN6_ARE_ADDR_EQUAL.

Revision 1.20 / (download) - annotate - [select for diffs], Mon May 22 10:32:52 2000 UTC (24 years ago) by itojun
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

use ratecheck(9) for ICMPv6 rate limitation.  sync with netbsd-current.

Revision 1.17.2.1 / (download) - annotate - [select for diffs], Thu Mar 2 07:04:45 2000 UTC (24 years, 3 months ago) by niklas
Branch: SMP
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

Sync with -current

Revision 1.19 / (download) - annotate - [select for diffs], Mon Feb 28 16:40:39 2000 UTC (24 years, 3 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

- check raw socket icmp6 filter only if the packet is icmp6.
- allow setting raw socket icmp6 filter only if it is IPPROTO_ICMPV6 socket.
	(cmetz may object about above two items...)
- add rip6_ctlinput, to flush cached router properly on redirects.

Revision 1.18 / (download) - annotate - [select for diffs], Mon Feb 28 11:55:22 2000 UTC (24 years, 3 months ago) by itojun
Branch: MAIN
Changes since 1.17: +1 -1 lines
Diff to previous 1.17 (colored)

bring in recent KAME changes (only important and stable ones, as usual).
- remove net.inet6.ip6.nd6_proxyall.  introduce proxy NDP code works
  just like "arp -s".
- revise source address selection.
  be more careful about use of yet-to-be-valid addresses as source.
- as router, transmit ICMP6_DST_UNREACH_BEYONDSCOPE against out-of-scope
  packet forwarding attempt.
- path MTU discovery takes care of routing header properly.
- be more strict about mbuf chain parsing.
- nuke xxCTL_VARS #define, they are for BSDI.
- disable SIOCSIFDSTADDR_IN6/SIOCSIFNETMASK_IN6 ioctl, they do not fit
  IPv6 model where multiple address on interface is normal.
  (kernel side supports them for a while for backward compat,
  the support will be nuked shortly)
- introduce "default outgoing interface" (for spec conformance in very
  rare case)

Revision 1.17 / (download) - annotate - [select for diffs], Mon Feb 7 06:09:10 2000 UTC (24 years, 4 months ago) by itojun
Branch: MAIN
CVS Tags: SMP_BASE
Branch point for: SMP
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

fix include file path related to ip6.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Feb 2 17:01:51 2000 UTC (24 years, 4 months ago) by itojun
Branch: MAIN
Changes since 1.15: +1 -5 lines
Diff to previous 1.15 (colored)

remove never-visited code (#ifdef MAPPED_ADDR_ENABLED)

Revision 1.15 / (download) - annotate - [select for diffs], Sun Jan 23 03:51:03 2000 UTC (24 years, 4 months ago) by angelos
Branch: MAIN
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

ip4_input -> ip4_input6, and fix typo in comment

Revision 1.14 / (download) - annotate - [select for diffs], Fri Jan 21 03:15:06 2000 UTC (24 years, 4 months ago) by angelos
Branch: MAIN
Changes since 1.13: +11 -11 lines
Diff to previous 1.13 (colored)

Rename the ip4_* routines to ipip_*, make it so GIF tunnels are not
affected by net.inet.ipip.allow (the sysctl formerly known as
net.inet.ip4.allow), rename the VIF ipip_input to ipip_mroute_input.

Revision 1.13 / (download) - annotate - [select for diffs], Thu Jan 13 06:01:22 2000 UTC (24 years, 5 months ago) by angelos
Branch: MAIN
Changes since 1.12: +2 -1 lines
Diff to previous 1.12 (colored)

We do need netinet/ip_ip4.h after all...

Revision 1.12 / (download) - annotate - [select for diffs], Thu Jan 13 05:06:12 2000 UTC (24 years, 5 months ago) by angelos
Branch: MAIN
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

Align.

Revision 1.11 / (download) - annotate - [select for diffs], Thu Jan 13 04:59:38 2000 UTC (24 years, 5 months ago) by angelos
Branch: MAIN
Changes since 1.10: +3 -7 lines
Diff to previous 1.10 (colored)

Introduce ip4_input6() with the correct prototype...

Revision 1.10 / (download) - annotate - [select for diffs], Thu Jan 13 04:09:00 2000 UTC (24 years, 5 months ago) by angelos
Branch: MAIN
Changes since 1.9: +2 -1 lines
Diff to previous 1.9 (colored)

Add include file fixing non-gif inet6 kernels.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Jan 12 06:35:04 2000 UTC (24 years, 5 months ago) by angelos
Branch: MAIN
Changes since 1.8: +20 -3 lines
Diff to previous 1.8 (colored)

Use netinet/ip_ip4.c routines.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Jan 2 11:09:20 2000 UTC (24 years, 5 months ago) by angelos
Branch: MAIN
Changes since 1.7: +5 -3 lines
Diff to previous 1.7 (colored)

Replace references to ipsec6_sysctl (code is not yet compiled in)

Revision 1.7 / (download) - annotate - [select for diffs], Sun Jan 2 04:52:26 2000 UTC (24 years, 5 months ago) by itojun
Branch: MAIN
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored)

implement net.inet6.icmp6.nodeinfo sysctl, which disables
ICMPv6 node information query (and FQDN query - old variant).

kame repository has the change as well.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Dec 10 10:04:28 1999 UTC (24 years, 6 months ago) by angelos
Branch: MAIN
Changes since 1.5: +1 -344 lines
Diff to previous 1.5 (colored)

Remove remaining unnecessary ifdefs (itojun will hate me for this :-)

Revision 1.5 / (download) - annotate - [select for diffs], Fri Dec 10 08:53:17 1999 UTC (24 years, 6 months ago) by angelos
Branch: MAIN
Changes since 1.4: +2 -0 lines
Diff to previous 1.4 (colored)

Add RCS tags, remove unused header files and code, remove a few
unnecessary ifdefs...

Revision 1.4 / (download) - annotate - [select for diffs], Wed Dec 8 06:50:21 1999 UTC (24 years, 6 months ago) by itojun
Branch: MAIN
CVS Tags: kame_19991208
Changes since 1.3: +665 -345 lines
Diff to previous 1.3 (colored)

bring in KAME IPv6 code, dated 19991208.
replaces NRL IPv6 layer.  reuses NRL pcb layer.  no IPsec-on-v6 support.
see sys/netinet6/{TODO,IMPLEMENTATION} for more details.

GENERIC configuration should work fine as before.  GENERIC.v6 works fine
as well, but you'll need KAME userland tools to play with IPv6 (will be
bringed into soon).

Revision 1.3 / (download) - annotate - [select for diffs], Tue Mar 9 05:31:52 1999 UTC (25 years, 3 months ago) by cmetz
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6, OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.2: +13 -6 lines
Diff to previous 1.2 (colored)

Demangled the INET6 stuff so as not to require any extra options and not to
be mutually exclusive with the IPSEC option.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Feb 24 04:36:41 1999 UTC (25 years, 3 months ago) by cmetz
Branch: MAIN
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (colored)

Synchronized changes needed to integrate into OpenBSD with the NRL source
tree so we can have a unified netinet6 directory.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Jan 6 23:26:56 1999 UTC (25 years, 5 months ago) by deraadt
Branch: MAIN

first few files of NRL ipv6.  This NRL release was officially exported
to me by US DOD officials, with the crypto already removed.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.