Home
last modified time | relevance | path

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

/net/netfilter/
Dxt_sctp.c121 const sctp_sctphdr_t *sh; in sctp_mt() local
129 sh = skb_header_pointer(skb, par->thoff, sizeof(_sh), &_sh); in sctp_mt()
130 if (sh == NULL) { in sctp_mt()
135 pr_debug("spt: %d\tdpt: %d\n", ntohs(sh->source), ntohs(sh->dest)); in sctp_mt()
137 return SCCHECK(ntohs(sh->source) >= info->spts[0] in sctp_mt()
138 && ntohs(sh->source) <= info->spts[1], in sctp_mt()
140 && SCCHECK(ntohs(sh->dest) >= info->dpts[0] in sctp_mt()
141 && ntohs(sh->dest) <= info->dpts[1], in sctp_mt()
Dnf_conntrack_proto_sctp.c312 const struct sctphdr *sh; in sctp_packet() local
319 sh = skb_header_pointer(skb, dataoff, sizeof(_sctph), &_sctph); in sctp_packet()
320 if (sh == NULL) in sctp_packet()
332 sh->vtag != ct->proto.sctp.vtag[dir]) { in sctp_packet()
343 if (sh->vtag != 0) in sctp_packet()
347 if (sh->vtag != ct->proto.sctp.vtag[dir] && in sctp_packet()
348 sh->vtag != ct->proto.sctp.vtag[!dir]) in sctp_packet()
352 if (sh->vtag != ct->proto.sctp.vtag[dir] && in sctp_packet()
353 sh->vtag != ct->proto.sctp.vtag[!dir] && in sctp_packet()
358 if (sh->vtag != ct->proto.sctp.vtag[dir]) in sctp_packet()
[all …]
/net/netfilter/ipset/
Dip_set_getport.c42 const sctp_sctphdr_t *sh; in get_port() local
44 sh = skb_header_pointer(skb, protooff, sizeof(_sh), &_sh); in get_port()
45 if (sh == NULL) in get_port()
49 *port = src ? sh->source : sh->dest; in get_port()
/net/netfilter/ipvs/
Dip_vs_proto_sctp.c19 sctp_sctphdr_t *sh, _sctph; in sctp_conn_schedule() local
21 sh = skb_header_pointer(skb, iph->len, sizeof(_sctph), &_sctph); in sctp_conn_schedule()
22 if (sh == NULL) in sctp_conn_schedule()
33 &iph->daddr, sh->dest))) { in sctp_conn_schedule()
151 struct sctphdr *sh, _sctph; in sctp_csum_check() local
164 sh = skb_header_pointer(skb, sctphoff, sizeof(_sctph), &_sctph); in sctp_csum_check()
165 if (sh == NULL) in sctp_csum_check()
168 cmp = sh->checksum; in sctp_csum_check()
170 tmp = sctp_start_cksum((__u8 *) sh, skb_headlen(skb)); in sctp_csum_check()
/net/sctp/
Doutput.c394 struct sctphdr *sh; in sctp_packet_transmit() local
440 sh = (struct sctphdr *)skb_push(nskb, sizeof(struct sctphdr)); in sctp_packet_transmit()
442 sh->source = htons(packet->source_port); in sctp_packet_transmit()
443 sh->dest = htons(packet->destination_port); in sctp_packet_transmit()
453 sh->vtag = htonl(packet->vtag); in sctp_packet_transmit()
454 sh->checksum = 0; in sctp_packet_transmit()
551 __u32 crc32 = sctp_start_cksum((__u8 *)sh, cksum_buf_len); in sctp_packet_transmit()
556 sh->checksum = sctp_end_cksum(crc32); in sctp_packet_transmit()
Dinput.c88 struct sctphdr *sh = sctp_hdr(skb); in sctp_rcv_checksum() local
89 __le32 cmp = sh->checksum; in sctp_rcv_checksum()
92 __u32 tmp = sctp_start_cksum((__u8 *)sh, skb_headlen(skb)); in sctp_rcv_checksum()
130 struct sctphdr *sh; in sctp_rcv() local
145 sh = sctp_hdr(skb); in sctp_rcv()
245 chunk->sctp_hdr = sh; in sctp_rcv()
962 struct sctphdr *sh = sctp_hdr(skb); in __sctp_rcv_init_lookup() local
994 af->from_addr_param(paddr, params.addr, sh->source, 0); in __sctp_rcv_init_lookup()
Dipv6.c426 struct sctphdr *sh; in sctp_v6_from_skb() local
433 sh = sctp_hdr(skb); in sctp_v6_from_skb()
435 *port = sh->source; in sctp_v6_from_skb()
438 *port = sh->dest; in sctp_v6_from_skb()
779 struct sctphdr *sh; in sctp_inet6_skb_msgname() local
785 sh = sctp_hdr(skb); in sctp_inet6_skb_msgname()
786 sin6->sin6_port = sh->source; in sctp_inet6_skb_msgname()
Dprotocol.c242 struct sctphdr *sh; in sctp_v4_from_skb() local
247 sh = sctp_hdr(skb); in sctp_v4_from_skb()
249 *port = sh->source; in sctp_v4_from_skb()
252 *port = sh->dest; in sctp_v4_from_skb()
890 struct sctphdr *sh = sctp_hdr(skb); in sctp_inet_skb_msgname() local
894 sin->sin_port = sh->source; in sctp_inet_skb_msgname()
/net/xfrm/
Dxfrm_user.c1014 struct xfrmu_sadhinfo sh; in build_sadinfo() local
1027 sh.sadhmcnt = si.sadhmcnt; in build_sadinfo()
1028 sh.sadhcnt = si.sadhcnt; in build_sadinfo()
1032 err = nla_put(skb, XFRMA_SAD_HINFO, sizeof(sh), &sh); in build_sadinfo()