version 1.1.1.5, 2018/04/24 17:25:44
|
version 1.1.1.6, 2018/04/24 17:41:02
|
Line 33
|
Line 33
|
#ifndef _IP_H_ |
#ifndef _IP_H_ |
#define _IP_H_ |
#define _IP_H_ |
|
|
#ifdef WORDS_BIGENDIAN |
#ifdef HOST_WORDS_BIGENDIAN |
# ifndef NTOHL |
# ifndef NTOHL |
# define NTOHL(d) |
# define NTOHL(d) |
# endif |
# endif |
Line 73 typedef u_int32_t n_long;
|
Line 73 typedef u_int32_t n_long;
|
* Structure of an internet header, naked of options. |
* Structure of an internet header, naked of options. |
*/ |
*/ |
struct ip { |
struct ip { |
#ifdef WORDS_BIGENDIAN |
#ifdef HOST_WORDS_BIGENDIAN |
u_int ip_v:4, /* version */ |
u_int ip_v:4, /* version */ |
ip_hl:4; /* header length */ |
ip_hl:4; /* header length */ |
#else |
#else |
Line 139 struct ip_timestamp {
|
Line 139 struct ip_timestamp {
|
u_int8_t ipt_code; /* IPOPT_TS */ |
u_int8_t ipt_code; /* IPOPT_TS */ |
u_int8_t ipt_len; /* size of structure (variable) */ |
u_int8_t ipt_len; /* size of structure (variable) */ |
u_int8_t ipt_ptr; /* index of current entry */ |
u_int8_t ipt_ptr; /* index of current entry */ |
#ifdef WORDS_BIGENDIAN |
#ifdef HOST_WORDS_BIGENDIAN |
u_int ipt_oflw:4, /* overflow counter */ |
u_int ipt_oflw:4, /* overflow counter */ |
ipt_flg:4; /* flags, see below */ |
ipt_flg:4; /* flags, see below */ |
#else |
#else |