[OpenPower-Firmware] [PATCH 1/7] udhcpc: Add IB broadcast addr
Daniel M. Weeks
weeksd2 at rpi.edu
Fri Apr 17 06:18:42 AEST 2020
Signed-off-by: Daniel M. Weeks <weeksd2 at rpi.edu>
---
networking/udhcp/common.c | 8 ++++++++
networking/udhcp/common.h | 1 +
2 files changed, 9 insertions(+)
diff --git a/networking/udhcp/common.c b/networking/udhcp/common.c
index 52ef875f0..dddd95b71 100644
--- a/networking/udhcp/common.c
+++ b/networking/udhcp/common.c
@@ -14,6 +14,14 @@ const uint8_t MAC_BCAST_ADDR[6] ALIGN2 = {
0xff, 0xff, 0xff, 0xff, 0xff, 0xff
};
+const uint8_t IB_BCAST_ADDR[20] ALIGN2 = {
+ 0x00, 0xff, 0xff, 0xff,
+ 0xff, 0x12, 0x40, 0x1b,
+ 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00,
+ 0xff, 0xff, 0xff, 0xff
+};
+
#if ENABLE_UDHCPC || ENABLE_UDHCPD
/* Supported options are easily added here.
* See RFC2132 for more options.
diff --git a/networking/udhcp/common.h b/networking/udhcp/common.h
index 50ea9199b..72bdaff7b 100644
--- a/networking/udhcp/common.h
+++ b/networking/udhcp/common.h
@@ -16,6 +16,7 @@
PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
extern const uint8_t MAC_BCAST_ADDR[6] ALIGN2; /* six all-ones */
+extern const uint8_t IB_BCAST_ADDR[20] ALIGN2;
/*** DHCP packet ***/
--
Daniel M. Weeks
--
Daniel M. Weeks
Lead HPC Developer
Center for Computational Innovations
Rensselaer Polytechnic Institute
Troy, NY 12180
518-276-4458
More information about the OpenPower-Firmware
mailing list