Home
last modified time | relevance | path

Searched refs:ntohs (Results 1 – 25 of 39) sorted by relevance

12

/include/net/
A Dnsh.h262 return ((ntohs(nsh->ver_flags_ttl_len) & NSH_LEN_MASK) in nsh_hdr_len()
268 return (ntohs(nsh->ver_flags_ttl_len) & NSH_VER_MASK) in nsh_get_ver()
274 return (ntohs(nsh->ver_flags_ttl_len) & NSH_FLAGS_MASK) in nsh_get_flags()
280 return (ntohs(nsh->ver_flags_ttl_len) & NSH_TTL_MASK) in nsh_get_ttl()
A Ddsfield.h24 return ntohs(*(__force const __be16 *)ipv6h) >> 4; in ipv6_get_dsfield()
31 __u32 check = ntohs((__force __be16)iph->check); in ipv4_change_dsfield()
A Dfib_rules.h149 return ntohs(port) >= a->start && in fib_rule_port_inrange()
150 ntohs(port) <= a->end; in fib_rule_port_inrange()
156 if ((range->start ^ ntohs(port)) & port_mask) in fib_rule_port_match()
A Dudplite.h43 cscov = ntohs(uh->len); in udplite_checksum_init()
A Dinet6_hashtables.h133 saddr, sport, daddr, ntohs(dport), in inet6_steal_sock()
166 &ip6h->daddr, ntohs(dport), in __inet6_lookup_skb()
A Dmld.h101 unsigned long ret, mc_mrc = ntohs(mlh2->mld2q_mrc); in mldv2_mrc()
A Dinet_hashtables.h311 daddr, ntohs(dport), dif, sdif); in inet_lookup_listener()
394 ntohs(dport), dif, 0); in inet_lookup_established()
405 u16 hnum = ntohs(dport); in __inet_lookup()
463 saddr, sport, daddr, ntohs(dport), in inet_steal_sock()
/include/trace/events/
A Dicmp.h45 __entry->sport = ntohs(uh->source);
46 __entry->dport = ntohs(uh->dest);
47 __entry->ulen = ntohs(uh->len);
A Dudp.h34 __entry->sport = ntohs(uh->source);
35 __entry->dport = ntohs(uh->dest);
A Dtcp.h44 __entry->sport = ntohs(inet->inet_sport);
45 __entry->dport = ntohs(inet->inet_dport);
162 __entry->sport = ntohs(inet->inet_sport);
163 __entry->dport = ntohs(inet->inet_dport);
249 __entry->sport = ntohs(inet->inet_sport);
250 __entry->dport = ntohs(inet->inet_dport);
396 __entry->sport = ntohs(inet->inet_sport);
550 __entry->sport = ntohs(th->source);
551 __entry->dport = ntohs(th->dest);
651 __entry->sport = ntohs(th->source);
[all …]
A Dfib6.h60 __entry->sport = ntohs(flp->fl6_sport);
61 __entry->dport = ntohs(flp->fl6_dport);
A Dfib.h60 __entry->sport = ntohs(flp->fl4_sport);
61 __entry->dport = ntohs(flp->fl4_dport);
A Dnet.h45 __entry->vlan_proto = ntohs(skb->vlan_proto);
47 __entry->protocol = ntohs(skb->protocol);
203 __entry->vlan_proto = ntohs(skb->vlan_proto);
205 __entry->protocol = ntohs(skb->protocol);
A Dsock.h170 __entry->sport = ntohs(inet->inet_sport);
171 __entry->dport = ntohs(inet->inet_dport);
218 __entry->sport = ntohs(inet->inet_sport);
219 __entry->dport = ntohs(inet->inet_dport);
A Dskb.h43 __entry->protocol = ntohs(skb->protocol);
/include/linux/
A Dip.h36 return ntohs(ip_hdr(skb)->tot_len) - skb_network_header_len(skb); in ip_transport_len()
41 u32 len = ntohs(iph->tot_len); in iph_totlen()
A Ddccp.h19 __u64 seq_nr = ntohs(dh->dccph_seq); in dccp_hdr_seq()
/include/net/netfilter/
A Dnf_tables_ipv4.h16 pkt->fragoff = ntohs(ip->frag_off) & IP_OFFSET; in nft_set_pktinfo_ipv4()
46 pkt->fragoff = ntohs(iph->frag_off) & IP_OFFSET; in __nft_set_pktinfo_ipv4_validate()
83 pkt->fragoff = ntohs(iph->frag_off) & IP_OFFSET; in nft_set_pktinfo_ipv4_ingress()
A Dnf_conntrack_tuple.h90 &t->src.u3.ip, ntohs(t->src.u.all), in nf_ct_dump_tuple_ip()
91 &t->dst.u3.ip, ntohs(t->dst.u.all)); in nf_ct_dump_tuple_ip()
100 t->src.u3.all, ntohs(t->src.u.all), in nf_ct_dump_tuple_ipv6()
101 t->dst.u3.all, ntohs(t->dst.u.all)); in nf_ct_dump_tuple_ipv6()
A Dnf_tables_ipv6.h45 pkt_len = ntohs(ip6h->payload_len); in __nft_set_pktinfo_ipv6_validate()
89 pkt_len = ntohs(ip6h->payload_len); in nft_set_pktinfo_ipv6_ingress()
/include/net/sctp/
A Dsctp.h425 _sctp_walk_params((pos), (chunk), ntohs((chunk)->chunk_hdr.length))
431 pos.v <= (void *)chunk + end - ntohs(pos.p->length) &&\
432 ntohs(pos.p->length) >= sizeof(struct sctp_paramhdr);\
433 pos.v += SCTP_PAD4(ntohs(pos.p->length)))
436 _sctp_walk_errors((err), (chunk_hdr), ntohs((chunk_hdr)->length))
443 (void *)err <= (void *)chunk_hdr + end - ntohs(err->length) &&\
444 ntohs(err->length) >= sizeof(struct sctp_errhdr); \
445 err = (struct sctp_errhdr *)((void *)err + SCTP_PAD4(ntohs(err->length))))
448 _sctp_walk_fwdtsn((pos), (chunk), ntohs((chunk)->chunk_hdr->length) - sizeof(struct sctp_fwdtsn_chu…
/include/linux/sunrpc/
A Dsvc_xprt.h214 return ntohs(sin->sin_port); in svc_addr_port()
216 return ntohs(sin6->sin6_port); in svc_addr_port()
252 ntohs(sin->sin_port)); in __svc_print_addr()
258 ntohs(sin6->sin6_port)); in __svc_print_addr()
A Daddr.h27 return ntohs(((struct sockaddr_in *)sap)->sin_port); in rpc_get_port()
29 return ntohs(((struct sockaddr_in6 *)sap)->sin6_port); in rpc_get_port()
/include/linux/byteorder/
A Dgeneric.h130 #undef ntohs
142 #define ntohs(x) ___ntohs(x) macro
/include/keys/
A Dtrusted_tpm.h15 #define LOAD16(buffer, offset) (ntohs(*(uint16_t *)&buffer[offset]))

Completed in 29 milliseconds

12