OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.65 / (download) - annotate - [select for diffs], Wed Apr 17 20:48:51 2024 UTC (7 weeks, 4 days ago) by bluhm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.64: +2 -2 lines
Diff to previous 1.64 (colored)

Use struct ipsec_level within inpcb.

Instead of passing around u_char[4], introduce struct ipsec_level
that contains 4 ipsec levels.  This provides better type safety.
The embedding struct inpcb is globally visible for netstat(1), so
put struct ipsec_level outside of #ifdef _KERNEL.

OK deraadt@ mvs@

Revision 1.64 / (download) - annotate - [select for diffs], Tue Feb 13 12:22:09 2024 UTC (3 months, 3 weeks ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5
Changes since 1.63: +2 -2 lines
Diff to previous 1.63 (colored)

Merge struct route and struct route_in6.

Use a common struct route for both inet and inet6.  Unfortunately
struct sockaddr is shorter than sockaddr_in6, so netinet/in.h has
to be exposed from net/route.h.  Struct route has to be bsd visible
for userland as netstat kvm code inspects inp_route.  Internet PCB
and TCP SYN cache can use a plain struct route now.  All specific
sockaddr types for inet and inet6 are embeded there.

OK claudio@

Revision 1.63 / (download) - annotate - [select for diffs], Sun Dec 3 20:36:24 2023 UTC (6 months, 1 week ago) by bluhm
Branch: MAIN
Changes since 1.62: +27 -27 lines
Diff to previous 1.62 (colored)

Rename all in6p local variables to inp.

There exists no struct in6pcb in OpenBSD, this was an old kame idea.
Calling the local variable in6p does not make sense, it is actually
a struct inpcb.  Also in6p is not used consistently in inet6 code.
Having the same convention for IPv4 and IPv6 is less confusing.

OK sashan@ mvs@

Revision 1.62 / (download) - annotate - [select for diffs], Fri Dec 1 14:08:04 2023 UTC (6 months, 1 week ago) by bluhm
Branch: MAIN
Changes since 1.61: +2 -2 lines
Diff to previous 1.61 (colored)

Make internet PCB connect more consistent.

The public interface is in_pcbconnect().  It dispatches to
in6_pcbconnect() if necessary.  Call the former from tcp_connect()
and udp_connect().
In in6_pcbconnect() initialization in6a = NULL is not necessary.
in6_pcbselsrc() sets the pointer, but does not read the value.
Pass a constant in6_addr pointer to in6_pcbselsrc() and in6_selectsrc().
It returns a reference to the address of some internal data structure.
We want to be sure that in6_addr is not modified this way.  IPv4
in_pcbselsrc() solves this by passing a copy of the address.

OK kn@ sashan@ mvs@

Revision 1.61 / (download) - annotate - [select for diffs], Tue Nov 28 13:23:20 2023 UTC (6 months, 1 week ago) by bluhm
Branch: MAIN
Changes since 1.60: +3 -2 lines
Diff to previous 1.60 (colored)

Remove struct inpcb from in6_embedscope() parameters.

rip6_output() did modify inp_outputopts6 temporarily to provide
different ip6_pktopts to in6_embedscope().  Better pass inp_outputopts6
and inp_moptions6 as separate arguments to in6_embedscope().
Simplify the code that deals with these options in in6_embedscope().
Doucument inp_moptions and inp_moptions6 as protected by net lock.

OK kn@

Revision 1.60 / (download) - annotate - [select for diffs], Sun Nov 26 22:08:10 2023 UTC (6 months, 2 weeks ago) by bluhm
Branch: MAIN
Changes since 1.59: +2 -2 lines
Diff to previous 1.59 (colored)

Remove inp parameter from ip_output().

ip_output() received inp as parameter.  This is only used to lookup
the IPsec level of the socket.  Reasoning about MP locking is much
easier if only relevant data is passed around.  Convert ip_output()
to receive constant inp_seclevel as argument and mark it as protected
by net lock.

OK mvs@

Revision 1.59 / (download) - annotate - [select for diffs], Tue Feb 22 01:35:41 2022 UTC (2 years, 3 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.58: +1 -2 lines
Diff to previous 1.58 (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.58 / (download) - annotate - [select for diffs], Tue Feb 22 01:15:02 2022 UTC (2 years, 3 months ago) by guenther
Branch: MAIN
Changes since 1.57: +1 -2 lines
Diff to previous 1.57 (colored)

Delete unnecessary #includes of <sys/domain.h> and/or <sys/protosw.h>

net/if_pppx.c pointed out by jsg@
ok gnezdo@ deraadt@ jsg@ mpi@ millert@

Revision 1.57 / (download) - annotate - [select for diffs], Wed Mar 10 10:21:49 2021 UTC (3 years, 3 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.56: +2 -2 lines
Diff to previous 1.56 (colored)

spelling

ok gnezdo@ semarie@ mpi@

Revision 1.56 / (download) - annotate - [select for diffs], Thu Sep 13 19:53:58 2018 UTC (5 years, 8 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.55: +5 -2 lines
Diff to previous 1.55 (colored)

Add reference counting for inet pcb, this will be needed when we
start locking the socket.  An inp can be referenced by the PCB queue
and hashes, by a pf mbuf header, or by a pf state key.
OK visa@

Revision 1.55 / (download) - annotate - [select for diffs], Fri Aug 11 19:53:02 2017 UTC (6 years, 10 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.54: +3 -10 lines
Diff to previous 1.54 (colored)

Validate sockaddr from userland in central functions.  This results
in common checks for unix, inet, inet6 instead of partial checks
here and there.  Some checks are already done at a higher layer,
but better be paranoid with user input.
OK claudio@ millert@

Revision 1.54 / (download) - annotate - [select for diffs], Sat May 13 17:44:38 2017 UTC (7 years ago) by bluhm
Branch: MAIN
Changes since 1.53: +2 -2 lines
Diff to previous 1.53 (colored)

Return EADDRNOTAVAIL if UDP sendto(2) is used with a mapped address.
OK mpi@

Revision 1.53 / (download) - annotate - [select for diffs], Mon Dec 19 15:47:19 2016 UTC (7 years, 5 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.52: +1 -3 lines
Diff to previous 1.52 (colored)

Remove redundant splsoftnet().

ok bluhm@

Revision 1.52 / (download) - annotate - [select for diffs], Fri Nov 18 02:53:47 2016 UTC (7 years, 6 months ago) by dlg
Branch: MAIN
Changes since 1.51: +2 -2 lines
Diff to previous 1.51 (colored)

turn ipstat into a set of percpu counters.

each counter is identified by an enum value which correspond to the
original members of the udpstat struct.

udpstat_inc(udps_foo) replaces udpstat.udps_foo++ for the actual
updates. udpstat_inc is a thin wrapper around counters_inc.

counters are still returned to userland via the udpstat struct for
now.

ok mpi@ mikeb@ deraadt@

Revision 1.51 / (download) - annotate - [select for diffs], Thu Aug 4 20:46:24 2016 UTC (7 years, 10 months ago) by vgross
Branch: MAIN
Changes since 1.50: +2 -4 lines
Diff to previous 1.50 (colored)

Commit in6_selectsrc() split again, with missing assignment fixed.

Revision 1.50 / (download) - annotate - [select for diffs], Fri Jul 22 11:14:41 2016 UTC (7 years, 10 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.49: +3 -1 lines
Diff to previous 1.49 (colored)

Revert in_selectsrc() refactoring, it breaks IPv6.

Reported by Heiko on bugs@.

ok stsp@, claudio@

Revision 1.49 / (download) - annotate - [select for diffs], Wed Jul 20 18:51:50 2016 UTC (7 years, 10 months ago) by vgross
Branch: MAIN
Changes since 1.48: +2 -4 lines
Diff to previous 1.48 (colored)

Split in6_selectsrc() into a low-level part and a pcb-level part, and
convert in_selectsrc() prototype to match.

Ok bluhm@ mpi@.

Revision 1.48 / (download) - annotate - [select for diffs], Thu May 19 08:02:22 2016 UTC (8 years ago) by vgross
Branch: MAIN
Changes since 1.47: +3 -2 lines
Diff to previous 1.47 (colored)

Do not check if source address is available when the UDP6 socket is bound
to [::]. We should be able to send from a socket bound to [::] while using
sockets bound to specified addresses for reception.

Spotted with regress/usr.sbin/syslogd/args-client-bind-only6.pl test case.

"makes sense to me" millert@, ok benno@, ok bluhm@

Revision 1.47 / (download) - annotate - [select for diffs], Thu Mar 31 11:59:28 2016 UTC (8 years, 2 months ago) by vgross
Branch: MAIN
Changes since 1.46: +2 -1 lines
Diff to previous 1.46 (colored)

Don't forget to initialize scope_id. This fixes semarie@ and sthen@'s
regressions with dhcpcd.

Ok sthen@

Revision 1.41.2.1 / (download) - annotate - [select for diffs], Thu Mar 24 05:02:53 2016 UTC (8 years, 2 months ago) by jsg
Branch: OPENBSD_5_9
Changes since 1.41: +18 -1 lines
Diff to previous 1.41 (colored) next main 1.42 (colored)

OpenBSD 5.9 errata 2, Mar 16, 2016:

Insufficient checks in IPv6 socket binding and UDP IPv6 option
processing allow a local user to send UDP packets with a source
(IPv6 address + port) already reserved by another user.

Revision 1.46 / (download) - annotate - [select for diffs], Wed Mar 23 15:50:36 2016 UTC (8 years, 2 months ago) by vgross
Branch: MAIN
Changes since 1.45: +2 -2 lines
Diff to previous 1.45 (colored)

Merge in_pcbbind() and in6_pcbbind(), and change every call to
in6_pcbbind() into in_pcbbind().

Ok jca@ mpi@

Revision 1.45 / (download) - annotate - [select for diffs], Mon Mar 21 21:21:35 2016 UTC (8 years, 2 months ago) by vgross
Branch: MAIN
Changes since 1.44: +9 -16 lines
Diff to previous 1.44 (colored)

Extract in6_pcbaddrisavail() from in6_pcbbind(), and use it when
checking for source availability in udp6_output(); This time with
all the files.

Ok jca@ bluhm@

Revision 1.44 / (download) - annotate - [select for diffs], Sun Mar 20 01:26:30 2016 UTC (8 years, 2 months ago) by jca
Branch: MAIN
Changes since 1.43: +15 -8 lines
Diff to previous 1.43 (colored)

Revert, missing decl for in6_pcbaddrisavail() breaks kernel build.

Spotted by deraadt@

Revision 1.43 / (download) - annotate - [select for diffs], Sat Mar 19 23:59:49 2016 UTC (8 years, 2 months ago) by vgross
Branch: MAIN
Changes since 1.42: +9 -16 lines
Diff to previous 1.42 (colored)

Extract in6_pcbaddrisavail() from in6_pcbbind(), and use it when
checking for source availability in udp6_output().

Ok jca@ bluhm@

Revision 1.35.4.1 / (download) - annotate - [select for diffs], Wed Mar 16 10:03:05 2016 UTC (8 years, 2 months ago) by vgross
Branch: OPENBSD_5_8
Changes since 1.35: +18 -1 lines
Diff to previous 1.35 (colored) next main 1.36 (colored)

Insufficient checks in IPv6 socket binding and UDP IPv6 option
processing allow a local user to send UDP packets with a source
(IPv6 address + port) already reserved by another user.

See Errata 012

Revision 1.33.2.1 / (download) - annotate - [select for diffs], Wed Mar 16 09:26:13 2016 UTC (8 years, 2 months ago) by vgross
Branch: OPENBSD_5_7
Changes since 1.33: +18 -1 lines
Diff to previous 1.33 (colored) next main 1.34 (colored)

Insufficient checks in IPv6 socket binding and UDP IPv6 option
processing allow a local user to send UDP packets with a source
(IPv6 address + port) already reserved by another user.

See Errata 024

Revision 1.42 / (download) - annotate - [select for diffs], Sat Mar 12 09:25:38 2016 UTC (8 years, 3 months ago) by vgross
Branch: MAIN
Changes since 1.41: +18 -1 lines
Diff to previous 1.41 (colored)

Add checks on overlapping IPv6 sockets ownership

ok mpi@ bluhm@

Revision 1.41 / (download) - annotate - [select for diffs], Wed Dec 2 22:13:44 2015 UTC (8 years, 6 months ago) by vgross
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE
Branch point for: OPENBSD_5_9
Changes since 1.40: +8 -4 lines
Diff to previous 1.40 (colored)

Move port picking away from in_pcbbind()

ok sthen@

Revision 1.40 / (download) - annotate - [select for diffs], Tue Nov 24 13:37:16 2015 UTC (8 years, 6 months ago) by mpi
Branch: MAIN
Changes since 1.39: +1 -2 lines
Diff to previous 1.39 (colored)

No need for <net/if_types.h>

As a bonus this removes a "#if NCARP > 0", say yeah!

Revision 1.39 / (download) - annotate - [select for diffs], Sat Oct 24 16:08:48 2015 UTC (8 years, 7 months ago) by mpi
Branch: MAIN
Changes since 1.38: +2 -6 lines
Diff to previous 1.38 (colored)

Ignore Router Advertisment's current hop limit.

Appart from the usual inet6 axe murdering exercise to keep you fit, this
allows us to get rid of a lot of layer violation due to the use of per-
ifp variables to store the current hop limit.

Imputs from bluhm@, ok phessler@, florian@, bluhm@

Revision 1.38 / (download) - annotate - [select for diffs], Mon Oct 19 12:11:28 2015 UTC (8 years, 7 months ago) by mpi
Branch: MAIN
Changes since 1.37: +2 -3 lines
Diff to previous 1.37 (colored)

Stop checking for RTF_UP directly, call rtisvalid(9) instead.

While here add two missing ``rtableid'' checks in in6_selectsrc().

ok bluhm@

Revision 1.37 / (download) - annotate - [select for diffs], Fri Sep 11 08:17:06 2015 UTC (8 years, 9 months ago) by claudio
Branch: MAIN
Changes since 1.36: +2 -2 lines
Diff to previous 1.36 (colored)

Kill yet another argument to functions in IPv6. This time ip6_output's
ifpp - XXX: just for statistics
ifpp is always NULL in all callers so that statistic confirms ifpp is
dying
OK mpi@

Revision 1.36 / (download) - annotate - [select for diffs], Fri Sep 11 07:42:35 2015 UTC (8 years, 9 months ago) by claudio
Branch: MAIN
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)

in6_embedscope() needs to lose some weight. Remove the last argument.
In all but two calls NULL is passed and in the other 2 cases the ifp
is only used to maybe feed it to in6_selecthlim() to select the hoplimit
for the link. Since in6_embedscope() only works on link-local addresses
it does not matter what hop limit we select since the destination is
directly reachable.
OK florian@ mpi@

Revision 1.35 / (download) - annotate - [select for diffs], Mon Jun 8 22:19:28 2015 UTC (9 years ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE
Branch point for: OPENBSD_5_8
Changes since 1.34: +4 -4 lines
Diff to previous 1.34 (colored)

More damned eye searing whitespace. No change to .o files.

Revision 1.34 / (download) - annotate - [select for diffs], Wed May 13 10:42:47 2015 UTC (9 years, 1 month ago) by jsg
Branch: MAIN
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)

test mbuf pointers against NULL not 0
ok krw@ miod@

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

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

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

Revision 1.32 / (download) - annotate - [select for diffs], Sun Nov 9 22:05:08 2014 UTC (9 years, 7 months ago) by bluhm
Branch: MAIN
Changes since 1.31: +8 -1 lines
Diff to previous 1.31 (colored)

To implement transparent relays for connectionless protocols, the
pf the state has to vanish immediately when the relay closes the
socket.  To make this work reliably, the linkage between state and
socket must be established with the first packet.  This packet could
be incomming or outgoing.
Link the pf state in the socket layer earlier.  This makes all tests
in /usr/src/regress/sys/net/pf_divert pass.
OK henning@

Revision 1.31 / (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.30: +1 -2 lines
Diff to previous 1.30 (colored)

Fewer <netinet/in_systm.h> !

Revision 1.30 / (download) - annotate - [select for diffs], Tue Jun 3 13:32:24 2014 UTC (10 years ago) by mpi
Branch: MAIN
Changes since 1.29: +1 -2 lines
Diff to previous 1.29 (colored)

Do not include <sys/malloc.h> where it is not needed.

Revision 1.29 / (download) - annotate - [select for diffs], Fri Apr 18 18:56:25 2014 UTC (10 years, 1 month ago) by jca
Branch: MAIN
Changes since 1.28: +34 -43 lines
Diff to previous 1.28 (colored)

Remove the dead KAME code that dealt with IPv4-mapped IPv6 addresses.
Add a check for IPv4-mapped IPv6 destination addresses, like in the most
recent KAME code, for non-connected sockets.  This prevents packets from
reaching the wire through the default route, if a reject route
for ::ffff:0.0.0.0/96 isn't present.  ok claudio@

Revision 1.28 / (download) - annotate - [select for diffs], Fri Apr 18 18:44:18 2014 UTC (10 years, 1 month ago) by jca
Branch: MAIN
Changes since 1.27: +1 -2 lines
Diff to previous 1.27 (colored)

This remnant comment doesn't belong here.  ok claudio@

Revision 1.27 / (download) - annotate - [select for diffs], Fri Apr 18 10:48:30 2014 UTC (10 years, 1 month ago) by jca
Branch: MAIN
Changes since 1.26: +5 -7 lines
Diff to previous 1.26 (colored)

Invert the signature logic of in{,6}_selectsrc, make them return the
error code and pass the resulting source address back to the caller
through a pointer, as suggested by chrisz.  This gives us more readable
code, and eases the deletion of useless checks in the callers' error path.
Add a bunch of "0 -> NULL" conversions, while here.
ok chrisz@ mpi@

Revision 1.26 / (download) - annotate - [select for diffs], Wed Apr 16 13:04:38 2014 UTC (10 years, 1 month ago) by mpi
Branch: MAIN
Changes since 1.25: +5 -15 lines
Diff to previous 1.25 (colored)

Merge in_fixaddr() into in_selectsrc() in order to prepare for
IP_SENDSRCADDR support.  This reduces the differences with the
IPv6 version and kill some comments that are no longer true.

ok jca@, chrisz@, mikeb@

Revision 1.25 / (download) - annotate - [select for diffs], Mon Apr 14 09:06:42 2014 UTC (10 years, 1 month ago) by mpi
Branch: MAIN
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)

"struct pkthdr" holds a routing table ID, not a routing domain one.
Avoid the confusion by using an appropriate name for the variable.

Note that since routing domain IDs are a subset of the set of routing
table IDs, the following idiom is correct:

	rtableid = rdomain

But to get the routing domain ID corresponding to a given routing table
ID, you must call rtable_l2(9).

claudio@ likes it, ok mikeb@

Revision 1.24 / (download) - annotate - [select for diffs], Wed Apr 9 08:44:08 2014 UTC (10 years, 2 months ago) by chrisz
Branch: MAIN
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

Fix m_freem(NULL) in error case.

OK claudio@

Revision 1.23 / (download) - annotate - [select for diffs], Wed Oct 23 19:57:50 2013 UTC (10 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.22: +23 -38 lines
Diff to previous 1.22 (colored)

Back when some NRL code was merged into KAME to create the *BSD IPV6
stack (factoid: by a bunch of people in my living room), some compatibility
#define's were created to shim incompatible inpcb access methods. There
was an understanding they would eventually be removed.  Since they are
error prone, and 1999 is a long time ago, now they die.
ok mikeb claudio mpi

Revision 1.22 / (download) - annotate - [select for diffs], Tue Oct 22 15:08:55 2013 UTC (10 years, 7 months ago) by naddy
Branch: MAIN
Changes since 1.21: +2 -5 lines
Diff to previous 1.21 (colored)

Compute the checksum in in_proto_cksum_out, just set the flag in
the UDP stack.  ok henning@

Revision 1.21 / (download) - annotate - [select for diffs], Mon Oct 21 12:37:42 2013 UTC (10 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.20: +10 -20 lines
Diff to previous 1.20 (colored)

Janitoring.  No significant binary change.

Revision 1.20 / (download) - annotate - [select for diffs], Thu Oct 17 16:27:47 2013 UTC (10 years, 7 months ago) by bluhm
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (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.19 / (download) - annotate - [select for diffs], Thu Mar 28 16:45:16 2013 UTC (11 years, 2 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.18: +1 -2 lines
Diff to previous 1.18 (colored)

no need for a lot of code to include proc.h

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

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

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

Revision 1.17 / (download) - annotate - [select for diffs], Thu Nov 24 17:39:55 2011 UTC (12 years, 6 months ago) by sperreault
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.16: +7 -2 lines
Diff to previous 1.16 (colored)

rdomain support for IPv6
ok mikeb

Revision 1.16 / (download) - annotate - [select for diffs], Sun Nov 23 13:30:59 2008 UTC (15 years, 6 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.15: +7 -4 lines
Diff to previous 1.15 (colored)

When accessing cached routes make sure the route is actually still valid.
Before accessing a ro_rt make sure the route is either freshly allocated or
RTF_UP is set. If not ro_rt should be freed and reallocated or at least no
info from the ro_rt should be considered valid.
This seems to solve the crashes seen by Felipe Alfaro Solana.
some sort of OK dlg@

Revision 1.15 / (download) - annotate - [select for diffs], Wed Jun 11 19:00:50 2008 UTC (16 years ago) by mcbride
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.14: +3 -5 lines
Diff to previous 1.14 (colored)

ANSIfy to sync with KAME. From Karl Sjodahl <dunceor@gmail.com>.

ok todd deraadt naddy bluhm

Revision 1.14 / (download) - annotate - [select for diffs], Fri Jun 1 00:52:39 2007 UTC (17 years ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

apply the "skip ipsec if there are no flows" speedup diff to IPv6 too.
we need a pointer to the inpcb to decide, which was not previously
passed to ip6_output, so this diff is a little bigger.
from itojun, ok ryan

Revision 1.13 / (download) - annotate - [select for diffs], Sat Dec 9 01:12:28 2006 UTC (17 years, 6 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.12: +10 -9 lines
Diff to previous 1.12 (colored)

switch IPv6 advanced API from RFC2292 to RFC3542 (2292 is superseded by 3542).
the kernel still handles RFC2292 set/getsockopts, so that compiled binary
has no trouble running.  userland sees RFC3542 symbols only on header file
so new code has to use RFC3542 API.

bump libc shlib minor for function additions.

tested on i386/amd64 by jmc, i386 by brad. checked by deraadt.

Revision 1.3.4.6 / (download) - annotate - [select for diffs], Sun Jun 13 08:50:18 2004 UTC (20 years ago) by niklas
Branch: SMP
Changes since 1.3.4.5: +1 -3 lines
Diff to previous 1.3.4.5 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)

sync to HEAD

Revision 1.12 / (download) - annotate - [select for diffs], Sat Jun 12 04:58:48 2004 UTC (20 years ago) by itojun
Branch: MAIN
CVS Tags: SMP_SYNC_A, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.11: +1 -3 lines
Diff to previous 1.11 (colored)

support IPV6_USE_MIN_MTU, to make BIND9 better.
(sorry about the mess yesterday)

Revision 1.11 / (download) - annotate - [select for diffs], Fri Jun 11 14:27:13 2004 UTC (20 years ago) by deraadt
Branch: MAIN
Changes since 1.10: +2 -0 lines
Diff to previous 1.10 (colored)

back out tree breakage.  Like, come on

Revision 1.10 / (download) - annotate - [select for diffs], Fri Jun 11 08:09:29 2004 UTC (20 years ago) by itojun
Branch: MAIN
Changes since 1.9: +1 -3 lines
Diff to previous 1.9 (colored)

support IPV6_USE_MIN_MTU, which is needed to run BIND9 well.  from kame
markus ok

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

Sync SMP branch to -current

Revision 1.9 / (download) - annotate - [select for diffs], Mon Jun 2 23:28:16 2003 UTC (21 years ago) by millert
Branch: MAIN
CVS Tags: SMP_SYNC_B, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.8: +2 -6 lines
Diff to previous 1.8 (colored)

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

Revision 1.3.4.4 / (download) - annotate - [select for diffs], Fri Mar 28 00:41:30 2003 UTC (21 years, 2 months ago) by niklas
Branch: SMP
Changes since 1.3.4.3: +5 -3 lines
Diff to previous 1.3.4.3 (colored) to branchpoint 1.3 (colored)

Sync the SMP branch with 3.3

Revision 1.5.2.2 / (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.5.2.1: +5 -3 lines
Diff to previous 1.5.2.1 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

sync to -current

Revision 1.8 / (download) - annotate - [select for diffs], Wed Sep 11 03:15:36 2002 UTC (21 years, 9 months ago) by itojun
Branch: MAIN
CVS Tags: UBC_SYNC_B, UBC_SYNC_A, OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

KNF - return is not a function.  sync w/kame

Revision 1.7 / (download) - annotate - [select for diffs], Wed Sep 4 07:26:53 2002 UTC (21 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.6: +4 -2 lines
Diff to previous 1.6 (colored)

pass struct proc * down to in6_pcbsetport

Revision 1.5.2.1 / (download) - annotate - [select for diffs], Tue Jun 11 03:31:38 2002 UTC (22 years ago) by art
Branch: UBC
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Sync UBC branch to -current

Revision 1.6 / (download) - annotate - [select for diffs], Wed May 29 23:38:58 2002 UTC (22 years ago) by itojun
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

force fragment to minimum link MTU (1280) when needed (when PMTUD does
not take effect) - like icmp6 responses or foo-over-IPv6 tunnel.

Revision 1.3.4.3 / (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.3.4.2: +1 -6 lines
Diff to previous 1.3.4.2 (colored) to branchpoint 1.3 (colored)

Merge in trunk

Revision 1.5 / (download) - annotate - [select for diffs], Thu Dec 6 04:19:26 2001 UTC (22 years, 6 months ago) by itojun
Branch: MAIN
CVS Tags: UBC_BASE, OPENBSD_3_1_BASE, OPENBSD_3_1
Branch point for: UBC
Changes since 1.4: +1 -6 lines
Diff to previous 1.4 (colored)

remove kame IPSEC code within #ifdef.

Revision 1.3.4.2 / (download) - annotate - [select for diffs], Wed Jul 4 10:55:28 2001 UTC (22 years, 11 months ago) by niklas
Branch: SMP
Changes since 1.3.4.1: +1 -3 lines
Diff to previous 1.3.4.1 (colored) to branchpoint 1.3 (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.4 / (download) - annotate - [select for diffs], Sat Jun 9 06:43:38 2001 UTC (23 years ago) by angelos
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.3: +1 -3 lines
Diff to previous 1.3 (colored)

No need for net/net_osdep.h

Revision 1.3.4.1 / (download) - annotate - [select for diffs], Mon May 14 22:40:21 2001 UTC (23 years, 1 month ago) by niklas
Branch: SMP
Changes since 1.3: +1 -1 lines
Diff to previous 1.3 (colored)

merge in approximately 2.9 into SMP branch

Revision 1.3 / (download) - annotate - [select for diffs], Fri Feb 16 08:19:32 2001 UTC (23 years, 3 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Branch point for: SMP
Changes since 1.2: +9 -6 lines
Diff to previous 1.2 (colored)

sync better with kame.  remove register decls.  $OpenBSD$

Revision 1.2 / (download) - annotate - [select for diffs], Thu Feb 8 18:46:23 2001 UTC (23 years, 4 months ago) by itojun
Branch: MAIN
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored)

witch raw ip6 socket code from NRL to kame.
makes upgrades/code sharing much easier.

Revision 1.1 / (download) - annotate - [select for diffs], Sun Jun 18 17:32:48 2000 UTC (23 years, 11 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8

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

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.