summaryrefslogtreecommitdiff
path: root/sys/net/if_vxlan.c
AgeCommit message (Collapse)Author
2014-04-21ip_output() using varargs always struck me as bizarre, esp since it's onlyHenning Brauer
ever used to pass on uint32 (for ipsec). stop that madness and just pass the uint32, 0 in all cases but the two that pass the ipsec flowinfo. ok deraadt reyk guenther
2014-04-14"struct pkthdr" holds a routing table ID, not a routing domain one.Martin Pieuchot
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@
2014-04-11Interfaces are associated to rdomains, make it clear by renamingMartin Pieuchot
`sc_rtableid' into `sc_rdomain'. No functional change. ok reyk@
2013-10-22whitespaceReyk Floeter
2013-10-19Improve the address and linkstate hooks and add an additional detachReyk Floeter
hook to track any changes of the parent multicast interface.
2013-10-19Uniformize drivers doing nothing with their multicast filters to makeMartin Pieuchot
them ignore the SIOC{ADD,DEL}MULTI ioctls. ok reyk@, claudio@
2013-10-19In an ideal world, we would use splsoftnet() for all the interfaceReyk Floeter
configuration steps. But vxlan(4) has to configure the link state and address hooks of a parent interface that potentially need splnet(). So revert everything back to use splnet() for now. Discussed with mpi@
2013-10-19When a multicast tunnel destination is configured, we have to detect addressReyk Floeter
and link state changes on the interface that is sending out the tunnel traffic. Attach a link state and address hook in this case and reset the multicast configuration. This also fixes a problem on VMware that looses the multicast associations when the virtual link state of the NIC is triggered.
2013-10-15Remove the multicast filter from the ``real'' interface when destroyingMartin Pieuchot
a vxlan(4) interface and convert some splnet() to splsoftnet() when appropriate. ok reyk@
2013-10-14Make use of satosin() when applicable plus a couple of style nits.Martin Pieuchot
ok reyk@
2013-10-13whitespaceReyk Floeter
2013-10-13Set the default MTU to full 1500 bytes. We do not want to encourageReyk Floeter
running vxlan(4) with a lowered MTU of just 1450 bytes instead of bumping the MTU of the transport interfaces to at least 1550 or preferrably 1600 bytes.
2013-10-13Import vxlan(4), the virtual extensible local area network tunnelReyk Floeter
interface. VXLAN is a UDP-based tunnelling protocol for overlaying virtualized layer 2 networks over layer 3 networks. The implementation is based on draft-mahalingam-dutt-dcops-vxlan-04 and has been tested with other implementations in the wild. put it in deraadt@