Nut/OS  4.10.3
API Reference
in.h File Reference

Internet definitions. More...

#include <sys/types.h>
Include dependency graph for in.h:
This graph shows which files directly or indirectly include this file:

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.

Detailed Description

Internet definitions.

Constants and structures defined by the internet system.

Definition in file in.h.


Define Documentation

#define _NETINET_IN_H_

Definition at line 117 of file in.h.

#define IPPROTO_IP   0

Dummy for IP.

Definition at line 129 of 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 IPPROTO_RAW   255

Raw IP packet.

Definition at line 135 of file in.h.

#define IPPROTO_MAX   256

Maximum protocol identifier.

Definition at line 136 of file in.h.

#define IPPORT_RESERVED   1024

Last reserved port number.

Definition at line 139 of file in.h.

#define IPPORT_USERRESERVED   5000

User reserved port number.

Definition at line 140 of file in.h.

#define INADDR_ANY   (uint32_t)0x00000000

Any IP address.

Definition at line 145 of file in.h.

#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_CLASSA (   i)    (((uint32_t)(i) & 0x00000080) == 0)

Definition at line 165 of file in.h.

#define IN_CLASSA_NET   0x000000ff

Definition at line 166 of file in.h.

#define IN_CLASSB (   i)    (((uint32_t)(i) & 0x000000c0) == 0x00000080)

Definition at line 167 of file in.h.

#define IN_CLASSB_NET   0x0000ffff

Definition at line 168 of file in.h.

#define IN_CLASSC (   i)    (((uint32_t)(i) & 0x000000e0) == 0x000000c0)

Definition at line 169 of file in.h.

#define IN_CLASSC_NET   0x00ffffff

Definition at line 170 of file in.h.

#define IN_CLASSD (   i)    (((uint32_t)(i) & 0x000000f0) == 0x000000e0)

Definition at line 171 of file in.h.

#define IN_CLASSD_NET   0x0000000f

Definition at line 172 of file in.h.

#define IN_MULTICAST (   i)    IN_CLASSD(i)

Definition at line 175 of file in.h.

Referenced by NutIpInput().

#define INADDR_UNSPEC_GROUP   (uint32_t)0x000000e0

Definition at line 187 of file in.h.

#define INADDR_ALLHOSTS_GROUP   (uint32_t)0x010000e0
Examples:
httpd_upnp/httpserv.c.

Definition at line 188 of file in.h.

Referenced by main(), NutIgmpInput(), NutNetIfAddMcastAddr(), and NutNetIfDelMcastAddr().

#define INADDR_ALLRTRS_GROUP   (uint32_t)0x020000e0

Definition at line 189 of file in.h.

#define INADDR_ALLRPTS_GROUP   (uint32_t)0x160000e0

Definition at line 190 of file in.h.

#define INADDR_CARP_GROUP   (uint32_t)0x120000e0

Definition at line 191 of file in.h.

#define INADDR_PFSYNC_GROUP   (uint32_t)0xf00000e0

Definition at line 192 of file in.h.

#define INADDR_ALLMDNS_GROUP   (uint32_t)0xfb0000e0

Definition at line 193 of file in.h.

#define INADDR_MAX_LOCAL_GROUP   (uint32_t)0xff0000e0

Definition at line 194 of file in.h.

#define INADDR_LOOPBACK   (uint32_t)0x0100007f

Definition at line 200 of file in.h.

#define IN_LOOPBACKNET   127

Official loopback net address.

Definition at line 206 of file in.h.