Searched refs:udph (Results 1 – 12 of 12) sorted by relevance
107 struct udphdr *udph; in mlx5e_test_get_udp_skb() local128 udph = skb_put(skb, sizeof(struct udphdr)); in mlx5e_test_get_udp_skb()136 udph->source = htons(9); in mlx5e_test_get_udp_skb()137 udph->dest = htons(9); /* Discard Protocol */ in mlx5e_test_get_udp_skb()138 udph->len = htons(sizeof(struct mlx5ehdr) + sizeof(struct udphdr)); in mlx5e_test_get_udp_skb()139 udph->check = 0; in mlx5e_test_get_udp_skb()188 struct udphdr *udph; in mlx5e_test_loopback_validate() local204 udph = (struct udphdr *)((u8 *)iph + 4 * iph->ihl); in mlx5e_test_loopback_validate()205 if (udph->dest != htons(9)) in mlx5e_test_loopback_validate()208 mlxh = (struct mlx5ehdr *)((char *)udph + sizeof(*udph)); in mlx5e_test_loopback_validate()
3961 struct udphdr *udph; in mlx5e_tunnel_features_check() local3987 udph = udp_hdr(skb); in mlx5e_tunnel_features_check()3988 port = be16_to_cpu(udph->dest); in mlx5e_tunnel_features_check()
155 struct udphdr *udph; in rxe_udp_encap_recv() local175 udph = udp_hdr(skb); in rxe_udp_encap_recv()178 pkt->hdr = (u8 *)(udph + 1); in rxe_udp_encap_recv()180 pkt->paylen = be16_to_cpu(udph->len) - sizeof(*udph); in rxe_udp_encap_recv()234 struct udphdr *udph; in prepare_udp_hdr() local236 __skb_push(skb, sizeof(*udph)); in prepare_udp_hdr()238 udph = udp_hdr(skb); in prepare_udp_hdr()240 udph->dest = dst_port; in prepare_udp_hdr()241 udph->source = src_port; in prepare_udp_hdr()242 udph->len = htons(skb->len); in prepare_udp_hdr()[all …]
77 struct udphdr *udph; in rxe_icrc_hdr() local99 udph = (struct udphdr *)(ip4h + 1); in rxe_icrc_hdr()107 udph = (struct udphdr *)(ip6h + 1); in rxe_icrc_hdr()113 udph->check = CSUM_MANGLED_0; in rxe_icrc_hdr()
42 struct udphdr *udph; in nsim_dev_psample_skb_build() local73 udph = skb_put_zero(skb, sizeof(struct udphdr) + data_len); in nsim_dev_psample_skb_build()74 get_random_bytes(&udph->source, sizeof(u16)); in nsim_dev_psample_skb_build()75 get_random_bytes(&udph->dest, sizeof(u16)); in nsim_dev_psample_skb_build()76 udph->len = htons(sizeof(struct udphdr) + data_len); in nsim_dev_psample_skb_build()
660 struct udphdr *udph; in nsim_dev_trap_skb_build() local690 udph = skb_put_zero(skb, sizeof(struct udphdr) + data_len); in nsim_dev_trap_skb_build()691 get_random_bytes(&udph->source, sizeof(u16)); in nsim_dev_trap_skb_build()692 get_random_bytes(&udph->dest, sizeof(u16)); in nsim_dev_trap_skb_build()693 udph->len = htons(sizeof(struct udphdr) + data_len); in nsim_dev_trap_skb_build()
668 struct udphdr *udph = (struct udphdr *)((size_t)iph + (iph->ihl << 2)); in dhcp_flag_bcast() local670 if ((udph->source == __constant_htons(CLIENT_PORT)) && in dhcp_flag_bcast()671 (udph->dest == __constant_htons(SERVER_PORT))) { /* DHCP request */ in dhcp_flag_bcast()673 (struct dhcpMessage *)((size_t)udph + sizeof(struct udphdr)); in dhcp_flag_bcast()685 sum = ~(udph->check) & 0xffff; in dhcp_flag_bcast()689 udph->check = ~sum; in dhcp_flag_bcast()
427 struct udphdr *udph = (struct udphdr *)hdr->buffer; in iavf_fill_fdir_udp_hdr() local432 udph->source = fltr->ip_data.src_port; in iavf_fill_fdir_udp_hdr()437 udph->dest = fltr->ip_data.dst_port; in iavf_fill_fdir_udp_hdr()
1111 struct udphdr *udph; in ice_vc_fdir_parse_pattern() local1173 udph = (struct udphdr *)hdr->buffer; in ice_vc_fdir_parse_pattern()1181 input->ip.v4.src_port = udph->source; in ice_vc_fdir_parse_pattern()1182 input->ip.v4.dst_port = udph->dest; in ice_vc_fdir_parse_pattern()1184 input->ip.v6.src_port = udph->source; in ice_vc_fdir_parse_pattern()1185 input->ip.v6.dst_port = udph->dest; in ice_vc_fdir_parse_pattern()
270 struct udphdr *udph; in vmxnet3_features_check() local285 udph = udp_hdr(skb); in vmxnet3_features_check()286 port = be16_to_cpu(udph->dest); in vmxnet3_features_check()
580 struct udphdr *udph = udp_hdr(skb); in otx2_sqe_add_ext() local599 udph->len = htons(sizeof(struct udphdr)); in otx2_sqe_add_ext()
249 struct udphdr *udph; in enic_features_check() local284 udph = udp_hdr(skb); in enic_features_check()285 port = be16_to_cpu(udph->dest); in enic_features_check()