Searched refs:ip_header (Results 1 – 10 of 10) sorted by relevance
/openbmc/qemu/include/net/ |
H A D | eth.h | 49 struct ip_header { struct 201 ((struct ip_header *)(((uint8_t *)(p)) + eth_get_l2_hdr_length(p))) 203 ((ldub_p(p + offsetof(struct ip_header, ip_ver_len)) & 0x0F) << 2) 205 (ldub_p(p + offsetof(struct ip_header, ip_p))) 376 struct ip_header ip4_hdr; 410 eth_calc_ip4_pseudo_hdr_csum(struct ip_header *iphdr,
|
/openbmc/qemu/hw/net/ |
H A D | net_tx_pkt.c | 49 struct ip_header ip; 211 l3_hdr->iov_base, sizeof(struct ip_header)); in net_tx_pkt_parse_headers() 213 if (bytes_read < sizeof(struct ip_header)) { in net_tx_pkt_parse_headers() 220 if (l3_hdr->iov_len < sizeof(struct ip_header)) { in net_tx_pkt_parse_headers() 227 if (IP_HDR_GET_LEN(l3_hdr->iov_base) != sizeof(struct ip_header)) { in net_tx_pkt_parse_headers() 230 l2_hdr->iov_len + sizeof(struct ip_header), in net_tx_pkt_parse_headers() 231 l3_hdr->iov_base + sizeof(struct ip_header), in net_tx_pkt_parse_headers() 232 l3_hdr->iov_len - sizeof(struct ip_header)); in net_tx_pkt_parse_headers() 233 if (bytes_read < l3_hdr->iov_len - sizeof(struct ip_header)) { in net_tx_pkt_parse_headers() 651 struct ip_header *ip = l3hdr->iov_base; in net_tx_pkt_tcp_fragment_fix() [all …]
|
H A D | virtio-net.c | 68 #define VIRTIO_NET_MAX_IP4_PAYLOAD (65535 - sizeof(struct ip_header)) 1701 size_t csum_size = ETH_HLEN + sizeof(struct ip_header) + in work_around_broken_dhclient() 1906 struct ip_header ip; 2084 struct ip_header *ip; in virtio_net_rsc_extract_unit4() 2086 ip = (struct ip_header *)(buf + chain->n->guest_hdr_len in virtio_net_rsc_extract_unit4() 2320 struct ip_header *ip1, *ip2; in virtio_net_rsc_coalesce4() 2322 ip1 = (struct ip_header *)(unit->ip); in virtio_net_rsc_coalesce4() 2323 ip2 = (struct ip_header *)(seg->unit.ip); in virtio_net_rsc_coalesce4() 2457 struct ip_header *ip, in virtio_net_rsc_sanity_check4() 2492 if (ip_len < (sizeof(struct ip_header) + sizeof(struct tcp_header)) in virtio_net_rsc_sanity_check4() [all …]
|
H A D | rtl8139.c | 2073 if (saved_size < ETH_HLEN + sizeof(struct ip_header)) { in rtl8139_cplus_transmit_one() 2078 struct ip_header *ip = NULL; in rtl8139_cplus_transmit_one() 2102 ip = (struct ip_header*)eth_payload_data; in rtl8139_cplus_transmit_one() 2112 if (hlen < sizeof(struct ip_header) || hlen > eth_payload_len) { in rtl8139_cplus_transmit_one()
|
H A D | net_rx_pkt.c | 248 struct ip_header *ip4_hdr = &pkt->ip4hdr_info.ip4_hdr; in _net_rx_rss_prepare_ip4()
|
/openbmc/qemu/net/ |
H A D | eth.c | 42 struct ip_header *iphdr = (struct ip_header *) l3_hdr; in eth_get_gso_type() 112 const struct ip_header *ip4_hdr, in _eth_tcp_has_data() 151 struct ip_header *iphdr = &ip4hdr_info->ip4_hdr; in eth_get_protocols() 321 struct ip_header *iphdr = (struct ip_header *) l3hdr; in eth_fix_ip4_checksum() 327 eth_calc_ip4_pseudo_hdr_csum(struct ip_header *iphdr, in eth_calc_ip4_pseudo_hdr_csum()
|
H A D | checksum.c | 63 struct ip_header *ip; in net_checksum_calculate() 100 if (length < sizeof(struct ip_header)) { in net_checksum_calculate() 104 ip = (struct ip_header *)((uint8_t *)data + mac_hdr_len); in net_checksum_calculate()
|
/openbmc/qemu/hw/hyperv/ |
H A D | syndbg.c | 82 if (curr_len < sizeof(struct ip_header) || in get_udb_pkt_data() 143 (sizeof(struct eth_header) + sizeof(struct ip_header) +\ 162 (4 << 4) | (sizeof(struct ip_header) >> 2); in create_udp_pkt() 171 cpu_to_be16(sizeof(struct ip_header) + sizeof(struct udp_header) + in create_udp_pkt()
|
/openbmc/qemu/hw/net/rocker/ |
H A D | rocker_of_dpa.c | 148 struct ip_header *ipv4hdr; 419 sofar += sizeof(struct ip_header); in of_dpa_flow_pkt_parse() 424 fields->ipv4hdr = (struct ip_header *)(fields->h_proto + 1); in of_dpa_flow_pkt_parse()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/ |
H A D | resource_tracker.c | 4233 struct mlx4_net_trans_rule_hw_ipv4 *ip_header; in add_eth_header() local 4245 ip_header = in add_eth_header() 4247 memmove(ip_header, eth_header, in add_eth_header() 4248 sizeof(*ip_header) + sizeof(*l4_header)); in add_eth_header()
|