it responds to these messages with an invalid PACKET_OUT onto OFP*_PORT_ANY,
resulting in the switch responding with an error, causing switchd to
disconnect the switch.
OK phessler@ claudio@
-/* $OpenBSD: ofp10.c,v 1.19 2016/12/02 14:39:46 rzalamena Exp $ */
+/* $OpenBSD: ofp10.c,v 1.20 2018/09/09 14:21:32 akoshibe Exp $ */
/*
* Copyright (c) 2013-2016 Reyk Floeter <reyk@openbsd.org>
* silently drop looping packet
* (don't use OFP10_PORT_INPUT here)
*/
- dstport = OFP10_PORT_ANY;
+ ret = 0;
+ goto done;
} else {
addflow = 1;
}
-/* $OpenBSD: ofp13.c,v 1.43 2017/01/17 09:21:50 rzalamena Exp $ */
+/* $OpenBSD: ofp13.c,v 1.44 2018/09/09 14:21:32 akoshibe Exp $ */
/*
* Copyright (c) 2013-2016 Reyk Floeter <reyk@openbsd.org>
* silently drop looping packet
* (don't use OFP_PORT_INPUT here)
*/
- dstport = OFP_PORT_ANY;
+ ret = 0;
+ goto done;
} else {
addflow = 1;
}