diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2017-11-28 08:48:12 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-12-01 12:33:33 +0100 |
commit | ba61b249609d28a2a3e750b3602d1ba2a8d8b140 (patch) | |
tree | 373108ecc790816e1607cdcae7da471f58d99de0 /include/net.h | |
parent | 42ee615ff03a0631c5c742c2f739dca4f77ac6d1 (diff) | |
download | barebox-ba61b249609d28a2a3e750b3602d1ba2a8d8b140.tar.gz barebox-ba61b249609d28a2a3e750b3602d1ba2a8d8b140.tar.xz |
net: Add and use IP_BROADCAST
Rather than using the hardcoded value 0xffffffff in several places
add a define for the broadcast IP.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/net.h')
-rw-r--r-- | include/net.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net.h b/include/net.h index 632b6d5410..4649947916 100644 --- a/include/net.h +++ b/include/net.h @@ -114,6 +114,8 @@ struct ethernet { #define IPPROTO_ICMP 1 /* Internet Control Message Protocol */ #define IPPROTO_UDP 17 /* User Datagram Protocol */ +#define IP_BROADCAST 0xffffffff /* Broadcast IP aka 255.255.255.255 */ + /* * Internet Protocol (IP) header. */ |