Lines Matching refs:uint8
40 ((((uint8 *)(ip_body))[IP_VER_OFFSET] & IP_VER_MASK) >> IP_VER_SHIFT)
65 #define IPV4_HLEN(ipv4_body) (4 * (((uint8 *)(ipv4_body))[IPV4_VER_HL_OFFSET] & IPV4_HLEN_MASK))
69 #define IPV4_ADDR_NULL(a) ((((uint8 *)(a))[0] | ((uint8 *)(a))[1] | \
70 ((uint8 *)(a))[2] | ((uint8 *)(a))[3]) == 0)
72 #define IPV4_ADDR_BCAST(a) ((((uint8 *)(a))[0] & ((uint8 *)(a))[1] & \
73 ((uint8 *)(a))[2] & ((uint8 *)(a))[3]) == 0xff)
78 #define IPV4_TOS(ipv4_body) (((uint8 *)(ipv4_body))[IPV4_TOS_OFFSET])
87 #define IPV4_PROT(ipv4_body) (((uint8 *)(ipv4_body))[IPV4_PROT_OFFSET])
98 uint8 addr[IPV4_ADDR_LEN];
102 uint8 version_ihl; /* Version and Internet Header Length */
103 uint8 tos; /* Type Of Service */
107 uint8 ttl; /* Time To Live */
108 uint8 prot; /* Protocol */
110 uint8 src_ip[IPV4_ADDR_LEN]; /* Source IP Address */
111 uint8 dst_ip[IPV4_ADDR_LEN]; /* Destination IP Address */
123 (((((uint8 *)(ipv6_body))[0] & 0x0f) << 4) | \
124 ((((uint8 *)(ipv6_body))[1] & 0xf0) >> 4))
127 (((((uint8 *)(ipv6_body))[1] & 0x0f) << 16) | \
128 (((uint8 *)(ipv6_body))[2] << 8) | \
129 (((uint8 *)(ipv6_body))[3]))
132 ((((uint8 *)(ipv6_body))[IPV6_PAYLOAD_LEN_OFFSET + 0] << 8) | \
133 ((uint8 *)(ipv6_body))[IPV6_PAYLOAD_LEN_OFFSET + 1])
136 (((uint8 *)(ipv6_body))[IPV6_NEXT_HDR_OFFSET])
167 uint8 nexthdr;
168 uint8 hdrlen;
172 uint8 nexthdr;
173 uint8 rsvd;
179 ipv6_exthdr_len(uint8 *h, uint8 *proto) in ipv6_exthdr_len()