changeset 4147:dba5fa9d56cc draft

Comment out IPoIB broadcast address with a comment.
author Roy Marples <roy@marples.name>
date Wed, 04 Oct 2017 00:11:14 +0100
parents 94da5b69f87c
children 7f3db9498fa8
files src/if-linux.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/if-linux.c	Tue Oct 03 23:51:17 2017 +0100
+++ b/src/if-linux.c	Wed Oct 04 00:11:14 2017 +0100
@@ -103,12 +103,17 @@
 	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"