diff options
author | Michael Brown | 2005-03-08 19:53:11 +0100 |
---|---|---|
committer | Michael Brown | 2005-03-08 19:53:11 +0100 |
commit | 3d6123e69ab879c72ff489afc5bf93ef0b7a94ce (patch) | |
tree | 9f3277569153a550fa8d81ebd61bd88f266eb8da /src/include/in.h | |
download | ipxe-3d6123e69ab879c72ff489afc5bf93ef0b7a94ce.tar.gz ipxe-3d6123e69ab879c72ff489afc5bf93ef0b7a94ce.tar.xz ipxe-3d6123e69ab879c72ff489afc5bf93ef0b7a94ce.zip |
Initial revision
Diffstat (limited to 'src/include/in.h')
-rw-r--r-- | src/include/in.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/include/in.h b/src/include/in.h new file mode 100644 index 00000000..7fb207da --- /dev/null +++ b/src/include/in.h @@ -0,0 +1,21 @@ +#ifndef _IN_H +#define _IN_H + +#include <if_ether.h> +#define IP ETH_P_IP +#define ARP ETH_P_ARP +#define RARP ETH_P_RARP + +#define IP_ICMP 1 +#define IP_IGMP 2 +#define IP_TCP 6 +#define IP_UDP 17 + +/* Same after going through htonl */ +#define IP_BROADCAST 0xFFFFFFFF + +typedef struct { + uint32_t s_addr; +} in_addr; + +#endif /* _IN_H */ |