CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]        2019/05/05 15:33:00

Modified files:
        usr.sbin/switchd: ofp10.c ofp13.c packet.c switchd.h 

Log message:
switchd(8) will sometimes not save a copy of a packet needing forwarding
even when a switch(4) instance requires it to supply it. Cases where this
can happen are: if the copy of the packet recieved from the switch is too
short (source/destination pairs can't be recovered), is non-unicast, or
when switchd has to fall back to flooding traffic.

Factor out the check for short packets, stopping before forwarding
decisions are made if the full packet is needed by the switch. Set the
packet buffer early for cases where it is needed otherwise.

Also replace a few bzero's with memset's.

Diff based on one by guenther@
OK phessler@

Reply via email to