core: Drop packets with broadcast source EID

That has no valid use case, so should be disallowed to avoid unforeseen
problems.

Change-Id: I514e5d910fb3b92606aae86aee282a97e6166a15
Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
diff --git a/core.c b/core.c
index 8a0dc13..7b84d5a 100644
--- a/core.c
+++ b/core.c
@@ -568,6 +568,11 @@
 
 	hdr = mctp_pktbuf_hdr(pkt);
 
+	if (hdr->src == MCTP_EID_BROADCAST) {
+		/* drop packets with broadcast EID src */
+		goto out;
+	}
+
 	/* small optimisation: don't bother reassembly if we're going to
 	 * drop the packet in mctp_rx anyway */
 	if (mctp->route_policy == ROUTE_ENDPOINT &&