Lines Matching defs:hdr
124 #define IPH_V(hdr) (ntohs((hdr)->_v_hl_tos) >> 12) argument
125 #define IPH_HL(hdr) ((ntohs((hdr)->_v_hl_tos) >> 8) & 0x0f) argument
126 #define IPH_TOS(hdr) (ntohs((hdr)->_v_hl_tos) & 0xff) argument
127 #define IPH_LEN(hdr) ((hdr)->_len) argument
128 #define IPH_ID(hdr) ((hdr)->_id) argument
129 #define IPH_OFFSET(hdr) ((hdr)->_offset) argument
130 #define IPH_TTL(hdr) (ntohs((hdr)->_ttl_proto) >> 8) argument
131 #define IPH_PROTO(hdr) (ntohs((hdr)->_ttl_proto) & 0xff) argument
132 #define IPH_CHKSUM(hdr) ((hdr)->_chksum) argument
134 #define IPH_VHLTOS_SET(hdr, v, hl, tos) (hdr)->_v_hl_tos = (htons(((v) << 12) | ((hl) << 8) | (tos)… argument
135 #define IPH_LEN_SET(hdr, len) (hdr)->_len = (len) argument
136 #define IPH_ID_SET(hdr, id) (hdr)->_id = (id) argument
137 #define IPH_OFFSET_SET(hdr, off) (hdr)->_offset = (off) argument
138 #define IPH_TTL_SET(hdr, ttl) (hdr)->_ttl_proto = (htons(IPH_PROTO(hdr) | ((ttl) << 8))) argument
139 #define IPH_PROTO_SET(hdr, proto) (hdr)->_ttl_proto = (htons((proto) | (IPH_TTL(hdr) << 8))) argument
140 #define IPH_CHKSUM_SET(hdr, chksum) (hdr)->_chksum = (chksum) argument