Home
last modified time | relevance | path

Searched refs:l3hdr (Results 1 – 3 of 3) sorted by relevance

/openbmc/qemu/hw/net/
H A Dnet_tx_pkt.c649 struct iovec *l3hdr = fragment + NET_TX_PKT_L3HDR_FRAG; in net_tx_pkt_tcp_fragment_fix() local
651 struct ip_header *ip = l3hdr->iov_base; in net_tx_pkt_tcp_fragment_fix()
652 struct ip6_header *ip6 = l3hdr->iov_base; in net_tx_pkt_tcp_fragment_fix()
653 size_t len = l3hdr->iov_len + l4hdr->iov_len + fragment_len; in net_tx_pkt_tcp_fragment_fix()
658 eth_fix_ip4_checksum(l3hdr->iov_base, l3hdr->iov_len); in net_tx_pkt_tcp_fragment_fix()
673 struct iovec *l3hdr = fragment + NET_TX_PKT_L3HDR_FRAG; in net_tx_pkt_tcp_fragment_advance() local
675 struct ip_header *ip = l3hdr->iov_base; in net_tx_pkt_tcp_fragment_advance()
706 struct iovec *l3hdr = fragment + NET_TX_PKT_L3HDR_FRAG; in net_tx_pkt_udp_fragment_fix() local
707 struct ip_header *ip = l3hdr->iov_base; in net_tx_pkt_udp_fragment_fix()
717 ip->ip_len = cpu_to_be16(l3hdr->iov_len + fragment_len); in net_tx_pkt_udp_fragment_fix()
[all …]
/openbmc/qemu/net/
H A Deth.c319 eth_fix_ip4_checksum(void *l3hdr, size_t l3hdr_len) in eth_fix_ip4_checksum() argument
321 struct ip_header *iphdr = (struct ip_header *) l3hdr; in eth_fix_ip4_checksum()
323 iphdr->ip_sum = cpu_to_be16(net_raw_checksum(l3hdr, l3hdr_len)); in eth_fix_ip4_checksum()
/openbmc/qemu/include/net/
H A Deth.h407 eth_fix_ip4_checksum(void *l3hdr, size_t l3hdr_len);