Home
last modified time | relevance | path

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

/include/net/
Ddsfield.h23 return ntohs(*(const __be16 *)ipv6h) >> 4; in ipv6_get_dsfield()
30 __u32 check = ntohs((__force __be16)iph->check); in ipv4_change_dsfield()
48 tmp = ntohs(*(__be16 *) ipv6h); in ipv6_change_dsfield()
Dip_vs.h1036 ntohs(cp->cport), in ip_vs_control_del()
1038 ntohs(cp->vport)); in ip_vs_control_del()
1046 ntohs(cp->cport), in ip_vs_control_del()
1048 ntohs(ctl_cp->cport)); in ip_vs_control_del()
1055 ntohs(cp->cport), in ip_vs_control_del()
1057 ntohs(cp->vport)); in ip_vs_control_del()
1071 ntohs(cp->cport), in ip_vs_control_add()
1073 ntohs(cp->vport)); in ip_vs_control_add()
1081 ntohs(cp->cport), in ip_vs_control_add()
1083 ntohs(ctl_cp->cport)); in ip_vs_control_add()
Dinet_hashtables.h268 return __inet_lookup_listener(net, hashinfo, daddr, ntohs(dport), dif); in inet_lookup_listener()
346 ntohs(dport), dif); in inet_lookup_established()
355 u16 hnum = ntohs(dport); in __inet_lookup()
Dinet6_hashtables.h105 &ipv6_hdr(skb)->daddr, ntohs(dport), in __inet6_lookup_skb()
Dudplite.h47 cscov = ntohs(uh->len); in udplite_checksum_init()
Dllc_pdu.h351 dsize = ntohs(eth_hdr(ev_skb)->h_proto) - 3; in llc_pdu_init_as_test_rsp()
/include/net/netfilter/
Dnf_tproxy_core.h129 protocol, ntohl(saddr), ntohs(sport), ntohl(daddr), ntohs(dport), lookup_type, sk); in nf_tproxy_get_sock_v4()
154 daddr, ntohs(dport), in nf_tproxy_get_sock_v6()
165 saddr, sport, daddr, ntohs(dport), in nf_tproxy_get_sock_v6()
198 protocol, saddr, ntohs(sport), daddr, ntohs(dport), lookup_type, sk); in nf_tproxy_get_sock_v6()
Dnf_conntrack_tuple.h86 &t->src.u3.ip, ntohs(t->src.u.all), in nf_ct_dump_tuple_ip()
87 &t->dst.u3.ip, ntohs(t->dst.u.all)); in nf_ct_dump_tuple_ip()
96 t->src.u3.all, ntohs(t->src.u.all), in nf_ct_dump_tuple_ipv6()
97 t->dst.u3.all, ntohs(t->dst.u.all)); in nf_ct_dump_tuple_ipv6()
/include/linux/sunrpc/
Dsvc_xprt.h153 return ntohs(sin->sin_port); in svc_addr_port()
155 return ntohs(sin6->sin6_port); in svc_addr_port()
192 ntohs(sin->sin_port)); in __svc_print_addr()
198 ntohs(sin6->sin6_port)); in __svc_print_addr()
Dclnt.h177 return ntohs(((struct sockaddr_in *)sap)->sin_port); in rpc_get_port()
179 return ntohs(((struct sockaddr_in6 *)sap)->sin6_port); in rpc_get_port()
/include/net/sctp/
Dsctp.h533 _sctp_walk_params((pos), (chunk), ntohs((chunk)->chunk_hdr.length), member)
537 pos.v <= (void *)chunk + end - ntohs(pos.p->length) &&\
538 ntohs(pos.p->length) >= sizeof(sctp_paramhdr_t);\
539 pos.v += WORD_ROUND(ntohs(pos.p->length)))
542 _sctp_walk_errors((err), (chunk_hdr), ntohs((chunk_hdr)->length))
547 (void *)err <= (void *)chunk_hdr + end - ntohs(err->length) &&\
548 ntohs(err->length) >= sizeof(sctp_errhdr_t); \
549 err = (sctp_errhdr_t *)((void *)err + WORD_ROUND(ntohs(err->length))))
552 _sctp_walk_fwdtsn((pos), (chunk), ntohs((chunk)->chunk_hdr->length) - sizeof(struct sctp_fwdtsn_chu…
Dsm.h306 size = ntohs(chunk->chunk_hdr->length); in sctp_data_size()
/include/linux/byteorder/
Dgeneric.h129 #undef ntohs
141 #define ntohs(x) ___ntohs(x) macro
/include/linux/
Dtipc_config.h274 (ntohs(((struct tlv_desc *)tlv)->tlv_len) <= space); in TLV_OK()
280 (ntohs(((struct tlv_desc *)tlv)->tlv_type) == exp_type); in TLV_CHECK()
331 __u16 tlv_space = TLV_ALIGN(ntohs(list->tlv_ptr->tlv_len)); in TLV_LIST_STEP()
Dif_vlan.h259 *vlan_tci = ntohs(veth->h_vlan_TCI); in __vlan_get_tag()
338 if (ntohs(proto) >= 1536) { in vlan_set_encap_proto()
Ddccp.h325 __u64 seq_nr = ntohs(dh->dccph_seq); in dccp_hdr_seq()
350 return ((u64)ntohs(dhack->dccph_ack_nr_high) << 32) + ntohl(dhack->dccph_ack_nr_low); in dccp_hdr_ack_seq()
/include/trace/events/
Dskb.h29 __entry->protocol = ntohs(skb->protocol);
/include/linux/lockd/
Dlockd.h301 if (ntohs(sin->sin_port) > 1023) in __nlm_privileged_request4()
312 if (ntohs(sin6->sin6_port) > 1023) in __nlm_privileged_request6()
/include/linux/ceph/
Ddecode.h109 a->in_addr.ss_family = ntohs(ss_family); in ceph_decode_addr()
/include/linux/netfilter/ipset/
Dip_set.h408 return ntohs(nla_get_be16(attr)); in ip_set_get_h16()