KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
in.h File Reference

Definitions for the Internet address family. More...

#include <sys/cdefs.h>
#include <inttypes.h>
#include <sys/socket.h>
#include <arpa/inet.h>

Go to the source code of this file.

Data Structures

struct  in_addr
 Structure used to store an IPv4 address. More...
 
struct  in6_addr
 Structure used to store an IPv6 address. More...
 
struct  sockaddr_in
 Structure used to store an IPv4 address for a socket. More...
 
struct  sockaddr_in6
 Structure used to store an IPv6 address for a socket. More...
 

Macros

#define s6_addr   __s6_addr.__s6_addr8
 
#define INADDR_ANY   0x00000000
 Local IPv4 host address.
 
#define INADDR_BROADCAST   0xFFFFFFFF
 IPv4 broadcast address.
 
#define INADDR_NONE   0xFFFFFFFF
 IPv4 error address.
 
#define IN6ADDR_ANY_INIT
 Initialize an IPv6 local host address.
 
#define IN6ADDR_LOOPBACK_INIT
 Initialize an IPv6 loopback address.
 
#define INET_ADDRSTRLEN   16
 Length of a string form of a maximal IPv4 address.
 
#define INET6_ADDRSTRLEN   46
 Length of a string form of a maximal IPv6 address.
 
#define IPPROTO_IP   0
 Internet Protocol Version 4.
 
#define IPPROTO_ICMP   1
 Internet Control Message Protocol.
 
#define IPPROTO_TCP   6
 Transmission Control Protocol.
 
#define IPPROTO_UDP   17
 User Datagram Protocol.
 
#define IPPROTO_IPV6   41
 Internet Protocol Version 6.
 
#define IPPROTO_UDPLITE   136
 Lightweight User Datagram Protocol.
 
#define IP_TTL   24
 TTL for unicast (get/set)
 
#define IPV6_JOIN_GROUP   17
 Join a multicast group (set)
 
#define IPV6_LEAVE_GROUP   18
 Leave a multicast group (set)
 
#define IPV6_MULTICAST_HOPS   19
 Hop limit for multicast (get/set)
 
#define IPV6_MULTICAST_IF   20
 Multicast interface (get/set)
 
#define IPV6_MULTICAST_LOOP   21
 Multicasts loopback (get/set)
 
#define IPV6_UNICAST_HOPS   22
 Hop limit for unicast (get/set)
 
#define IPV6_V6ONLY   23
 IPv6 only – no IPv4 (get/set)
 
#define IN6_IS_ADDR_UNSPECIFIED(a)
 Test if an IPv6 Address is unspecified.
 
#define IN6_IS_ADDR_LOOPBACK(a)
 Test if an IPv6 Address is a loopback address.
 
#define IN6_IS_ADDR_V4MAPPED(a)
 Test if an IPv6 Address is an IPv4 mapped address.
 
#define IN6_IS_ADDR_V4COMPAT(a)
 Test if an IPv6 Address is an IPv4 compatibility address.
 
#define IN6_IS_ADDR_LINKLOCAL(a)
 Test if an IPv6 Address is a link-local address.
 
#define IN6_IS_ADDR_SITELOCAL(a)
 Test if an IPv6 Address is a site-local address.
 
#define IN6_IS_ADDR_MULTICAST(a)
 Test if an IPv6 Address is a multicast address.
 
#define IN6_IS_ADDR_MC_NODELOCAL(a)
 Test if an IPv6 Address is a node-local multicast address.
 
#define IN6_IS_ADDR_MC_LINKLOCAL(a)
 Test if an IPv6 Address is a link-local multicast address.
 
#define IN6_IS_ADDR_MC_SITELOCAL(a)
 Test if an IPv6 Address is a site-local multicast address.
 
#define IN6_IS_ADDR_MC_ORGLOCAL(a)
 Test if an IPv6 Address is an organization-local multicast address.
 
#define IN6_IS_ADDR_MC_GLOBAL(a)
 Test if an IPv6 Address is a global multicast address.
 

Typedefs

typedef uint16_t in_port_t
 16-bit type used to store a value for an internet port.
 
typedef uint32_t in_addr_t
 32-bit value used to store an IPv4 address.
 

Variables

const struct in6_addr in6addr_any
 IPv6 local host address.
 
const struct in6_addr in6addr_loopback
 IPv6 loopback address.
 

Detailed Description

Definitions for the Internet address family.

This file contains the standard definitions (as directed by the POSIX 2008 standard) for internet-related functionality in the AF_INET address family. This does is not guaranteed to have everything that one might have in a fully-standard compliant implementation of the POSIX standard.

Author
Lawrence Sebald

Macro Definition Documentation

◆ s6_addr

#define s6_addr   __s6_addr.__s6_addr8