Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-12-04 | prefix function names like randomid and pmod to keep them out of global | Ted Unangst | |
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. | |||
2015-12-03 | Get rid of rt_mask() and stop allocating a "struct sockaddr" for every | Martin Pieuchot | |
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@ | |||
2015-12-03 | ip_send()/ip6_send() allow PF to send response packet in ipsoftnet task. | Alexandr Nedvedicky | |
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@ | |||
2015-12-03 | add sizes to some free() calls. ok claudio | Ted Unangst | |
2015-12-03 | rewrite if to be more clear. ok bluhm stsp | Ted Unangst | |
2015-12-03 | Implement etherip(4) driver | Kazuya Goda | |
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@ | |||
2015-12-03 | rm unused kernel only IPV6_RECVRTHDRDSTOPTS sockopt. ok deraadt sthen | Ted Unangst | |
2015-12-02 | Move port picking away from in_pcbbind() | Vincent Gross | |
ok sthen@ | |||
2015-12-02 | When destroying an interface, we have to wait until all references | Alexander Bluhm | |
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@ | |||
2015-12-02 | Kill the RT_REPORT flag to rtalloc() and stop sending RTM_MISS messages | Claudio Jeker | |
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@ | |||
2015-12-01 | Use rt_ifa_add(9) instead or rtrequest(9) when adding ND prefixes. | Martin Pieuchot | |
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@ | |||
2015-12-01 | Kill redundant or unused arguments in rtredirect(). | Martin Pieuchot | |
ok bluhm@ | |||
2015-12-01 | Remove backward compatibility for "older version of routed and gated". | Martin Pieuchot | |
ok millert@, bluhm@ | |||
2015-12-01 | Remove "just for safety" over engineering checks. | Martin Pieuchot | |
ifa->ifa_addr must not be NULL when an ifa is on a per-interface list of addresses. ok bluhm@, sthen@, benno@, millert@ | |||
2015-11-29 | Use if_get() rather than dereferencing rt_ifp in ip6_getpmtu(). | Martin Pieuchot | |
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@ | |||
2015-11-24 | No need for <net/if_types.h> | Martin Pieuchot | |
As a bonus this removes a "#if NCARP > 0", say yeah! | |||
2015-11-21 | Use if_get() rather than dereferencing rt_ifp directly. | Martin Pieuchot | |
ok sthen@, visa@, sashan@, florian@ | |||
2015-11-18 | Factorize the bits to check if a L2 route is connected, wether it is | Martin Pieuchot | |
attached to a carp(4) or bridge(4) member, to not dereference rt_ifp directly. ok visa@ | |||
2015-11-13 | Do not cast malloc(9) results. | Martin Pieuchot | |
2015-11-12 | Do not try to guess if there's still an IPv4 multicast routing daemon | Martin Pieuchot | |
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. | |||
2015-11-12 | Unbreak adding a MIFF_REGISTER interface. | Martin Pieuchot | |
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. | |||
2015-11-12 | unidef MRT6DEBUG | Martin Pieuchot | |
2015-11-12 | More PIM love. Reduce differences with ip_mroute.c and dynamically | Martin Pieuchot | |
allocate the register ifp such that if_get() works. | |||
2015-11-12 | Sync headers and get rid of #ifdef MROUTING. | Martin Pieuchot | |
2015-11-12 | Fix PIM build. | Martin Pieuchot | |
2015-11-11 | Store the index of the lo0 interface instead of a pointer to its | Martin Pieuchot | |
descriptor. Allow to get rid of two if_ref() in the output paths. ok dlg@ | |||
2015-11-06 | Change nd6_nud_hint() to no longer manipulate rt_ifp directly. | Martin Pieuchot | |
While here remove unused argument and convert the route check to rtisvalid(9). ok bluhm@ | |||
2015-11-03 | Remove dead assignments. | Charles Longeau | |
Found by LLVM/Clang Static Analyzer. ok bluhm@ mpi@ | |||
2015-11-03 | Disable TCP/UDP TX hardware checksumming if an IPv4 packet contains | Christian Weisgerber | |
IP options or if an IPv6 packet contains header extensions. Required by cnmac(4) and a sensible precautionary measure in general. ok visa@, mikeb@ | |||
2015-11-02 | Retire ARP load-balacing, thanks for all the fish! | Martin Pieuchot | |
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@ | |||
2015-11-02 | typo in comment | Stuart Henderson | |
2015-11-02 | Implement the list of nd6 llinfo entries with a TAILQ. | Alexander Bluhm | |
OK millert@ mpi@ | |||
2015-11-02 | Prefer an existing refcounted ``ifp'' to rt_ifp when possible or use the | Martin Pieuchot | |
interface index directly. ok bluhm@ | |||
2015-11-02 | Stop using rt_ifp. | Martin Pieuchot | |
ok bluhm@ | |||
2015-11-01 | Replace the nd6 llinfo malloc(9) with pool_get(9) like arp does. | Alexander Bluhm | |
OK mpi@ | |||
2015-11-01 | Compare nd6 llinfo pointer with NULL. No binary change. | Alexander Bluhm | |
OK mpi@ | |||
2015-10-30 | Rename rtrequest1() to rtrequest(). | Alexander Bluhm | |
OK mpi@ | |||
2015-10-29 | a few redundant tests can be deleted now that switch cases are only for | Ted Unangst | |
a single value | |||
2015-10-29 | oops, one firebomb went off course. put back some code that's still used. | Ted Unangst | |
2015-10-29 | RFC 2292 API support was removed 9 years ago, but left in a binary compat | Ted Unangst | |
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!) | |||
2015-10-29 | Kill a comment saying that rt_ifp may not be the same as ifp, that's no | Martin Pieuchot | |
longer true. | |||
2015-10-28 | Add a missing splx for a return path introduced in rev 1.163 | Jonathan Gray | |
ok mpi@ bluhm@ | |||
2015-10-28 | Remove linkmtu and maxmtu from struct nd_ifinfo. IN6_LINKMTU can now | Florian Obser | |
die and ifp->if_mtu is the one true mtu. Suggested by and OK mpi@ | |||
2015-10-27 | Use rt_ifidx rather than rt_ifp. | Martin Pieuchot | |
ok bluhm@ | |||
2015-10-25 | Put some comments in how nd6_rs_attach() works. | Florian Obser | |
Requested by stsp | |||
2015-10-25 | do not expose nd6 randomid's to userland via ioctl. | Theo de Raadt | |
ok claudio mpi florian | |||
2015-10-25 | Trivial rt_ifp->if_index -> rt_ifidx conversions. | Martin Pieuchot | |
2015-10-25 | Remove IPV6_NEXTHOP implementation. Source routing is considered to be | Florian Obser | |
a bad idea these days. kill it mpi@ general agreement in the network hackers room at u2k15 | |||
2015-10-25 | Use the "modern" way to check if a route entry correspond to a local | Martin Pieuchot | |
address. Fix a regression introduced when removing the lo0 hack. ok florian@ | |||
2015-10-25 | Introduce if_rtrequest() the successor of ifa_rtrequest(). | Martin Pieuchot | |
L2 resolution depends on the protocol (encoded in the route entry) and an ``ifp''. Not having to care about an ``ifa'' makes our life easier in our MP effort. Fewer dependencies between data structures implies fewer headaches. Discussed with bluhm@, ok claudio@ |