/linux-master/net/ipv6/netfilter/ |
H A D | ip6t_frag.c | 57 pr_debug("OFFSET %04X ", ntohs(fh->frag_off) & ~0x7); 58 pr_debug("RES %02X %04X", fh->reserved, ntohs(fh->frag_off) & 0x6); 69 ntohs(fh->frag_off) & 0x6, 71 (fh->reserved || (ntohs(fh->frag_off) & 0x06)))); 74 ntohs(fh->frag_off) & ~0x7, 76 (ntohs(fh->frag_off) & ~0x7))); 79 ntohs(fh->frag_off) & IP6_MF, 81 !((ntohs(fh->frag_off) & IP6_MF)))); 84 ntohs(fh->frag_off) & IP6_MF, 86 (ntohs(f [all...] |
H A D | nf_tproxy_ipv6.c | 100 daddr, ntohs(dport), 113 ntohs(dport), in->ifindex, 0); 145 protocol, saddr, ntohs(sport), daddr, ntohs(dport), lookup_type, sk);
|
/linux-master/net/6lowpan/ |
H A D | nhc_udp.c | 71 ntohs(uh.source), ntohs(uh.dest)); 100 pr_debug("uncompressed UDP length: src = %d", ntohs(uh.len)); 120 if (((ntohs(uh->source) & LOWPAN_NHC_UDP_4BIT_MASK) == 122 ((ntohs(uh->dest) & LOWPAN_NHC_UDP_4BIT_MASK) == 129 tmp = ntohs(uh->dest) - LOWPAN_NHC_UDP_4BIT_PORT + 130 ((ntohs(uh->source) - LOWPAN_NHC_UDP_4BIT_PORT) << 4); 132 } else if ((ntohs(uh->dest) & LOWPAN_NHC_UDP_8BIT_MASK) == 141 tmp = ntohs(uh->dest) - LOWPAN_NHC_UDP_8BIT_PORT; 143 } else if ((ntohs(u [all...] |
/linux-master/include/linux/ |
H A D | ip.h | 36 return ntohs(ip_hdr(skb)->tot_len) - skb_network_header_len(skb); 41 u32 len = ntohs(iph->tot_len);
|
/linux-master/include/net/netfilter/ |
H A D | nf_tables_ipv4.h | 16 pkt->fragoff = ntohs(ip->frag_off) & IP_OFFSET; 44 pkt->fragoff = ntohs(iph->frag_off) & IP_OFFSET; 81 pkt->fragoff = ntohs(iph->frag_off) & IP_OFFSET;
|
H A D | nf_conntrack_tuple.h | 90 &t->src.u3.ip, ntohs(t->src.u.all), 91 &t->dst.u3.ip, ntohs(t->dst.u.all)); 100 t->src.u3.all, ntohs(t->src.u.all), 101 t->dst.u3.all, ntohs(t->dst.u.all));
|
/linux-master/include/trace/events/ |
H A D | icmp.h | 45 __entry->sport = ntohs(uh->source); 46 __entry->dport = ntohs(uh->dest); 47 __entry->ulen = ntohs(uh->len);
|
H A D | udp.h | 34 __entry->sport = ntohs(uh->source); 35 __entry->dport = ntohs(uh->dest);
|
/linux-master/net/bridge/netfilter/ |
H A D | ebt_vlan.c | 47 TCI = ntohs(fp->h_vlan_TCI); 85 ntohs(e->ethproto)); 141 if ((unsigned short) ntohs(info->encap) < ETH_ZLEN) { 143 "minimal\n", ntohs(info->encap));
|
/linux-master/samples/bpf/ |
H A D | test_probe_write_user_user.c | 73 printf("Server bound to: %s:%d\n", ip, ntohs(serv_addr_in->sin_port)); 86 ip, ntohs(mapped_addr_in->sin_port)); 93 ip, ntohs(tmp_addr_in->sin_port)); 99 ip, ntohs(tmp_addr_in->sin_port));
|
/linux-master/include/net/ |
H A D | nsh.h | 262 return ((ntohs(nsh->ver_flags_ttl_len) & NSH_LEN_MASK) 268 return (ntohs(nsh->ver_flags_ttl_len) & NSH_VER_MASK) 274 return (ntohs(nsh->ver_flags_ttl_len) & NSH_FLAGS_MASK) 280 return (ntohs(nsh->ver_flags_ttl_len) & NSH_TTL_MASK)
|
H A D | dsfield.h | 24 return ntohs(*(__force const __be16 *)ipv6h) >> 4; 31 __u32 check = ntohs((__force __be16)iph->check);
|
/linux-master/net/ipv4/netfilter/ |
H A D | nf_nat_h323.c | 160 &addr.ip, ntohs(port), 162 ntohs(ct->tuplehash[!dir].tuple.dst.u.udp.port)); 204 htons(ntohs(info->rtp_port[i][dir]) + 1); 219 for (nated_port = ntohs(rtp_exp->tuple.dst.u.udp.port); 267 ntohs(rtp_exp->tuple.src.u.udp.port), 269 ntohs(rtp_exp->tuple.dst.u.udp.port)); 272 ntohs(rtcp_exp->tuple.src.u.udp.port), 274 ntohs(rtcp_exp->tuple.dst.u.udp.port)); 287 u_int16_t nated_port = ntohs(port); 310 ntohs(ex [all...] |
/linux-master/net/rxrpc/ |
H A D | utils.c | 20 switch (ntohs(skb->protocol)) { 41 ntohs(skb->protocol));
|
/linux-master/net/appletalk/ |
H A D | atalk_proc.c | 71 iface->dev->name, ntohs(iface->address.s_net), 72 iface->address.s_node, ntohs(iface->nets.nr_firstnet), 73 ntohs(iface->nets.nr_lastnet), iface->status); 132 ntohs(rt->gateway.s_net), rt->gateway.s_node, 138 ntohs(rt->target.s_net), rt->target.s_node, 139 ntohs(rt->gateway.s_net), rt->gateway.s_node, 179 s->sk_type, ntohs(at->src_net), at->src_node, at->src_port, 180 ntohs(at->dest_net), at->dest_node, at->dest_port,
|
/linux-master/net/netfilter/ |
H A D | nf_log_syslog.c | 57 nf_log_buf_add(m, "VPROTO=%04x VID=%u ", ntohs(skb->vlan_proto), vid); 86 ntohs(eth_hdr(skb)->h_proto)); 90 ntohs(ah->ar_hrd), ntohs(ah->ar_pro), ntohs(ah->ar_op)); 207 ntohs(th->source), ntohs(th->dest)); 215 nf_log_buf_add(m, "WINDOW=%u ", ntohs(th->window)); 237 nf_log_buf_add(m, "URGP=%u ", ntohs(th->urg_ptr)); 291 ntohs(u [all...] |
H A D | nf_conntrack_pptp.c | 264 msg = ntohs(ctlh->messageType); 301 ntohs(cid), ntohs(pcid)); 317 pr_debug("%s, CID=%X\n", pptp_msg_name(msg), ntohs(cid)); 336 pr_debug("%s, PCID=%X\n", pptp_msg_name(msg), ntohs(pcid)); 346 pr_debug("%s, CID=%X\n", pptp_msg_name(msg), ntohs(cid)); 373 msg, ntohs(cid), ntohs(pcid), info->cstate, info->sstate, 374 ntohs(info->pns_call_id), ntohs(inf [all...] |
H A D | xt_sctp.c | 71 offset += SCTP_PAD4(ntohs(sch->length)); 135 pr_debug("spt: %d\tdpt: %d\n", ntohs(sh->source), ntohs(sh->dest)); 137 return SCCHECK(ntohs(sh->source) >= info->spts[0] 138 && ntohs(sh->source) <= info->spts[1], 140 SCCHECK(ntohs(sh->dest) >= info->dpts[0] 141 && ntohs(sh->dest) <= info->dpts[1],
|
H A D | xt_dccp.c | 111 return DCCHECK(ntohs(dh->dccph_sport) >= info->spts[0] 112 && ntohs(dh->dccph_sport) <= info->spts[1], 114 && DCCHECK(ntohs(dh->dccph_dport) >= info->dpts[0] 115 && ntohs(dh->dccph_dport) <= info->dpts[1],
|
/linux-master/net/ife/ |
H A D | ife.c | 76 ifehdrln = ntohs(ifehdr->metalen); 109 tlvlen = ntohs(tlv->len); 136 *dlen = ntohs(tlv->len) - NLA_HDRLEN; 137 *attrtype = ntohs(tlv->type); 149 u16 tlvlen = ntohs(tlv->len);
|
/linux-master/net/netfilter/ipvs/ |
H A D | ip_vs_ftp.c | 289 &from.ip, ntohs(port), &cp->caddr.ip, 0); 310 IP_VS_DBG_ADDR(cp->af, &from), ntohs(port), 351 ntohs(port) >> 8, 352 ntohs(port) & 0xFF); 358 ntohs(port)); 499 IP_VS_DBG(7, "PORT %pI4:%u detected\n", &to.ip, ntohs(port)); 504 &to.ip, ntohs(port), &cp->vaddr.ip, 505 ntohs(cp->vport)-1); 514 IP_VS_DBG_ADDR(cp->af, &to), ntohs(port)); 519 IP_VS_DBG_ADDR(cp->af, &to), ntohs(por [all...] |
/linux-master/net/hsr/ |
H A D | hsr_main.h | 66 htons((ntohs(ht->path_and_LSDU_size) & 0x0FFF) | (path << 12)); 71 ht->path_and_LSDU_size = htons((ntohs(ht->path_and_LSDU_size) & 147 return ntohs(rct->lan_id_and_LSDU_size) & 0x0FFF; 152 rct->lan_id_and_LSDU_size = htons((ntohs(rct->lan_id_and_LSDU_size) & 157 rct->lan_id_and_LSDU_size = htons((ntohs(rct->lan_id_and_LSDU_size) & 239 return ntohs(hsr_ethhdr->hsr_tag.sequence_nr); 257 return ntohs(rct->sequence_nr);
|
/linux-master/drivers/net/ethernet/chelsio/libcxgb/ |
H A D | libcxgb_cm.c | 60 ntohs(tcp->source), ntohs(tcp->dest)); 67 ntohs(tcp->source), ntohs(tcp->dest));
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | connect_force_port.c | 24 if (ntohs(port) != expected_local) { 25 log_err("Unexpected local port %d, expected %d", ntohs(port), 40 if (ntohs(port) != expected_peer) { 41 log_err("Unexpected peer port %d, expected %d", ntohs(port),
|
/linux-master/net/dsa/ |
H A D | tag_rtl8_4.c | 162 etype = ntohs(tag16[0]); 170 proto = FIELD_GET(RTL8_4_PROTOCOL, ntohs(tag16[1])); 179 reason = FIELD_GET(RTL8_4_REASON, ntohs(tag16[1])); 182 port = FIELD_GET(RTL8_4_TX, ntohs(tag16[3]));
|