Lines Matching refs:protocol
20 static __sum16 *rmnet_map_get_csum_field(unsigned char protocol, in rmnet_map_get_csum_field() argument
23 if (protocol == IPPROTO_TCP) in rmnet_map_get_csum_field()
26 if (protocol == IPPROTO_UDP) in rmnet_map_get_csum_field()
58 csum_field = rmnet_map_get_csum_field(ip4h->protocol, txporthdr); in rmnet_map_ipv4_dl_csum_trailer()
65 if (!*csum_field && ip4h->protocol == IPPROTO_UDP) { in rmnet_map_ipv4_dl_csum_trailer()
95 ip4h->protocol, 0); in rmnet_map_ipv4_dl_csum_trailer()
174 if (ip4h->protocol == IPPROTO_TCP || ip4h->protocol == IPPROTO_UDP) { in rmnet_map_complement_ipv4_txporthdr_csum_field()
175 csum = (u16 *)rmnet_map_get_csum_field(ip4h->protocol, txphdr); in rmnet_map_complement_ipv4_txporthdr_csum_field()
188 if (iphdr->protocol == IPPROTO_UDP) in rmnet_map_ipv4_ul_csum_header()
261 if (skb->protocol == htons(ETH_P_IP)) { in rmnet_map_v5_checksum_uplink_packet()
264 proto = ((struct iphdr *)iph)->protocol; in rmnet_map_v5_checksum_uplink_packet()
267 skb->protocol == htons(ETH_P_IPV6)) { in rmnet_map_v5_checksum_uplink_packet()
420 if (skb->protocol == htons(ETH_P_IP)) in rmnet_map_checksum_downlink_packet()
423 if (IS_ENABLED(CONFIG_IPV6) && skb->protocol == htons(ETH_P_IPV6)) in rmnet_map_checksum_downlink_packet()
451 if (skb->protocol == htons(ETH_P_IP)) { in rmnet_map_v4_checksum_uplink_packet()
457 if (IS_ENABLED(CONFIG_IPV6) && skb->protocol == htons(ETH_P_IPV6)) { in rmnet_map_v4_checksum_uplink_packet()
617 port->skbagg_head->protocol = htons(ETH_P_MAP); in rmnet_map_tx_aggregate()
671 skb->protocol = htons(ETH_P_MAP); in rmnet_map_tx_aggregate()