• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/src/include/proto/

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])
96 #define IPV4_PROT(ipv4_body) (((uint8 *)(ipv4_body))[IPV4_PROT_OFFSET])
108 #define IPV4_NO_OPTIONS_PAYLOAD(ip_hdr) (&(((uint8 *)(ip_hdr))[IPV4_NO_OPTIONS_HDR_LEN]))
111 (((int)(((uint8 *)(ip_body))[IPV4_PKTLEN_OFFSET + 0]) << 8) | \
112 ((uint8 *)(ip_body))[IPV4_PKTLEN_OFFSET + 1])
116 uint8 addr[IPV4_ADDR_LEN];
120 uint8 version_ihl; /* Version and Internet Header Length */
121 uint8 tos; /* Type Of Service */
125 uint8 ttl; /* Time To Live */
126 uint8 prot; /* Protocol */
128 uint8 src_ip[IPV4_ADDR_LEN]; /* Source IP Address */
129 uint8 dst_ip[IPV4_ADDR_LEN]; /* Destination IP Address */
141 (((((uint8 *)(ipv6_body))[0] & 0x0f) << 4) | \
142 ((((uint8 *)(ipv6_body))[1] & 0xf0) >> 4))
145 (((((uint8 *)(ipv6_body))[1] & 0x0f) << 16) | \
146 (((uint8 *)(ipv6_body))[2] << 8) | \
147 (((uint8 *)(ipv6_body))[3]))
150 ((((uint8 *)(ipv6_body))[IPV6_PAYLOAD_LEN_OFFSET + 0] << 8) | \
151 ((uint8 *)(ipv6_body))[IPV6_PAYLOAD_LEN_OFFSET + 1])
154 (((uint8 *)(ipv6_body))[IPV6_NEXT_HDR_OFFSET])
192 uint8 nexthdr;
193 uint8 hdrlen;
197 uint8 nexthdr;
198 uint8 rsvd;
204 ipv6_exthdr_len(uint8 *h, uint8 *proto)