Home
last modified time | relevance | path

Searched refs:sh (Results 1 – 13 of 13) sorted by relevance

/net/netfilter/
Dnf_conntrack_proto_sctp.c260 const struct sctphdr *sh, unsigned int dataoff) in sctp_new() argument
284 if (sh->vtag) in sctp_new()
298 sh->vtag); in sctp_new()
299 ct->proto.sctp.vtag[IP_CT_DIR_ORIGINAL] = sh->vtag; in sctp_new()
304 sh->vtag); in sctp_new()
305 ct->proto.sctp.vtag[IP_CT_DIR_REPLY] = sh->vtag; in sctp_new()
318 const struct sctphdr *sh; in sctp_error() local
328 if (skb_ensure_writable(skb, dataoff + sizeof(*sh))) { in sctp_error()
332 sh = (const struct sctphdr *)(skb->data + dataoff); in sctp_error()
333 if (sh->checksum != sctp_compute_cksum(skb, dataoff)) { in sctp_error()
[all …]
Dxt_sctp.c122 const struct sctphdr *sh; in sctp_mt() local
130 sh = skb_header_pointer(skb, par->thoff, sizeof(_sh), &_sh); in sctp_mt()
131 if (sh == NULL) { in sctp_mt()
136 pr_debug("spt: %d\tdpt: %d\n", ntohs(sh->source), ntohs(sh->dest)); in sctp_mt()
138 return SCCHECK(ntohs(sh->source) >= info->spts[0] in sctp_mt()
139 && ntohs(sh->source) <= info->spts[1], in sctp_mt()
141 SCCHECK(ntohs(sh->dest) >= info->dpts[0] in sctp_mt()
142 && ntohs(sh->dest) <= info->dpts[1], in sctp_mt()
/net/sctp/
Doffload.c38 struct sctphdr *sh; in sctp_gso_segment() local
43 sh = sctp_hdr(skb); in sctp_gso_segment()
44 if (!pskb_may_pull(skb, sizeof(*sh))) in sctp_gso_segment()
47 __skb_pull(skb, sizeof(*sh)); in sctp_gso_segment()
75 sh = sctp_hdr(skb); in sctp_gso_segment()
76 sh->checksum = sctp_gso_make_checksum(skb); in sctp_gso_segment()
Doutput.c525 struct sctphdr *sh = in sctp_packet_pack() local
528 sh->checksum = sctp_compute_cksum(head, 0); in sctp_packet_pack()
553 struct sctphdr *sh; in sctp_packet_transmit() local
580 sh = skb_push(head, sizeof(struct sctphdr)); in sctp_packet_transmit()
582 sh->source = htons(packet->source_port); in sctp_packet_transmit()
583 sh->dest = htons(packet->destination_port); in sctp_packet_transmit()
584 sh->vtag = htonl(packet->vtag); in sctp_packet_transmit()
585 sh->checksum = 0; in sctp_packet_transmit()
Dipv6.c481 struct sctphdr *sh = sctp_hdr(skb); in sctp_v6_from_skb() local
489 sa->sin6_port = sh->source; in sctp_v6_from_skb()
492 sa->sin6_port = sh->dest; in sctp_v6_from_skb()
847 struct sctphdr *sh; in sctp_inet6_skb_msgname() local
853 sh = sctp_hdr(skb); in sctp_inet6_skb_msgname()
857 addr->v4.sin_port = sh->source; in sctp_inet6_skb_msgname()
862 addr->v6.sin6_port = sh->source; in sctp_inet6_skb_msgname()
Dinput.c70 struct sctphdr *sh = sctp_hdr(skb); in sctp_rcv_checksum() local
71 __le32 cmp = sh->checksum; in sctp_rcv_checksum()
1105 struct sctphdr *sh = sctp_hdr(skb); in __sctp_rcv_init_lookup() local
1136 if (!af->from_addr_param(paddr, params.addr, sh->source, 0)) in __sctp_rcv_init_lookup()
Dprotocol.c219 struct sctphdr *sh = sctp_hdr(skb); in sctp_v4_from_skb() local
225 sa->sin_port = sh->source; in sctp_v4_from_skb()
228 sa->sin_port = sh->dest; in sctp_v4_from_skb()
920 struct sctphdr *sh = sctp_hdr(skb); in sctp_inet_skb_msgname() local
924 sin->sin_port = sh->source; in sctp_inet_skb_msgname()
/net/netfilter/ipset/
Dip_set_getport.c43 const struct sctphdr *sh; in get_port() local
45 sh = skb_header_pointer(skb, protooff, sizeof(_sh), &_sh); in get_port()
46 if (!sh) in get_port()
50 *port = src ? sh->source : sh->dest; in get_port()
/net/netfilter/ipvs/
Dip_vs_proto_sctp.c23 struct sctphdr *sh, _sctph; in sctp_conn_schedule() local
27 sh = skb_header_pointer(skb, iph->len, sizeof(_sctph), &_sctph); in sctp_conn_schedule()
28 if (sh) { in sctp_conn_schedule()
36 ports = &sh->source; in sctp_conn_schedule()
189 struct sctphdr *sh; in sctp_csum_check() local
199 sh = (struct sctphdr *)(skb->data + sctphoff); in sctp_csum_check()
200 cmp = sh->checksum; in sctp_csum_check()
/net/openvswitch/
Dactions.c751 struct sctphdr *sh; in set_sctp() local
759 sh = sctp_hdr(skb); in set_sctp()
760 old_csum = sh->checksum; in set_sctp()
763 sh->source = OVS_MASKED(sh->source, key->sctp_src, mask->sctp_src); in set_sctp()
764 sh->dest = OVS_MASKED(sh->dest, key->sctp_dst, mask->sctp_dst); in set_sctp()
769 sh->checksum = old_csum ^ old_correct_csum ^ new_csum; in set_sctp()
774 flow_key->tp.src = sh->source; in set_sctp()
775 flow_key->tp.dst = sh->dest; in set_sctp()
/net/wireless/
Dutil.c623 struct skb_shared_info *sh = skb_shinfo(skb); in __frame_add_frag() local
628 skb_add_rx_frag(skb, sh->nr_frags, page, page_offset, len, size); in __frame_add_frag()
635 struct skb_shared_info *sh = skb_shinfo(skb); in __ieee80211_amsdu_copy_frag() local
636 const skb_frag_t *frag = &sh->frags[0]; in __ieee80211_amsdu_copy_frag()
/net/xfrm/
Dxfrm_user.c1266 struct xfrmu_sadhinfo sh; in build_sadinfo() local
1279 sh.sadhmcnt = si.sadhmcnt; in build_sadinfo()
1280 sh.sadhcnt = si.sadhcnt; in build_sadinfo()
1284 err = nla_put(skb, XFRMA_SAD_HINFO, sizeof(sh), &sh); in build_sadinfo()
/net/core/
Dskbuff.c732 struct skb_shared_info *sh = skb_shinfo(skb); in skb_dump() local
765 sh->tx_flags, sh->nr_frags, in skb_dump()
766 sh->gso_size, sh->gso_type, sh->gso_segs, in skb_dump()