Lines Matching refs:ip_frame
47 static uint8_t ip_frame[IP_MAXPACKET]; variable
140 uint8_t *frag_start = ipv6 ? ip_frame + IP6_HLEN + FRAG_HLEN : in send_fragment()
141 ip_frame + IP4_HLEN; in send_fragment()
150 udphdr.check = udp6_checksum((struct ip6_hdr *)ip_frame, &udphdr); in send_fragment()
152 udphdr.check = udp_checksum((struct ip *)ip_frame, &udphdr); in send_fragment()
157 struct ip6_hdr *ip6hdr = (struct ip6_hdr *)ip_frame; in send_fragment()
158 struct ip6_frag *fraghdr = (struct ip6_frag *)(ip_frame + IP6_HLEN); in send_fragment()
176 struct ip *iphdr = (struct ip *)ip_frame; in send_fragment()
194 res = sendto(fd_raw, ip_frame, frag_len, 0, addr, alen); in send_fragment()
206 struct ip *iphdr = (struct ip *)ip_frame; in send_udp_frags()
207 struct ip6_hdr *ip6hdr = (struct ip6_hdr *)ip_frame; in send_udp_frags()
220 struct ip6_frag *fraghdr = (struct ip6_frag *)(ip_frame + IP6_HLEN); in send_udp_frags()
303 struct ip6_frag *fraghdr = (struct ip6_frag *)(ip_frame + IP6_HLEN); in send_udp_frags()
315 res = sendto(fd_raw, ip_frame, frag_len, 0, addr, alen); in send_udp_frags()