AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database

Declaration for 

ip from NetLib:netinet.h.ip

(Struct)
/*
* Structure of an IP header
*/

struct ip {
u_int          ip_hl  : 4;  /* Header length */
u_int          ip_v   : 4;  /* Protocol version */
u_int          ip_tos : 8;  /* Type of service */
int            ip_len : 16; /* Packet length  - short not u_short */
u_short        ip_id;       /* Packet ID */
short          ip_off;      /* Fragment offset */
#define IP_DF 0x4000             /* Don't fragment flag */
#define IP_MF 0x2000             /* More fragments flag */
#define     IP_OFFMASK 0x1fff          /* mask for fragmenting bits */
u_char         ip_ttl;      /* Time-to-live */
u_char         ip_p;        /* Protocol */
u_short        ip_sum;      /* Checksum */
struct in_addr ip_src;      /* Source address */
struct in_addr ip_dst;      /* Destination address */
};



Open original source file

See header files's help page


[sh-index] Back to list of manuals