Age | Commit message (Collapse) | Author |
|
|
|
Reported by sebastisa@.
ok sebasitia@, stsp@, florian@, vgross@
|
|
regression observed on avahi.
ok benno@
|
|
Ensure that arc4random_uniform() doesn't loop by redefining
ND6_MAX_DESYNC_FACTOR to be 512, the largest power of two smaller
than the RFC-specified 600 seconds. Suggested by florian@ and deraadt@
ok florian@, sthen@ in this form, arc4random change ok djm@, tedu@
|
|
|
|
This will allows for stricter checks inside rtdeletemsg() and it should be
up to the caller to decide if the route needs to be deleted or not.
ok vgross@
|
|
actually the same. This has been introduced in r1.7 to prevent RTM_MISS
storms, but we don't send this message anymore.
ok @mpi
|
|
namespace. the history of this file is that it was a modified version of
ip_id.c (with static functions to avoid clashes), then that file was
rewritten, then this file lost static.
|
|
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@
|
|
this avoids current recursion to pf_test() function. the change also
switches icmp_error()/icmp6_error() to use ip_send()/ip6_send() so
they are safe for PF.
The idea comes from Markus Friedl. bluhm, mikeb and mpi helped me
a lot to get it into shape.
OK bluhm@, mpi@
|
|
|
|
|
|
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@
|
|
|
|
ok sthen@
|
|
are not used anymore. This has to be done before any interface
fields become invalid.
As the route delete request cannot call if_get() anymore, pass down
the interface. Split rtrequest_delete() into a separate function
that may take an existing inteface.
OK mpi@
|
|
for failed route lookups. This is something that was maybe useful in the
90is but in this modern times it is just annoying and nothing expect it
anyway. OK mpi@, sthen@
|
|
While here pick the corresponding ``ifa'' to attach the route instead
of the one corresponding to the link-local address on the same interface.
ok bluhm@
|
|
ok bluhm@
|
|
ok millert@, bluhm@
|
|
ifa->ifa_addr must not be NULL when an ifa is on a per-interface list of
addresses.
ok bluhm@, sthen@, benno@, millert@
|
|
While here fix a NULL dereference introduced by the support for
multiple rdomains. It seems that this code path is never run...
With input from David Hill, ok florian@
|
|
As a bonus this removes a "#if NCARP > 0", say yeah!
|
|
ok sthen@, visa@, sashan@, florian@
|
|
attached to a carp(4) or bridge(4) member, to not dereference rt_ifp
directly.
ok visa@
|
|
|
|
using an interface based on the value of ``ip_mrouter''.
Calling SIOCDELMULTI on an interface is correct even if such daemon is
running because the Ethernet layer refcounts currently joined multicast
groups.
|
|
Such interface is created on the fly so if_get() could return NULL because
mif6c_pifi doesn't mean what you think in this case.
|
|
|
|
allocate the register ifp such that if_get() works.
|
|
|
|
|
|
descriptor.
Allow to get rid of two if_ref() in the output paths.
ok dlg@
|
|
While here remove unused argument and convert the route check to
rtisvalid(9).
ok bluhm@
|
|
Found by LLVM/Clang Static Analyzer.
ok bluhm@ mpi@
|
|
IP options or if an IPv6 packet contains header extensions.
Required by cnmac(4) and a sensible precautionary measure in general.
ok visa@, mikeb@
|
|
One of the keys of our MP work relies on making OpenBSD's kernel simpler!
In this case turning ARP processing MP-safe is quite complicated due to
the way carp(4) is hooked in arpinput() and nowadays you'd better run
kitchensinkd(9) anyway :)
ok bluhm@, claudio@, reyk@
|
|
|
|
OK millert@ mpi@
|
|
interface index directly.
ok bluhm@
|
|
ok bluhm@
|
|
OK mpi@
|
|
OK mpi@
|
|
OK mpi@
|
|
a single value
|
|
|
|
ABI form for the sake of existing programs. no programs from that era have
been able to run for quite some time. Kill it all.
ok deraadt florian millert mpi
(I believe this is my first IPv6 diff. Future, here I come!)
|
|
longer true.
|
|
ok mpi@ bluhm@
|
|
die and ifp->if_mtu is the one true mtu.
Suggested by and OK mpi@
|