/linux-master/tools/testing/selftests/net/tcp_ao/ |
H A D | seq-ext.c | 110 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 D | slhc.c | 255 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 D | ip_vs_conn.c | 306 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 D | ip_vs_nq.c | 106 ntohs(least->port),
|
H A D | ip_vs_lc.c | 58 ntohs(least->port),
|
/linux-master/include/trace/events/ |
H A D | tcp.h | 77 __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 D | fib6.h | 58 __entry->sport = ntohs(flp->fl6_sport); 59 __entry->dport = ntohs(flp->fl6_dport);
|
/linux-master/tools/testing/selftests/net/ |
H A D | fin_ack_lat.c | 78 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 D | nf_nat_pptp.c | 143 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 D | smc_clc.h | 330 ((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 D | sockaddr.c | 17 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 D | trace.h | 49 __entry->sport = ntohs(inet->inet_sport); 50 __entry->dport = ntohs(inet->inet_dport);
|
/linux-master/include/linux/byteorder/ |
H A D | generic.h | 51 * ntohs(__u16 x) 130 #undef ntohs macro 142 #define ntohs(x) ___ntohs(x) macro
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | probe_user.c | 73 inet_ntoa(in->sin_addr), ntohs(in->sin_port))) 81 inet_ntoa(in->sin_addr), ntohs(in->sin_port)))
|
H A D | socket_cookie.c | 65 cookie_expected_value = (ntohs(addr.sin6_port) << 8) | 0xFF;
|
/linux-master/include/net/netfilter/ |
H A D | nf_tables_ipv6.h | 45 pkt_len = ntohs(ip6h->payload_len); 88 pkt_len = ntohs(ip6h->payload_len);
|
/linux-master/fs/nfsd/ |
H A D | flexfilelayout.c | 107 port = ntohs(sin->sin_port); 114 port = ntohs(sin6->sin6_port);
|
/linux-master/net/netfilter/ |
H A D | nfnetlink_osf.c | 110 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 D | nf_nat_amanda.c | 47 port = nf_nat_exp_find_port(exp, ntohs(exp->saved_proto.tcp.port));
|
H A D | nft_queue.c | 110 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 D | act_meta_skbtcindex.c | 33 skb->tc_index = ntohs(ifetc_index);
|
/linux-master/net/sctp/ |
H A D | stream.c | 255 __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 D | sta_rx.c | 32 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 D | svc_xprt.h | 186 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 D | udplite.h | 43 cscov = ntohs(uh->len);
|