Home
last modified time | relevance | path

Searched refs:iphdr (Results 1 – 5 of 5) sorted by relevance

/openbmc/qemu/net/
H A Deth.c42 struct ip_header *iphdr = (struct ip_header *) l3_hdr; in eth_get_gso_type() local
44 if (IP_HEADER_VERSION(iphdr) == IP_HEADER_VERSION_4) { in eth_get_gso_type()
45 if (IPTOS_ECN(iphdr->ip_tos) == IPTOS_ECN_CE) { in eth_get_gso_type()
151 struct ip_header *iphdr = &ip4hdr_info->ip4_hdr; in eth_get_protocols() local
157 copied = iov_to_buf(iov, iovcnt, *l3hdr_off, iphdr, sizeof(*iphdr)); in eth_get_protocols()
158 if (copied < sizeof(*iphdr) || in eth_get_protocols()
159 IP_HEADER_VERSION(iphdr) != IP_HEADER_VERSION_4) { in eth_get_protocols()
164 ip_p = iphdr->ip_p; in eth_get_protocols()
165 ip4hdr_info->fragment = IP4_IS_FRAGMENT(iphdr); in eth_get_protocols()
166 *l4hdr_off = *l3hdr_off + IP_HDR_GET_LEN(iphdr); in eth_get_protocols()
[all …]
/openbmc/u-boot/net/
H A Dbootp.c711 uchar *pkt, *iphdr; in bootp_request() local
764 iphdr = pkt; /* We need this later for net_set_udp_header() */ in bootp_request()
813 net_set_udp_header(iphdr, bcast_ip, PORT_BOOTPS, PORT_BOOTPC, iplen); in bootp_request()
970 uchar *pkt, *iphdr; in dhcp_send_request_packet() local
985 iphdr = pkt; /* We'll need this later to set proper pkt size */ in dhcp_send_request_packet()
1025 net_set_udp_header(iphdr, bcast_ip, PORT_BOOTPS, PORT_BOOTPC, iplen); in dhcp_send_request_packet()
/openbmc/u-boot/arch/sandbox/cpu/
H A Deth-raw-os.c199 struct udphdr *udph = packet + sizeof(struct iphdr); in sandbox_eth_raw_os_send()
219 struct iphdr *iph = packet; in sandbox_eth_raw_os_send()
/openbmc/qemu/include/net/
H A Deth.h410 eth_calc_ip4_pseudo_hdr_csum(struct ip_header *iphdr,
415 eth_calc_ip6_pseudo_hdr_csum(struct ip6_header *iphdr,
/openbmc/qemu/tools/ebpf/
H A Drss.bpf.c314 struct iphdr ip = {}; in parse_packet()