]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Comment out IPoIB broadcast address with a comment.
authorRoy Marples <roy@marples.name>
Tue, 3 Oct 2017 23:11:14 +0000 (00:11 +0100)
committerRoy Marples <roy@marples.name>
Tue, 3 Oct 2017 23:11:14 +0000 (00:11 +0100)
src/if-linux.c

index 1a5a78e8071ee212e5d911a967bbd542e002f8b6..9f030cef2c9ac05ab6b896b4c300ef3d5eb4717e 100644 (file)
@@ -103,12 +103,17 @@ struct priv {
        struct iovec sndrcv_iov[1];
 };
 
+/* We need this to send a broadcast for InfiniBand.
+ * Our old code used sendto, but our new code writes to a raw BPF socket.
+ * What header structure does IPoIB use? */
+#if 0
 /* Broadcast address for IPoIB */
 static const uint8_t ipv4_bcast_addr[] = {
        0x00, 0xff, 0xff, 0xff,
        0xff, 0x12, 0x40, 0x1b, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff
 };
+#endif
 
 #define PROC_INET6     "/proc/net/if_inet6"
 #define PROC_PROMOTE   "/proc/sys/net/ipv4/conf/%s/promote_secondaries"