Go to the source code of this file.
Data Structures | |
| struct | in_addr |
| Internet address. More... | |
| struct | sockaddr_in |
Defines | |
| #define | __SOCK_SIZE__ 16 |
| Structure describing an Internet (IP) socket address. sizeof(struct sockaddr). | |
| #define | sin_zero __pad |
| for BSD UNIX comp. -FvK | |
| #define | IN_CLASSA(a) ((((long int) (a)) & 0x80000000) == 0) |
| #define | IN_CLASSA_NET 0xff000000 |
| #define | IN_CLASSA_NSHIFT 24 |
| #define | IN_CLASSA_HOST (0xffffffff & ~IN_CLASSA_NET) |
| #define | IN_CLASSA_MAX 128 |
| #define | IN_CLASSB(a) ((((long int) (a)) & 0xc0000000) == 0x80000000) |
| #define | IN_CLASSB_NET 0xffff0000 |
| #define | IN_CLASSB_NSHIFT 16 |
| #define | IN_CLASSB_HOST (0xffffffff & ~IN_CLASSB_NET) |
| #define | IN_CLASSB_MAX 65536 |
| #define | IN_CLASSC(a) ((((long int) (a)) & 0xc0000000) == 0xc0000000) |
| #define | IN_CLASSC_NET 0xffffff00 |
| #define | IN_CLASSC_NSHIFT 8 |
| #define | IN_CLASSC_HOST (0xffffffff & ~IN_CLASSC_NET) |
| #define | IN_CLASSD(a) ((((long int) (a)) & 0xf0000000) == 0xe0000000) |
| #define | IN_MULTICAST(a) IN_CLASSD(a) |
| #define | IN_EXPERIMENTAL(a) ((((long int) (a)) & 0xe0000000) == 0xe0000000) |
| #define | IN_BADCLASS(a) ((((long int) (a)) & 0xf0000000) == 0xf0000000) |
| #define | INADDR_ANY ((unsigned long int) 0x00000000) |
| Address to accept any incoming messages. | |
| #define | INADDR_BROADCAST ((unsigned long int) 0xffffffff) |
| Address to send to all hosts. | |
| #define | INADDR_NONE 0xffffffff |
| Address indicating an error return. | |
| #define | IN_LOOPBACKNET 127 |
| Network number for local host loopback. | |
| #define | INADDR_LOOPBACK 0x7f000001 |
| Address to loopback in software to local host. 127.0.0.1. | |
| #define | IP_HDRINCL 2 |
| raw packet header option | |
| #define | __htonl(x) __ntohl(x) |
| #define | __htons(x) __ntohs(x) |
| #define | __constant_htonl(x) __constant_ntohl(x) |
| #define | __constant_htons(x) __constant_ntohs(x) |
Enumerations | |
| enum | { IPPROTO_IP = 0, IPPROTO_ICMP = 1, IPPROTO_GGP = 2, IPPROTO_TCP = 6, IPPROTO_EGP = 8, IPPROTO_PUP = 12, IPPROTO_UDP = 17, IPPROTO_IDP = 22, IPPROTO_RAW = 255, IPPROTO_MAX } |
| Standard well-defined IP protocols. More... | |
Functions | |
| unsigned long int | ntohl (unsigned long int) |
| Linux Internet number representation function declarations. | |
| unsigned short int | ntohs (unsigned short int) |
| unsigned long int | htonl (unsigned long int) |
| unsigned short int | htons (unsigned short int) |
| static __inline__ unsigned long int | __ntohl (unsigned long int x) |
| static __inline__ unsigned long int | __constant_ntohl (unsigned long int x) |
| static __inline__ unsigned short int | __ntohs (unsigned short int x) |
| static __inline__ unsigned short int | __constant_ntohs (unsigned short int x) |
| #define __SOCK_SIZE__ 16 |
| #define IN_BADCLASS | ( | a | ) | ((((long int) (a)) & 0xf0000000) == 0xf0000000) |
| #define IN_CLASSA | ( | a | ) | ((((long int) (a)) & 0x80000000) == 0) |
| #define IN_CLASSB | ( | a | ) | ((((long int) (a)) & 0xc0000000) == 0x80000000) |
| #define IN_CLASSC | ( | a | ) | ((((long int) (a)) & 0xc0000000) == 0xc0000000) |
| #define IN_CLASSD | ( | a | ) | ((((long int) (a)) & 0xf0000000) == 0xe0000000) |
| #define IN_EXPERIMENTAL | ( | a | ) | ((((long int) (a)) & 0xe0000000) == 0xe0000000) |
| #define IN_LOOPBACKNET 127 |
| #define INADDR_ANY ((unsigned long int) 0x00000000) |
| #define INADDR_BROADCAST ((unsigned long int) 0xffffffff) |
| #define INADDR_LOOPBACK 0x7f000001 |
| #define INADDR_NONE 0xffffffff |
| #define IP_HDRINCL 2 |
| anonymous enum |
Standard well-defined IP protocols.
INET An implementation of the TCP/IP protocol suite for the LINUX operating system. INET is implemented using the BSD Socket interface as the means of communication with the user level.
Definitions of the Internet Protocol.
Version: @(#)in.h 1.0.1 04/21/93
Authors: Original taken from the GNU Project <netinet/in.h> file. Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
| static __inline__ unsigned long int __constant_ntohl | ( | unsigned long int | x | ) | [static] |
| static __inline__ unsigned short int __constant_ntohs | ( | unsigned short int | x | ) | [static] |
| static __inline__ unsigned long int __ntohl | ( | unsigned long int | x | ) | [static] |
| static __inline__ unsigned short int __ntohs | ( | unsigned short int | x | ) | [static] |
| unsigned long int htonl | ( | unsigned long | int | ) |
| unsigned short int htons | ( | unsigned short | int | ) |
| unsigned long int ntohl | ( | unsigned long | int | ) |
Linux Internet number representation function declarations.
| unsigned short int ntohs | ( | unsigned short | int | ) |
1.4.6-5