Age | Commit message (Collapse) | Author |
|
allows to simplify code used for both IPv4 and IPv6.
OK mikeb@ deraadt@
|
|
ok deraadt@
|
|
zero the buffers first. All the current objects appear to be safe,
however future changes might introduce structure pads.
Discussed with guenther, ok bluhm
|
|
We should not change the state of a cache entry at this point since
the default router selection logic looks at it. Instead, invalidate
the cache just before deleting the corresponding route entry, if it
applies.
Fixes a regression reported by semarie@
ok bluhm@
|
|
pltime conversion was missing from rev 1.193 which did the vltime
conversion only.
OK mpi
|
|
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
|
|
This way RTF_CACHED entries are properly flushed. Fix a regression
reported by weerd@ and also tested by matthieu@.
ok bluhm@
|
|
need netlock. Remove the obsolete splnet.
OK mpi@
|
|
ok bluhm@
|
|
them all in net/rtsock.c.
This allows to easily spot which functions are doing a copyout(9)
when dealing with the routing midlayer.
ok phessler@, bluhm@, dhill@, krw@, claudio@
|
|
fixed parameters.
OK mpi@ claudio@ dhill@
|
|
OK mpi@
|
|
list of IPv6 addresses.
ok bluhm@
|
|
addresses in nd6_timer().
ok bluhm@
|
|
ok bluhm@
|
|
ok dhill@, florian@, bluhm@
|
|
forwarding path.
Rename ip6_ours() in ip6_local() as this function dispatches packets
to the upper layer.
Introduce ip6_ours() and get rid of 'goto hbhcheck'. This function
will be later used to enqueue local packets.
As a bonus this reduces differences with IPv4.
Inputs and ok bluhm@
|
|
This makes it easier to grep for a member, such as .pr_usrreq, and know
which functions to review.
ok mpi@ bluhm@ jca@
|
|
OK millert@ florian@
|
|
*ctloutput functions. This also reduces a level of indentation.
ok mpi@
|
|
This is most likely to be the cause of the deadlock seen by port builders
since it's the only changed that happened after a2k17.
Instead bring back pirofti@ original hack to release the NET_LOCK() inside
iwm(4) and iwn(4).
This fixes some splassert reported by bluhm@
Deadlock reported by naddy@ and rpe@ and ajacoutot@ confirmed the deadlock
has been introduced post a2k17.
Tested by and ok tb@
|
|
ok bluhm@
|
|
ok dlg@
|
|
ok mpi@
|
|
ok mpi@ bluhm@
|
|
it in ipsec_common_input_cb() instead. The code that was copied
to ah6_input_cb() is now in ip6_ours() so we can call it directly.
OK mpi@
|
|
This prevents a deadlock with the X server and some wireless drivers.
The real fix is to take unix domain socket code out of the NET_LOCK().
Issue reported by pirofti@ and ajacoutot@
ok tb@, stsp@, pirofti@
|
|
OK mpi@
|
|
This makes the API simpler, and is probably more useful than spreading
counters memory other several types, making it harder to track.
Prodded by mpi, ok mpi@ stsp@
|
|
Try to follow the existing examples. Some notes:
- don't implement counters_dec() yet, which could be used in two
similar chunks of code. Let's see if there are more users first.
- stop incrementing IPv6-specific mbuf stats, IPv4 has no equivalent.
Input from mpi@, ok bluhm@ mpi@
|
|
the netlock held. This also changes the prototypes of the *ctloutput
functions to take an mbuf instead of an mbuf pointer.
help, guidance from bluhm@ and mpi@
ok bluhm@
|
|
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@
|
|
canwait as it is unneeded.
ok mpi@
|
|
IPv4 pr_ctlinput functions did return a void pointer that was always
NULL and never used. Make all functions void like in the IPv6 case.
OK mpi@
|
|
removed in 2004. The comment about raw_input() above rip_input()
was added in 1981, but it is wrong since 1992. After that it has
been copied to rip6_input(). (*pr_input)() is never called with
the parameters (mbuf, sockproto, sockaddr, sockaddr).
So retire raw_input().
OK guenther@ deraadt@
|
|
generating atomic fragments. So remove the code that sends them.
CVE-2016-10142 has been assigned to that issue.
OK visa@ mpi@
|
|
No functional change.
|
|
of rtalloc(9).
ok benno@, lteo@
|
|
ok bluhm@, kettenis@
|
|
ok rzalamena@, visa@
|
|
send if the mbuf contains the complete IPv6 header. The old check
was wrong, it required one additional octet after the header. So
the source address selection was depending on the layout of the
mbuf chain.
OK mpi@
|
|
ok visa@
|
|
only once during init.
OK mpi@
|
|
|
|
whem timeout_set_proc(9) is what we need.
Found the hardway by and ok visa@, ok mikeb@, bluhm@
|
|
NET_LOCK().
ok bluhm@
|
|
ok mpi@
|
|
|
|
ok bluhm@
|
|
ok bluhm@
|