changeset 5489:a3d5af47a4e3 draft

Add a comment to prior incase I do something dumb like removing it in the future if I forgot why it was there.
author Roy Marples <roy@marples.name>
date Tue, 29 Sep 2020 08:00:24 +0100
parents 1712c2fd62a4
children df4ea0197ce8
files src/dhcp.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/dhcp.c	Tue Sep 29 07:30:27 2020 +0100
+++ b/src/dhcp.c	Tue Sep 29 08:00:24 2020 +0100
@@ -3477,6 +3477,13 @@
 #ifdef PRIVSEP
 	const struct dhcp_state *state = D_CSTATE(ifp);
 
+	/* It's possible that an interface departs and arrives in short
+	 * order to receive a BPF frame out of order.
+	 * There is a similar check in ARP, but much lower down the stack.
+	 * It's not needed for other inet protocols because we send the
+	 * message as a whole and select the interface off that and then
+	 * check state. BPF on the other hand is very interface
+	 * specific and we do need this check. */
 	if (state == NULL)
 		return;