/Linux-v4.19/net/ipv6/netfilter/ |
D | ip6t_frag.c | 60 pr_debug("OFFSET %04X ", ntohs(fh->frag_off) & ~0x7); in frag_mt6() 61 pr_debug("RES %02X %04X", fh->reserved, ntohs(fh->frag_off) & 0x6); in frag_mt6() 72 ntohs(fh->frag_off) & 0x6, in frag_mt6() 74 (fh->reserved || (ntohs(fh->frag_off) & 0x06)))); in frag_mt6() 77 ntohs(fh->frag_off) & ~0x7, in frag_mt6() 79 (ntohs(fh->frag_off) & ~0x7))); in frag_mt6() 82 ntohs(fh->frag_off) & IP6_MF, in frag_mt6() 84 !((ntohs(fh->frag_off) & IP6_MF)))); in frag_mt6() 87 ntohs(fh->frag_off) & IP6_MF, in frag_mt6() 89 (ntohs(fh->frag_off) & IP6_MF))); in frag_mt6() [all …]
|
D | nf_nat_proto_icmpv6.c | 28 return ntohs(tuple->src.u.icmp.id) >= ntohs(min->icmp.id) && in icmpv6_in_range() 29 ntohs(tuple->src.u.icmp.id) <= ntohs(max->icmp.id); in icmpv6_in_range() 43 range_size = ntohs(range->max_proto.icmp.id) - in icmpv6_unique_tuple() 44 ntohs(range->min_proto.icmp.id) + 1; in icmpv6_unique_tuple() 50 tuple->src.u.icmp.id = htons(ntohs(range->min_proto.icmp.id) + in icmpv6_unique_tuple()
|
/Linux-v4.19/net/netfilter/ |
D | nf_nat_proto_common.c | 32 return ntohs(port) >= ntohs(min->all) && in nf_nat_l4proto_in_range() 33 ntohs(port) <= ntohs(max->all); in nf_nat_l4proto_in_range() 59 if (ntohs(*portptr) < 1024) { in nf_nat_l4proto_unique_tuple() 61 if (ntohs(*portptr) < 512) { in nf_nat_l4proto_unique_tuple() 73 min = ntohs(range->min_proto.all); in nf_nat_l4proto_unique_tuple() 74 max = ntohs(range->max_proto.all); in nf_nat_l4proto_unique_tuple() 87 off = (ntohs(*portptr) - ntohs(range->base_proto.all)); in nf_nat_l4proto_unique_tuple()
|
D | nf_conntrack_pptp.c | 277 msg = ntohs(ctlh->messageType); in pptp_inbound_pkt() 314 ntohs(cid), ntohs(pcid)); in pptp_inbound_pkt() 330 pr_debug("%s, CID=%X\n", pptp_msg_name[msg], ntohs(cid)); in pptp_inbound_pkt() 349 pr_debug("%s, PCID=%X\n", pptp_msg_name[msg], ntohs(pcid)); in pptp_inbound_pkt() 359 pr_debug("%s, CID=%X\n", pptp_msg_name[msg], ntohs(cid)); in pptp_inbound_pkt() 387 msg, ntohs(cid), ntohs(pcid), info->cstate, info->sstate, in pptp_inbound_pkt() 388 ntohs(info->pns_call_id), ntohs(info->pac_call_id)); in pptp_inbound_pkt() 405 msg = ntohs(ctlh->messageType); in pptp_outbound_pkt() 428 pr_debug("%s, CID=%X\n", pptp_msg_name[msg], ntohs(cid)); in pptp_outbound_pkt() 443 ntohs(cid), ntohs(pcid)); in pptp_outbound_pkt() [all …]
|
D | xt_sctp.c | 71 offset += SCTP_PAD4(ntohs(sch->length)); in match_packet() 135 pr_debug("spt: %d\tdpt: %d\n", ntohs(sh->source), ntohs(sh->dest)); in sctp_mt() 137 return SCCHECK(ntohs(sh->source) >= info->spts[0] in sctp_mt() 138 && ntohs(sh->source) <= info->spts[1], in sctp_mt() 140 SCCHECK(ntohs(sh->dest) >= info->dpts[0] in sctp_mt() 141 && ntohs(sh->dest) <= info->dpts[1], in sctp_mt()
|
D | nf_log_common.c | 49 ntohs(uh->source), ntohs(uh->dest), ntohs(uh->len)); in nf_log_dump_udp_header() 78 ntohs(th->source), ntohs(th->dest)); in nf_log_dump_tcp_header() 86 nf_log_buf_add(m, "WINDOW=%u ", ntohs(th->window)); in nf_log_dump_tcp_header() 108 nf_log_buf_add(m, "URGP=%u ", ntohs(th->urg_ptr)); in nf_log_dump_tcp_header()
|
D | xt_TPROXY.c | 83 iph->protocol, &iph->daddr, ntohs(hp->dest), in tproxy_tg4() 84 &laddr, ntohs(lport), skb->mark); in tproxy_tg4() 91 iph->protocol, &iph->saddr, ntohs(hp->source), in tproxy_tg4() 92 &iph->daddr, ntohs(hp->dest), skb->mark); in tproxy_tg4() 177 tproto, &iph->saddr, ntohs(hp->source), in tproxy_tg6_v1() 178 laddr, ntohs(lport), skb->mark); in tproxy_tg6_v1() 185 tproto, &iph->saddr, ntohs(hp->source), in tproxy_tg6_v1() 186 &iph->daddr, ntohs(hp->dest), skb->mark); in tproxy_tg6_v1()
|
D | nf_conntrack_standalone.c | 52 ntohs(tuple->src.u.icmp.id)); in print_tuple() 56 ntohs(tuple->src.u.tcp.port), in print_tuple() 57 ntohs(tuple->dst.u.tcp.port)); in print_tuple() 62 ntohs(tuple->src.u.udp.port), in print_tuple() 63 ntohs(tuple->dst.u.udp.port)); in print_tuple() 68 ntohs(tuple->src.u.dccp.port), in print_tuple() 69 ntohs(tuple->dst.u.dccp.port)); in print_tuple() 73 ntohs(tuple->src.u.sctp.port), in print_tuple() 74 ntohs(tuple->dst.u.sctp.port)); in print_tuple() 80 ntohs(tuple->src.u.icmp.id)); in print_tuple() [all …]
|
/Linux-v4.19/net/6lowpan/ |
D | nhc_udp.c | 77 ntohs(uh.source), ntohs(uh.dest)); in udp_uncompress() 106 pr_debug("uncompressed UDP length: src = %d", ntohs(uh.len)); in udp_uncompress() 126 if (((ntohs(uh->source) & LOWPAN_NHC_UDP_4BIT_MASK) == in udp_compress() 128 ((ntohs(uh->dest) & LOWPAN_NHC_UDP_4BIT_MASK) == in udp_compress() 135 tmp = ntohs(uh->dest) - LOWPAN_NHC_UDP_4BIT_PORT + in udp_compress() 136 ((ntohs(uh->source) - LOWPAN_NHC_UDP_4BIT_PORT) << 4); in udp_compress() 138 } else if ((ntohs(uh->dest) & LOWPAN_NHC_UDP_8BIT_MASK) == in udp_compress() 147 tmp = ntohs(uh->dest) - LOWPAN_NHC_UDP_8BIT_PORT; in udp_compress() 149 } else if ((ntohs(uh->source) & LOWPAN_NHC_UDP_8BIT_MASK) == in udp_compress() 156 tmp = ntohs(uh->source) - LOWPAN_NHC_UDP_8BIT_PORT; in udp_compress()
|
/Linux-v4.19/net/ipv4/netfilter/ |
D | nf_log_ipv4.c | 64 ntohs(ih->tot_len), ih->tos & IPTOS_TOS_MASK, in dump_ipv4_packet() 65 ih->tos & IPTOS_PREC_MASK, ih->ttl, ntohs(ih->id)); in dump_ipv4_packet() 68 if (ntohs(ih->frag_off) & IP_CE) in dump_ipv4_packet() 70 if (ntohs(ih->frag_off) & IP_DF) in dump_ipv4_packet() 72 if (ntohs(ih->frag_off) & IP_MF) in dump_ipv4_packet() 76 if (ntohs(ih->frag_off) & IP_OFFSET) in dump_ipv4_packet() 77 nf_log_buf_add(m, "FRAG:%u ", ntohs(ih->frag_off) & IP_OFFSET); in dump_ipv4_packet() 103 ntohs(ih->frag_off) & IP_OFFSET, in dump_ipv4_packet() 110 ntohs(ih->frag_off) & IP_OFFSET, in dump_ipv4_packet() 138 if (ntohs(ih->frag_off) & IP_OFFSET) in dump_ipv4_packet() [all …]
|
D | nf_nat_proto_icmp.c | 26 return ntohs(tuple->src.u.icmp.id) >= ntohs(min->icmp.id) && in icmp_in_range() 27 ntohs(tuple->src.u.icmp.id) <= ntohs(max->icmp.id); in icmp_in_range() 41 range_size = ntohs(range->max_proto.icmp.id) - in icmp_unique_tuple() 42 ntohs(range->min_proto.icmp.id) + 1; in icmp_unique_tuple() 48 tuple->src.u.icmp.id = htons(ntohs(range->min_proto.icmp.id) + in icmp_unique_tuple()
|
D | nf_nat_h323.c | 161 &addr.ip, ntohs(port), in set_ras_addr() 163 ntohs(ct->tuplehash[!dir].tuple.dst.u.udp.port)); in set_ras_addr() 205 htons(ntohs(info->rtp_port[i][dir]) + 1); in nat_rtp_rtcp() 220 for (nated_port = ntohs(rtp_exp->tuple.dst.u.udp.port); in nat_rtp_rtcp() 268 ntohs(rtp_exp->tuple.src.u.udp.port), in nat_rtp_rtcp() 270 ntohs(rtp_exp->tuple.dst.u.udp.port)); in nat_rtp_rtcp() 273 ntohs(rtcp_exp->tuple.src.u.udp.port), in nat_rtp_rtcp() 275 ntohs(rtcp_exp->tuple.dst.u.udp.port)); in nat_rtp_rtcp() 288 u_int16_t nated_port = ntohs(port); in nat_t120() 324 ntohs(exp->tuple.src.u.tcp.port), in nat_t120() [all …]
|
/Linux-v4.19/drivers/net/ethernet/qualcomm/rmnet/ |
D | rmnet_map_data.c | 61 if ((ntohs(ip4h->frag_off) & IP_MF) || in rmnet_map_ipv4_dl_csum_trailer() 62 ((ntohs(ip4h->frag_off) & IP_OFFSET) > 0)) { in rmnet_map_ipv4_dl_csum_trailer() 82 csum_value = ~ntohs(csum_trailer->csum_value); in rmnet_map_ipv4_dl_csum_trailer() 88 ntohs(ip4h->tot_len) - ip4h->ihl * 4, in rmnet_map_ipv4_dl_csum_trailer() 90 addend = (__force __be16)ntohs((__force __be16)pseudo_csum); in rmnet_map_ipv4_dl_csum_trailer() 93 addend = (__force __be16)ntohs((__force __be16)*csum_field); in rmnet_map_ipv4_dl_csum_trailer() 112 if (csum_value_final == ntohs((__force __be16)*csum_field)) { in rmnet_map_ipv4_dl_csum_trailer() 144 csum_value = ~ntohs(csum_trailer->csum_value); in rmnet_map_ipv6_dl_csum_trailer() 146 ~ntohs((__force __be16)ip_compute_csum(ip6h, in rmnet_map_ipv6_dl_csum_trailer() 152 ntohs(((struct udphdr *)txporthdr)->len) : in rmnet_map_ipv6_dl_csum_trailer() [all …]
|
/Linux-v4.19/net/netfilter/ipvs/ |
D | ip_vs_ftp.c | 295 &from.ip, ntohs(port), &cp->caddr.ip, 0); in ip_vs_ftp_out() 316 IP_VS_DBG_ADDR(cp->af, &from), ntohs(port), in ip_vs_ftp_out() 357 ntohs(port) >> 8, in ip_vs_ftp_out() 358 ntohs(port) & 0xFF); in ip_vs_ftp_out() 364 ntohs(port)); in ip_vs_ftp_out() 505 IP_VS_DBG(7, "PORT %pI4:%u detected\n", &to.ip, ntohs(port)); in ip_vs_ftp_in() 510 &to.ip, ntohs(port), &cp->vaddr.ip, in ip_vs_ftp_in() 511 ntohs(cp->vport)-1); in ip_vs_ftp_in() 520 IP_VS_DBG_ADDR(cp->af, &to), ntohs(port)); in ip_vs_ftp_in() 525 IP_VS_DBG_ADDR(cp->af, &to), ntohs(port), in ip_vs_ftp_in() [all …]
|
D | ip_vs_conn.c | 311 IP_VS_DBG_ADDR(p->af, p->caddr), ntohs(p->cport), in ip_vs_conn_in_get() 312 IP_VS_DBG_ADDR(p->af, p->vaddr), ntohs(p->vport), in ip_vs_conn_in_get() 395 IP_VS_DBG_ADDR(p->af, p->caddr), ntohs(p->cport), in ip_vs_ct_in_get() 396 IP_VS_DBG_ADDR(p->af, p->vaddr), ntohs(p->vport), in ip_vs_ct_in_get() 437 IP_VS_DBG_ADDR(p->af, p->caddr), ntohs(p->cport), in ip_vs_conn_out_get() 438 IP_VS_DBG_ADDR(p->af, p->vaddr), ntohs(p->vport), in ip_vs_conn_out_get() 611 IP_VS_DBG_ADDR(cp->af, &cp->caddr), ntohs(cp->cport), in ip_vs_bind_dest() 612 IP_VS_DBG_ADDR(cp->af, &cp->vaddr), ntohs(cp->vport), in ip_vs_bind_dest() 613 IP_VS_DBG_ADDR(cp->daf, &cp->daddr), ntohs(cp->dport), in ip_vs_bind_dest() 708 IP_VS_DBG_ADDR(cp->af, &cp->caddr), ntohs(cp->cport), in ip_vs_unbind_dest() [all …]
|
/Linux-v4.19/net/appletalk/ |
D | atalk_proc.c | 74 iface->dev->name, ntohs(iface->address.s_net), in atalk_seq_interface_show() 75 iface->address.s_node, ntohs(iface->nets.nr_firstnet), in atalk_seq_interface_show() 76 ntohs(iface->nets.nr_lastnet), iface->status); in atalk_seq_interface_show() 135 ntohs(rt->gateway.s_net), rt->gateway.s_node, in atalk_seq_route_show() 141 ntohs(rt->target.s_net), rt->target.s_node, in atalk_seq_route_show() 142 ntohs(rt->gateway.s_net), rt->gateway.s_node, in atalk_seq_route_show() 182 s->sk_type, ntohs(at->src_net), at->src_node, at->src_port, in atalk_seq_socket_show() 183 ntohs(at->dest_net), at->dest_node, at->dest_port, in atalk_seq_socket_show()
|
/Linux-v4.19/net/hsr/ |
D | hsr_main.h | 76 return ntohs(ht->path_and_LSDU_size) >> 12; in get_hsr_tag_path() 81 return ntohs(ht->path_and_LSDU_size) & 0x0FFF; in get_hsr_tag_LSDU_size() 87 (ntohs(ht->path_and_LSDU_size) & 0x0FFF) | (path << 12)); in set_hsr_tag_path() 93 (ntohs(ht->path_and_LSDU_size) & 0xF000) | in set_hsr_tag_LSDU_size() 191 return ntohs(hsr_ethhdr->hsr_tag.sequence_nr); in hsr_get_skb_sequence_nr()
|
/Linux-v4.19/drivers/net/slip/ |
D | slhc.c | 253 if (ip->protocol != IPPROTO_TCP || (ntohs(ip->frag_off) & 0x3fff)) { in slhc_compress() 364 deltaS = ntohs(th->urg_ptr); in slhc_compress() 374 if((deltaS = ntohs(th->window) - ntohs(oth->window)) != 0){ in slhc_compress() 400 ntohs(cs->cs_ip.tot_len) == hlen) in slhc_compress() 411 deltaS == ntohs(cs->cs_ip.tot_len) - hlen){ in slhc_compress() 418 if(deltaS == ntohs(cs->cs_ip.tot_len) - hlen){ in slhc_compress() 425 deltaS = ntohs(ip->id) - ntohs(cs->cs_ip.id); in slhc_compress() 547 i = ntohs(ip->tot_len) - hdrlen; in slhc_uncompress() 555 ntohs(ip->tot_len) - hdrlen); in slhc_uncompress() 571 thp->window = htons( ntohs(thp->window) + x); in slhc_uncompress() [all …]
|
/Linux-v4.19/net/ife/ |
D | ife.c | 76 ifehdrln = ntohs(ifehdr->metalen); in ife_decode() 108 tlvlen = ntohs(tlv->len); in __ife_tlv_meta_valid() 135 *dlen = ntohs(tlv->len) - NLA_HDRLEN; in ife_tlv_meta_decode() 136 *attrtype = ntohs(tlv->type); in ife_tlv_meta_decode() 148 u16 tlvlen = ntohs(tlv->len); in ife_tlv_meta_next()
|
/Linux-v4.19/samples/bpf/ |
D | test_probe_write_user_user.c | 47 printf("Server bound to: %s:%d\n", ip, ntohs(serv_addr_in->sin_port)); in main() 60 ip, ntohs(mapped_addr_in->sin_port)); in main() 67 ip, ntohs(tmp_addr_in->sin_port)); in main() 73 ip, ntohs(tmp_addr_in->sin_port)); in main()
|
/Linux-v4.19/include/net/ |
D | nsh.h | 262 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()
|
/Linux-v4.19/net/bridge/netfilter/ |
D | ebt_log.c | 68 pr_cont(" SPT=%u DPT=%u", ntohs(pptr->src), ntohs(pptr->dst)); in print_ports() 89 ntohs(eth_hdr(skb)->h_proto)); in ebt_log_packet() 149 ntohs(ah->ar_hrd), ntohs(ah->ar_pro), in ebt_log_packet() 150 ntohs(ah->ar_op)); in ebt_log_packet()
|
D | ebt_vlan.c | 59 TCI = ntohs(fp->h_vlan_TCI); in ebt_vlan_mt() 97 ntohs(e->ethproto)); in ebt_vlan_mt_check() 153 if ((unsigned short) ntohs(info->encap) < ETH_ZLEN) { in ebt_vlan_mt_check() 155 "minimal\n", ntohs(info->encap)); in ebt_vlan_mt_check()
|
/Linux-v4.19/net/sctp/ |
D | sm_make_chunk.c | 302 chunksize += SCTP_PAD4(ntohs(auth_hmacs->length)); in sctp_make_init() 309 chunksize += SCTP_PAD4(ntohs(auth_chunks->length)); in sctp_make_init() 381 sctp_addto_chunk(retval, ntohs(auth_hmacs->length), in sctp_make_init() 384 sctp_addto_chunk(retval, ntohs(auth_chunks->length), in sctp_make_init() 463 chunksize += ntohs(auth_random->length); in sctp_make_init_ack() 467 chunksize += SCTP_PAD4(ntohs(auth_hmacs->length)); in sctp_make_init_ack() 473 chunksize += SCTP_PAD4(ntohs(auth_chunks->length)); in sctp_make_init_ack() 523 sctp_addto_chunk(retval, ntohs(auth_random->length), in sctp_make_init_ack() 526 sctp_addto_chunk(retval, ntohs(auth_hmacs->length), in sctp_make_init_ack() 529 sctp_addto_chunk(retval, ntohs(auth_chunks->length), in sctp_make_init_ack() [all …]
|
/Linux-v4.19/include/net/netfilter/ |
D | nf_tables_ipv4.h | 17 pkt->xt.fragoff = ntohs(ip->frag_off) & IP_OFFSET; in nft_set_pktinfo_ipv4() 34 len = ntohs(iph->tot_len); in __nft_set_pktinfo_ipv4_validate() 44 pkt->xt.fragoff = ntohs(iph->frag_off) & IP_OFFSET; in __nft_set_pktinfo_ipv4_validate()
|