Home
last modified time | relevance | path

Searched refs:sctph (Results 1 - 6 of 6) sorted by relevance

/kernel/linux/linux-5.10/net/netfilter/ipvs/
H A Dip_vs_proto_sctp.c83 static void sctp_nat_csum(struct sk_buff *skb, struct sctphdr *sctph, in sctp_nat_csum() argument
86 sctph->checksum = sctp_compute_cksum(skb, sctphoff); in sctp_nat_csum()
94 struct sctphdr *sctph; in sctp_snat_handler() local
104 if (skb_ensure_writable(skb, sctphoff + sizeof(*sctph))) in sctp_snat_handler()
123 sctph = (void *) skb_network_header(skb) + sctphoff; in sctp_snat_handler()
126 if (sctph->source != cp->vport || payload_csum || in sctp_snat_handler()
128 sctph->source = cp->vport; in sctp_snat_handler()
129 sctp_nat_csum(skb, sctph, sctphoff); in sctp_snat_handler()
141 struct sctphdr *sctph; in sctp_dnat_handler() local
151 if (skb_ensure_writable(skb, sctphoff + sizeof(*sctph))) in sctp_dnat_handler()
[all...]
/kernel/linux/linux-6.6/net/netfilter/ipvs/
H A Dip_vs_proto_sctp.c83 static void sctp_nat_csum(struct sk_buff *skb, struct sctphdr *sctph, in sctp_nat_csum() argument
86 sctph->checksum = sctp_compute_cksum(skb, sctphoff); in sctp_nat_csum()
94 struct sctphdr *sctph; in sctp_snat_handler() local
104 if (skb_ensure_writable(skb, sctphoff + sizeof(*sctph))) in sctp_snat_handler()
123 sctph = (void *) skb_network_header(skb) + sctphoff; in sctp_snat_handler()
126 if (sctph->source != cp->vport || payload_csum || in sctp_snat_handler()
128 sctph->source = cp->vport; in sctp_snat_handler()
129 sctp_nat_csum(skb, sctph, sctphoff); in sctp_snat_handler()
141 struct sctphdr *sctph; in sctp_dnat_handler() local
151 if (skb_ensure_writable(skb, sctphoff + sizeof(*sctph))) in sctp_dnat_handler()
[all...]
/kernel/linux/linux-5.10/net/sched/
H A Dact_csum.c367 struct sctphdr *sctph; in tcf_csum_sctp() local
372 sctph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*sctph)); in tcf_csum_sctp()
373 if (!sctph) in tcf_csum_sctp()
376 sctph->checksum = sctp_compute_cksum(skb, in tcf_csum_sctp()
/kernel/linux/linux-6.6/net/sched/
H A Dact_csum.c368 struct sctphdr *sctph; in tcf_csum_sctp() local
373 sctph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*sctph)); in tcf_csum_sctp()
374 if (!sctph) in tcf_csum_sctp()
377 sctph->checksum = sctp_compute_cksum(skb, in tcf_csum_sctp()
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/iavf/
H A Diavf_fdir.c459 struct sctphdr *sctph = (struct sctphdr *)hdr->buffer; in iavf_fill_fdir_sctp_hdr() local
464 sctph->source = fltr->ip_data.src_port; in iavf_fill_fdir_sctp_hdr()
469 sctph->dest = fltr->ip_data.dst_port; in iavf_fill_fdir_sctp_hdr()
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ice/
H A Dice_virtchnl_fdir.c838 struct sctphdr *sctph; in ice_vc_fdir_parse_pattern() local
919 sctph = (struct sctphdr *)hdr->buffer; in ice_vc_fdir_parse_pattern()
929 input->ip.v4.src_port = sctph->source; in ice_vc_fdir_parse_pattern()
930 input->ip.v4.dst_port = sctph->dest; in ice_vc_fdir_parse_pattern()
932 input->ip.v6.src_port = sctph->source; in ice_vc_fdir_parse_pattern()
933 input->ip.v6.dst_port = sctph->dest; in ice_vc_fdir_parse_pattern()

Completed in 7 milliseconds