Home
last modified time | relevance | path

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

/net/netfilter/
Dxt_sctp.c123 const sctp_sctphdr_t *sh; in sctp_mt() local
131 sh = skb_header_pointer(skb, par->thoff, sizeof(_sh), &_sh); in sctp_mt()
132 if (sh == NULL) { in sctp_mt()
137 duprintf("spt: %d\tdpt: %d\n", ntohs(sh->source), ntohs(sh->dest)); in sctp_mt()
139 return SCCHECK(ntohs(sh->source) >= info->spts[0] in sctp_mt()
140 && ntohs(sh->source) <= info->spts[1], in sctp_mt()
142 && SCCHECK(ntohs(sh->dest) >= info->dpts[0] in sctp_mt()
143 && ntohs(sh->dest) <= info->dpts[1], in sctp_mt()
Dnf_conntrack_proto_sctp.c295 const struct sctphdr *sh; in sctp_packet() local
302 sh = skb_header_pointer(skb, dataoff, sizeof(_sctph), &_sctph); in sctp_packet()
303 if (sh == NULL) in sctp_packet()
315 sh->vtag != ct->proto.sctp.vtag[dir]) { in sctp_packet()
326 if (sh->vtag != 0) in sctp_packet()
330 if (sh->vtag != ct->proto.sctp.vtag[dir] && in sctp_packet()
331 sh->vtag != ct->proto.sctp.vtag[!dir]) in sctp_packet()
335 if (sh->vtag != ct->proto.sctp.vtag[dir] && in sctp_packet()
336 sh->vtag != ct->proto.sctp.vtag[!dir] && in sctp_packet()
341 if (sh->vtag != ct->proto.sctp.vtag[dir]) in sctp_packet()
[all …]
/net/sctp/
Doutput.c369 struct sctphdr *sh; in sctp_packet_transmit() local
418 sh = (struct sctphdr *)skb_push(nskb, sizeof(struct sctphdr)); in sctp_packet_transmit()
419 sh->source = htons(packet->source_port); in sctp_packet_transmit()
420 sh->dest = htons(packet->destination_port); in sctp_packet_transmit()
430 sh->vtag = htonl(packet->vtag); in sctp_packet_transmit()
431 sh->checksum = 0; in sctp_packet_transmit()
535 crc32 = sctp_start_cksum((__u8 *)sh, cksum_buf_len); in sctp_packet_transmit()
543 sh->checksum = crc32; in sctp_packet_transmit()
Dinput.c85 struct sctphdr *sh = sctp_hdr(skb); in sctp_rcv_checksum() local
86 __be32 cmp = sh->checksum; in sctp_rcv_checksum()
87 __be32 val = sctp_start_cksum((__u8 *)sh, skb_headlen(skb)); in sctp_rcv_checksum()
125 struct sctphdr *sh; in sctp_rcv() local
139 sh = sctp_hdr(skb); in sctp_rcv()
238 chunk->sctp_hdr = sh; in sctp_rcv()
921 struct sctphdr *sh = sctp_hdr(skb); in __sctp_rcv_init_lookup() local
956 af->from_addr_param(paddr, params.addr, sh->source, 0); in __sctp_rcv_init_lookup()
Dipv6.c400 struct sctphdr *sh; in sctp_v6_from_skb() local
407 sh = sctp_hdr(skb); in sctp_v6_from_skb()
409 *port = sh->source; in sctp_v6_from_skb()
412 *port = sh->dest; in sctp_v6_from_skb()
783 struct sctphdr *sh; in sctp_inet6_skb_msgname() local
789 sh = sctp_hdr(skb); in sctp_inet6_skb_msgname()
790 sin6->sin6_port = sh->source; in sctp_inet6_skb_msgname()
Dprotocol.c281 struct sctphdr *sh; in sctp_v4_from_skb() local
286 sh = sctp_hdr(skb); in sctp_v4_from_skb()
288 *port = sh->source; in sctp_v4_from_skb()
291 *port = sh->dest; in sctp_v4_from_skb()
813 struct sctphdr *sh = sctp_hdr(skb); in sctp_inet_skb_msgname() local
817 sin->sin_port = sh->source; in sctp_inet_skb_msgname()
/net/xfrm/
Dxfrm_user.c737 struct xfrmu_sadhinfo sh; in build_sadinfo() local
749 sh.sadhmcnt = si.sadhmcnt; in build_sadinfo()
750 sh.sadhcnt = si.sadhcnt; in build_sadinfo()
753 NLA_PUT(skb, XFRMA_SAD_HINFO, sizeof(sh), &sh); in build_sadinfo()