From ba61b249609d28a2a3e750b3602d1ba2a8d8b140 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Tue, 28 Nov 2017 08:48:12 +0100 Subject: 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 --- include/net.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/net.h') 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. */ -- cgit v1.2.3