summaryrefslogtreecommitdiff
path: root/sys/net
AgeCommit message (Collapse)Author
2016-03-09remove __vax__Theo de Raadt
2016-03-09rework how mpw(4) interacts with vlan(4)David Gwynne
previously mpw would walk around our interface hierarchy so it could reinject vlan tags for packets that were received on a stack of vlan interfaces. this got in the way of making vlan mpsafe, but is also unecessary according to how i read RFC 4448 which describes how mpls pseudowires should function. the behaviour is now: - in raw mode mpw(4) acts like a normal ethernet interface it no longer injects a tag from a vlan interface that may be on the same bridge as it, and it allows you to configure ip addresses on the local interface and use them without panicking the kernel. - in tagged mode it will only add tags from vlan interfaces on the same bridge as it, but not any parent/child tags from interfaces on top of that vlan. if the packet did not come from a vlan interface on a bridge it will inject a tag for vlan 0. this will also allow vlan to move forward. ok mpi@ rzalamena@ claudio@
2016-03-08- bridge_localbroadcast() must call pf_pkt_addr_changed()Alexandr Nedvedicky
(makes KASSERT() in pf_test() to go away) Thanks to Mark and Mattieu for quick testing OK mpi@
2016-03-07http -> https for IETF/IANA URLs in commentsmmcc
2016-03-07Sync no-argument function declaration and definition by adding (void).Christian Weisgerber
ok mpi@ millert@
2016-03-04- putting back KASSERT(), which I've backed out on Jan 31Alexandr Nedvedicky
We don't expect inbound packets to come to PF with statekey attached. - I've also found missing call to pf_pkt_addr_changed() at various places, which needs to get fixed to prevent KASSERT() from firing. OK mpi@, sthen@
2016-03-03prototype vlan_inject()David Gwynne
this should have been committed as part of src/sys/net/if_vlan.c r1.152 tree breakage discovered by benoit lecocq sorry
2016-03-03factor out the injection of a vlan shim into an ethernet frameDavid Gwynne
vlan_inject() will be reused by mpw(4) in the future. ok mpi@
2016-03-02provide generic ioctls for managing an interfaces parentDavid Gwynne
in the future this will subsume the individual vlandev, carpdev, pppoedev, foodev options for things like vlan, carp, pppoe, etc. inspired by vnetid ok mpi@ jmatthew@
2016-03-01Set IFF_MULTICAST flag on tun(4) interfaces so IPv6 addresses can be assigned.Stefan Sperling
ok millert@ mpi@
2016-03-01enm_ac in ether_multi is set but never used. so we dont need it.David Gwynne
2016-02-28Support for running Linux binaries under emulation is going away.Christian Weisgerber
Remove "option COMPAT_LINUX" and everything directly tied to it from the kernel and the corresponding man page documentation. ok visa@ guenther@
2016-02-26L2 entries are always in the first table of a routing domain, this fixesTheo de Raadt
a regression introduced during 5.7 and 5.8 as reported by Jean-Daniel Dupas on misc@ diff provided by mpi, ok claudio
2016-02-24Fix ECMP routing by passing the correct destination address to theMartin Pieuchot
hash routine. Bug reported and fix analysed by Jean-Daniel Dupas <jddupas AT xooloo DOT net> ok deraadt@
2016-02-12Convert to uiomove. From Martin Natano.Stefan Kempf
2016-02-10protect the bpf ring with splnet as well as the kernel lock.David Gwynne
kernel lock protects it against other cpus, but splnet prevents bpf code running at splsoftnet (eg, like bridge does) from having the rings trampled by a hardware interrupt on the same cpu. ok mpi@ jmatthew@
2016-02-05return if the bpf_if passed to bpf_tap and _bpf_mtap are NULL.David Gwynne
this works around a toctou bug in a very common idiom in our tree, in between the two lines below: if (ifp->if_bpf) bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_OUT); figured out by and diff from haesbart
2016-01-31Convert to ulmin and uiomove to prevent integer truncations.Stefan Kempf
Reviewed by Martin Natano.
2016-01-31- m_pkthdr.pf.statekey changes are not ready for 5.9, I must back them outAlexandr Nedvedicky
OK sthen@
2016-01-27white space tweaks. no functional change.David Gwynne
2016-01-26- state keys imported by if_pfsync trip refcnt != ~0 AssertAlexandr Nedvedicky
OK mpi@
2016-01-25- plugging massive pf_state_key leakAlexandr Nedvedicky
OK mpi@ dlg@ sthen@
2016-01-25Convert to uiomove(). Diff from Martin Natano.Stefan Kempf
2016-01-25don't return an uninitialised value for the SIOCGLIFPHYRTABLE caseJonathan Gray
ok yasuoka@ goda@
2016-01-22Always check destination MAC address of received unicast packets, notStefan Fritsch
only when in promiscuous mode This necessary for NICs like virtio, where the unicast MAC filter is 'best effort' only. ok dlg@ encouragement from mpi@
2016-01-22Drop packets whose VNI flag is not set and VNI is not zeroKazuya Goda
ok reyk@ yasuoka@
2016-01-22Support tunnel VRF on etherip(4)Kazuya Goda
ok dlg@ yasuoka@
2016-01-20dlg@ took a pity on me and let me stay sane a bit longer by givingMike Belopuhov
me a chance to kill these glowing red trailing whitespace characters.
2016-01-18Pass the address length to art_alloc() and remove the hack abusing theMartin Pieuchot
offset of the address in the sockaddr to initialize the stride lengths.
2016-01-18Stop storing a backpointer to the corresponding ART node in each routeMartin Pieuchot
entry. This pointer hasn't been used for some time and without it no external reference count is needed to turn art_lookup() mpsafe.
2016-01-15rs_malloc() does not need to be castmmcc
2016-01-14Increase buffer sizes and watermarks for tty and pppStefan Fritsch
Use 115200 the default speed for buffer sizing in ttymalloc(). A lot of devices call ttymalloc(0) so this affects quite a few of them. Increases the buffer size for 9600 < baud <= 115200 from 1k to 4k. Make ppp use the lo/hi watermarks from the tty layer which are adjusted according to speed + buffer size. The previous fixed values of 100 and 400 were way too small Make pty call ttymalloc() with baud == 1000000, which is the common value used in the tree for "fast". ok deraadt@
2016-01-14No need for a splnet() dance around IFQ_DEQUEUE() anymore.Martin Pieuchot
From David Hill, ok dlg@
2016-01-13dont propagate any of the parent interfaces offload features on svlanDavid Gwynne
this avoids confusion about checksum offload if you configure ips on svlan interfaces on top of interfaces that do offload, like bge or em. the problem was reported by and this fix was tested by denis fondras analyzed by naddy@ thanks guys
2016-01-12Remove wireless turbo mode support. It is a non-standard extensionStefan Sperling
which only worked with ath(4) devices from a decade ago. Diff tested on ath(4) hardware by me to verify that 11a/b modes still work. ok reyk deraadt chris sthen kettenis
2016-01-12Compare if the prefix lengths are equal rather than checking if theMartin Pieuchot
netmasks are non-NULL for RTM_CHANGE and RTM_LOCK. Fix route(8) regressions tests 14 and 16 with ART kernels. These tests were failing because with ART, RTF_HOST routes always have a mask. ok claudio@, bluhm@
2016-01-08Get rid of the arp and revarp input queues.Martin Pieuchot
Packets of types ARP and REVARP are now processed in the softnet task, directly from ether_input() and without holding the KERNEL_LOCK. Tested by many, ok dlg@
2016-01-07- retrying to commit earlier change, which got backed outAlexandr Nedvedicky
- yet another tiny step towards MP PF. This time we need to make sure statekey attached to packet stays around, while accepted packet is routed through IP stack. this time I'm also bringing fix contributed by Stefan Kempf. Stefan's fix makes sure we grab reference in m_dup_pkthdr() OK bluhm@
2016-01-07Make open(O_NONBLOCK) of tun, tap, and bpf behave like open+ioctl(FIONBIO)Philip Guenther
problem noted by yasuoka@ ok yasuoka@ millert@
2015-12-31Move tr_port_destroy down; fixes 'lacp_compose_key protection fault trap'Stuart Henderson
when removing a port from a lacp trunk. Part of a larger diff from mpi, as suggested by mikeb. ok mpi@
2015-12-29store curcpu() in ifq_serializer so we can check it.David Gwynne
this in turn gives us ifq_is_serialized() and an IFQ_ASSERT_SERIALIZED() macro. ok mpi@
2015-12-23revert previous:Jasper Lievisse Adriaanse
---------------------------------------------------------------------- revision 1.961 date: 2015/12/22 13:33:26; author: sashan; state: Exp; lines: +153 -44; commitid: oBRhtWcDV0ThviVT; - yet another tiny step towards MP PF. This time we need to make sure statekey attached to packet stays around, while accepted packet is routed through IP stack. OK mpi@, henning@ ---------------------------------------------------------------------- there have been multiple reports of KASSERT(!pf_state_key_isvalid(sk)) being triggered without much effort, so back this out for now.
2015-12-22- yet another tiny step towards MP PF. This time we need to make sureAlexandr Nedvedicky
statekey attached to packet stays around, while accepted packet is routed through IP stack. OK mpi@, henning@
2015-12-21Move ppp, nmea, endrun, and msts prototypes to tty.hStefan Fritsch
Fix inconsistent arguments for pppopen/pppclose/pppstart. Use passed in argument p in pppopen instead of curproc. "Looks good to me" deraadt@
2015-12-21Pass the destination and mask to rtable_mpath_reprio() in order to notMartin Pieuchot
use ``rt_node'' with ART.
2015-12-18Remove leftover prototype.Visa Hankala
ok mpi@
2015-12-16Merge rtable_mpath_select() into rtable_match().Martin Pieuchot
This allow us to get rid of one more "rt_node" usage with ART. ok jmatthew@
2015-12-15Do not panic when trying to delete an non-existing route with ART.Martin Pieuchot
Reported by bluhm@, ok jmatthew@
2015-12-11Do not pass a NULL ifp pointer to rtdeletemsg().Martin Pieuchot
ok visa@
2015-12-10write down some stuff before it falls out of my head.David Gwynne