Internet definitions. More...
#include <sys/types.h>

Go to the source code of this file.
Defines | |
| #define | _NETINET_IN_H_ | 
| #define | IPPROTO_IP 0 | 
| Dummy for IP.   | |
| #define | IPPROTO_ICMP 1 | 
| Control message protocol.   | |
| #define | IPPROTO_IGMP 2 | 
| Group management protocol.   | |
| #define | IPPROTO_TCP 6 | 
| Transmission control protocol.   | |
| #define | IPPROTO_UDP 17 | 
| User datagram protocol.   | |
| #define | IPPROTO_RAW 255 | 
| Raw IP packet.   | |
| #define | IPPROTO_MAX 256 | 
| Maximum protocol identifier.   | |
| #define | IPPORT_RESERVED 1024 | 
| Last reserved port number.   | |
| #define | IPPORT_USERRESERVED 5000 | 
| User reserved port number.   | |
| #define | INADDR_ANY (uint32_t)0x00000000 | 
| Any IP address.   | |
| #define | INADDR_BROADCAST (uint32_t)0xffffffff | 
| Broadcast IP address.   | |
| #define | IN_CLASSA(i) (((uint32_t)(i) & 0x00000080) == 0) | 
| #define | IN_CLASSA_NET 0x000000ff | 
| #define | IN_CLASSB(i) (((uint32_t)(i) & 0x000000c0) == 0x00000080) | 
| #define | IN_CLASSB_NET 0x0000ffff | 
| #define | IN_CLASSC(i) (((uint32_t)(i) & 0x000000e0) == 0x000000c0) | 
| #define | IN_CLASSC_NET 0x00ffffff | 
| #define | IN_CLASSD(i) (((uint32_t)(i) & 0x000000f0) == 0x000000e0) | 
| #define | IN_CLASSD_NET 0x0000000f | 
| #define | IN_MULTICAST(i) IN_CLASSD(i) | 
| #define | INADDR_UNSPEC_GROUP (uint32_t)0x000000e0 | 
| #define | INADDR_ALLHOSTS_GROUP (uint32_t)0x010000e0 | 
| #define | INADDR_ALLRTRS_GROUP (uint32_t)0x020000e0 | 
| #define | INADDR_ALLRPTS_GROUP (uint32_t)0x160000e0 | 
| #define | INADDR_CARP_GROUP (uint32_t)0x120000e0 | 
| #define | INADDR_PFSYNC_GROUP (uint32_t)0xf00000e0 | 
| #define | INADDR_ALLMDNS_GROUP (uint32_t)0xfb0000e0 | 
| #define | INADDR_MAX_LOCAL_GROUP (uint32_t)0xff0000e0 | 
| #define | INADDR_LOOPBACK (uint32_t)0x0100007f | 
| #define | IN_LOOPBACKNET 127 | 
| Official loopback net address.   | |
Internet definitions.
Constants and structures defined by the internet system.
Definition in file in.h.
| #define IPPROTO_ICMP 1 | 
Control message protocol.
Definition at line 130 of file in.h.
Referenced by NutIcmpOutput(), and NutIpInput().
| #define IPPROTO_IGMP 2 | 
Group management protocol.
Definition at line 131 of file in.h.
Referenced by NutIgmpOutput(), NutIpInput(), and NutIpOutput().
| #define IPPROTO_TCP 6 | 
Transmission control protocol.
Definition at line 132 of file in.h.
Referenced by NutTcpCreateSocket(), NutTcpOutput(), NutTcpReject(), and NutTcpStateRetranTimeout().
| #define IPPROTO_UDP 17 | 
User datagram protocol.
Definition at line 133 of file in.h.
Referenced by NutUdpCreateSocket(), and NutUdpOutput().
| #define INADDR_BROADCAST (uint32_t)0xffffffff | 
Broadcast IP address.
Definition at line 150 of file in.h.
Referenced by DiscoveryResponder(), NutDhcpClient(), and NutIpInput().
| #define IN_CLASSB | ( | i | ) | (((uint32_t)(i) & 0x000000c0) == 0x00000080) | 
| #define IN_CLASSC | ( | i | ) | (((uint32_t)(i) & 0x000000e0) == 0x000000c0) | 
| #define IN_CLASSD | ( | i | ) | (((uint32_t)(i) & 0x000000f0) == 0x000000e0) | 
| #define IN_MULTICAST | ( | i | ) | IN_CLASSD(i) | 
Definition at line 175 of file in.h.
Referenced by NutIpInput().
| #define INADDR_ALLHOSTS_GROUP (uint32_t)0x010000e0 | 
Definition at line 188 of file in.h.
Referenced by main(), NutIgmpInput(), NutNetIfAddMcastAddr(), and NutNetIfDelMcastAddr().