Searched refs:ntohs (Results 26 - 50 of 599) sorted by relevance

1234567891011>>

/linux-master/tools/testing/selftests/net/tcp_ao/
H A Dseq-ext.c110 saddr.sin6_port = htons(ntohs(saddr.sin6_port) + 1);
112 saddr.sin_port = htons(ntohs(saddr.sin_port) + 1);
198 client_new_port = ntohs(saddr.sin6_port) + 1;
199 saddr.sin6_port = htons(ntohs(saddr.sin6_port) + 1);
201 client_new_port = ntohs(saddr.sin_port) + 1;
202 saddr.sin_port = htons(ntohs(saddr.sin_port) + 1);
/linux-master/drivers/net/slip/
H A Dslhc.c255 if (ip->protocol != IPPROTO_TCP || (ntohs(ip->frag_off) & 0x3fff)) {
370 deltaS = ntohs(th->urg_ptr);
380 if((deltaS = ntohs(th->window) - ntohs(oth->window)) != 0){
406 ntohs(cs->cs_ip.tot_len) == hlen)
417 deltaS == ntohs(cs->cs_ip.tot_len) - hlen){
424 if(deltaS == ntohs(cs->cs_ip.tot_len) - hlen){
431 deltaS = ntohs(ip->id) - ntohs(cs->cs_ip.id);
553 i = ntohs(i
[all...]
/linux-master/net/netfilter/ipvs/
H A Dip_vs_conn.c306 IP_VS_DBG_ADDR(p->af, p->caddr), ntohs(p->cport),
307 IP_VS_DBG_ADDR(p->af, p->vaddr), ntohs(p->vport),
390 IP_VS_DBG_ADDR(p->af, p->caddr), ntohs(p->cport),
391 IP_VS_DBG_ADDR(p->af, p->vaddr), ntohs(p->vport),
444 IP_VS_DBG_ADDR(p->af, p->caddr), ntohs(p->cport),
445 IP_VS_DBG_ADDR(p->af, p->vaddr), ntohs(p->vport),
618 IP_VS_DBG_ADDR(cp->af, &cp->caddr), ntohs(cp->cport),
619 IP_VS_DBG_ADDR(cp->af, &cp->vaddr), ntohs(cp->vport),
620 IP_VS_DBG_ADDR(cp->daf, &cp->daddr), ntohs(cp->dport),
715 IP_VS_DBG_ADDR(cp->af, &cp->caddr), ntohs(c
[all...]
H A Dip_vs_nq.c106 ntohs(least->port),
H A Dip_vs_lc.c58 ntohs(least->port),
/linux-master/include/trace/events/
H A Dtcp.h77 __entry->sport = ntohs(inet->inet_sport);
78 __entry->dport = ntohs(inet->inet_dport);
146 __entry->sport = ntohs(inet->inet_sport);
147 __entry->dport = ntohs(inet->inet_dport);
217 __entry->dport = ntohs(ireq->ir_rmt_port);
277 __entry->sport = ntohs(inet->inet_sport);
278 __entry->dport = ntohs(inet->inet_dport);
406 __entry->sport = ntohs(inet->inet_sport);
407 __entry->dport = ntohs(inet->inet_dport);
H A Dfib6.h58 __entry->sport = ntohs(flp->fl6_sport);
59 __entry->dport = ntohs(flp->fl6_dport);
/linux-master/tools/testing/selftests/net/
H A Dfin_ack_lat.c78 ntohs(laddr.sin_port), lat,
143 fprintf(stderr, "server port: %d\n", ntohs(laddr.sin_port));
146 client(ntohs(laddr.sin_port));
/linux-master/net/ipv4/netfilter/
H A Dnf_nat_pptp.c143 switch (msg = ntohs(ctlh->messageType)) {
186 ntohs(REQ_CID(pptpReq, cid_off)), ntohs(new_callid));
250 switch (msg = ntohs(ctlh->messageType)) {
287 ntohs(REQ_CID(pptpReq, pcid_off)), ntohs(new_pcid));
/linux-master/net/smc/
H A Dsmc_clc.h330 ((u8 *)pclc + sizeof(*pclc) + ntohs(pclc->iparea_offset));
359 ntohs(prop->iparea_offset) != sizeof(struct smc_clc_msg_smcd))
370 if (!prop_smcd || !ntohs(prop_smcd->v2_ext_offset))
377 ntohs(prop_smcd->v2_ext_offset));
385 if (!ntohs(prop_v2ext->hdr.smcd_v2_ext_offset))
393 ntohs(prop_v2ext->hdr.smcd_v2_ext_offset));
/linux-master/tools/perf/trace/beauty/
H A Dsockaddr.c17 return scnprintf(bf, size, ", port: %d, addr: %s", ntohs(sin->sin_port),
26 size_t printed = scnprintf(bf, size, ", port: %d, addr: %s", ntohs(sin6->sin6_port),
/linux-master/net/dccp/
H A Dtrace.h49 __entry->sport = ntohs(inet->inet_sport);
50 __entry->dport = ntohs(inet->inet_dport);
/linux-master/include/linux/byteorder/
H A Dgeneric.h51 * ntohs(__u16 x)
130 #undef ntohs macro
142 #define ntohs(x) ___ntohs(x) macro
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dprobe_user.c73 inet_ntoa(in->sin_addr), ntohs(in->sin_port)))
81 inet_ntoa(in->sin_addr), ntohs(in->sin_port)))
H A Dsocket_cookie.c65 cookie_expected_value = (ntohs(addr.sin6_port) << 8) | 0xFF;
/linux-master/include/net/netfilter/
H A Dnf_tables_ipv6.h45 pkt_len = ntohs(ip6h->payload_len);
88 pkt_len = ntohs(ip6h->payload_len);
/linux-master/fs/nfsd/
H A Dflexfilelayout.c107 port = ntohs(sin->sin_port);
114 port = ntohs(sin6->sin6_port);
/linux-master/net/netfilter/
H A Dnfnetlink_osf.c110 mss = ntohs((__force __be16)mss);
180 ctx->totlen = ntohs(ip->tot_len);
181 ctx->df = ntohs(ip->frag_off) & IP_DF;
182 ctx->window = ntohs(tcp->window);
239 &ip->saddr, ntohs(tcp->source),
240 &ip->daddr, ntohs(tcp->dest),
251 &ip->saddr, ntohs(tcp->source),
252 &ip->daddr, ntohs(tcp->dest));
H A Dnf_nat_amanda.c47 port = nf_nat_exp_find_port(exp, ntohs(exp->saved_proto.tcp.port));
H A Dnft_queue.c110 priv->queuenum = ntohs(nla_get_be16(tb[NFTA_QUEUE_NUM]));
113 priv->queues_total = ntohs(nla_get_be16(tb[NFTA_QUEUE_TOTAL]));
125 priv->flags = ntohs(nla_get_be16(tb[NFTA_QUEUE_FLAGS]));
145 priv->flags = ntohs(nla_get_be16(tb[NFTA_QUEUE_FLAGS]));
/linux-master/net/sched/
H A Dact_meta_skbtcindex.c33 skb->tc_index = ntohs(ifetc_index);
/linux-master/net/sctp/
H A Dstream.c255 __u16 sid = ntohs(str_list[i]);
554 nums = (ntohs(param.p->length) - sizeof(*outreq)) / sizeof(__u16);
557 if (ntohs(str_p[i]) >= stream->incnt) {
589 SCTP_SI(stream, ntohs(str_p[i]))->mid = 0;
640 nums = (ntohs(param.p->length) - sizeof(*inreq)) / sizeof(__u16);
643 if (ntohs(str_p[i]) >= stream->outcnt) {
661 SCTP_SO(stream, ntohs(str_p[i]))->state =
805 in = ntohs(addstrm->number_of_streams);
841 0, ntohs(addstrm->number_of_streams), 0, GFP_ATOMIC);
884 out = ntohs(addstr
[all...]
/linux-master/drivers/net/wireless/marvell/mwifiex/
H A Dsta_rx.c32 switch (ntohs(eth->h_proto)) {
104 ntohs(rx_pkt_hdr->rfc1042_hdr.snap_type) != ETH_P_AARP &&
105 ntohs(rx_pkt_hdr->rfc1042_hdr.snap_type) != ETH_P_IPX))) {
149 ntohs(rx_pkt_hdr->eth803_hdr.h_proto) == ETH_P_TDLS) {
/linux-master/include/linux/sunrpc/
H A Dsvc_xprt.h186 return ntohs(sin->sin_port);
188 return ntohs(sin6->sin6_port);
224 ntohs(sin->sin_port));
230 ntohs(sin6->sin6_port));
/linux-master/include/net/
H A Dudplite.h43 cscov = ntohs(uh->len);

Completed in 352 milliseconds

1234567891011>>