/kernel/linux/linux-5.10/net/ipv6/netfilter/ |
H A D | ip6t_frag.c | 57 pr_debug("OFFSET %04X ", ntohs(fh->frag_off) & ~0x7); in frag_mt6() 58 pr_debug("RES %02X %04X", fh->reserved, ntohs(fh->frag_off) & 0x6); in frag_mt6() 69 ntohs(fh->frag_off) & 0x6, in frag_mt6() 71 (fh->reserved || (ntohs(fh->frag_off) & 0x06)))); in frag_mt6() 74 ntohs(fh->frag_off) & ~0x7, in frag_mt6() 76 (ntohs(fh->frag_off) & ~0x7))); in frag_mt6() 79 ntohs(fh->frag_off) & IP6_MF, in frag_mt6() 81 !((ntohs(fh->frag_off) & IP6_MF)))); in frag_mt6() 84 ntohs(fh->frag_off) & IP6_MF, in frag_mt6() 86 (ntohs(f in frag_mt6() [all...] |
/kernel/linux/linux-6.6/net/ipv6/netfilter/ |
H A D | ip6t_frag.c | 57 pr_debug("OFFSET %04X ", ntohs(fh->frag_off) & ~0x7); in frag_mt6() 58 pr_debug("RES %02X %04X", fh->reserved, ntohs(fh->frag_off) & 0x6); in frag_mt6() 69 ntohs(fh->frag_off) & 0x6, in frag_mt6() 71 (fh->reserved || (ntohs(fh->frag_off) & 0x06)))); in frag_mt6() 74 ntohs(fh->frag_off) & ~0x7, in frag_mt6() 76 (ntohs(fh->frag_off) & ~0x7))); in frag_mt6() 79 ntohs(fh->frag_off) & IP6_MF, in frag_mt6() 81 !((ntohs(fh->frag_off) & IP6_MF)))); in frag_mt6() 84 ntohs(fh->frag_off) & IP6_MF, in frag_mt6() 86 (ntohs(f in frag_mt6() [all...] |
/kernel/linux/linux-5.10/net/6lowpan/ |
H A D | nhc_udp.c | 72 ntohs(uh.source), ntohs(uh.dest)); in udp_uncompress() 101 pr_debug("uncompressed UDP length: src = %d", ntohs(uh.len)); in udp_uncompress() 121 if (((ntohs(uh->source) & LOWPAN_NHC_UDP_4BIT_MASK) == in udp_compress() 123 ((ntohs(uh->dest) & LOWPAN_NHC_UDP_4BIT_MASK) == in udp_compress() 130 tmp = ntohs(uh->dest) - LOWPAN_NHC_UDP_4BIT_PORT + in udp_compress() 131 ((ntohs(uh->source) - LOWPAN_NHC_UDP_4BIT_PORT) << 4); in udp_compress() 133 } else if ((ntohs(uh->dest) & LOWPAN_NHC_UDP_8BIT_MASK) == in udp_compress() 142 tmp = ntohs(uh->dest) - LOWPAN_NHC_UDP_8BIT_PORT; in udp_compress() 144 } else if ((ntohs(u in udp_compress() [all...] |
/kernel/linux/linux-6.6/net/6lowpan/ |
H A D | nhc_udp.c | 71 ntohs(uh.source), ntohs(uh.dest)); in udp_uncompress() 100 pr_debug("uncompressed UDP length: src = %d", ntohs(uh.len)); in udp_uncompress() 120 if (((ntohs(uh->source) & LOWPAN_NHC_UDP_4BIT_MASK) == in udp_compress() 122 ((ntohs(uh->dest) & LOWPAN_NHC_UDP_4BIT_MASK) == in udp_compress() 129 tmp = ntohs(uh->dest) - LOWPAN_NHC_UDP_4BIT_PORT + in udp_compress() 130 ((ntohs(uh->source) - LOWPAN_NHC_UDP_4BIT_PORT) << 4); in udp_compress() 132 } else if ((ntohs(uh->dest) & LOWPAN_NHC_UDP_8BIT_MASK) == in udp_compress() 141 tmp = ntohs(uh->dest) - LOWPAN_NHC_UDP_8BIT_PORT; in udp_compress() 143 } else if ((ntohs(u in udp_compress() [all...] |
/kernel/linux/linux-5.10/net/ipv4/netfilter/ |
H A D | nf_log_ipv4.c | 61 ntohs(ih->tot_len), ih->tos & IPTOS_TOS_MASK, in dump_ipv4_packet() 62 ih->tos & IPTOS_PREC_MASK, ih->ttl, ntohs(ih->id)); in dump_ipv4_packet() 65 if (ntohs(ih->frag_off) & IP_CE) in dump_ipv4_packet() 67 if (ntohs(ih->frag_off) & IP_DF) in dump_ipv4_packet() 69 if (ntohs(ih->frag_off) & IP_MF) in dump_ipv4_packet() 73 if (ntohs(ih->frag_off) & IP_OFFSET) in dump_ipv4_packet() 74 nf_log_buf_add(m, "FRAG:%u ", ntohs(ih->frag_off) & IP_OFFSET); in dump_ipv4_packet() 100 ntohs(ih->frag_off) & IP_OFFSET, in dump_ipv4_packet() 107 ntohs(ih->frag_off) & IP_OFFSET, in dump_ipv4_packet() 135 if (ntohs(i in dump_ipv4_packet() [all...] |
H A D | nf_nat_h323.c | 160 &addr.ip, ntohs(port), in set_ras_addr() 162 ntohs(ct->tuplehash[!dir].tuple.dst.u.udp.port)); in set_ras_addr() 204 htons(ntohs(info->rtp_port[i][dir]) + 1); in nat_rtp_rtcp() 219 for (nated_port = ntohs(rtp_exp->tuple.dst.u.udp.port); in nat_rtp_rtcp() 267 ntohs(rtp_exp->tuple.src.u.udp.port), in nat_rtp_rtcp() 269 ntohs(rtp_exp->tuple.dst.u.udp.port)); in nat_rtp_rtcp() 272 ntohs(rtcp_exp->tuple.src.u.udp.port), in nat_rtp_rtcp() 274 ntohs(rtcp_exp->tuple.dst.u.udp.port)); in nat_rtp_rtcp() 287 u_int16_t nated_port = ntohs(port); in nat_t120() 323 ntohs(ex in nat_t120() [all...] |
/kernel/linux/linux-6.6/net/netfilter/ |
H A D | nf_log_syslog.c | 57 nf_log_buf_add(m, "VPROTO=%04x VID=%u ", ntohs(skb->vlan_proto), vid); in nf_log_dump_vlan() 86 ntohs(eth_hdr(skb)->h_proto)); in dump_arp_packet() 90 ntohs(ah->ar_hrd), ntohs(ah->ar_pro), ntohs(ah->ar_op)); in dump_arp_packet() 207 ntohs(th->source), ntohs(th->dest)); in nf_log_dump_tcp_header() 215 nf_log_buf_add(m, "WINDOW=%u ", ntohs(th->window)); in nf_log_dump_tcp_header() 237 nf_log_buf_add(m, "URGP=%u ", ntohs(th->urg_ptr)); in nf_log_dump_tcp_header() 291 ntohs(u in nf_log_dump_udp_header() [all...] |
H A D | nf_conntrack_pptp.c | 264 msg = ntohs(ctlh->messageType); in pptp_inbound_pkt() 301 ntohs(cid), ntohs(pcid)); in pptp_inbound_pkt() 317 pr_debug("%s, CID=%X\n", pptp_msg_name(msg), ntohs(cid)); in pptp_inbound_pkt() 336 pr_debug("%s, PCID=%X\n", pptp_msg_name(msg), ntohs(pcid)); in pptp_inbound_pkt() 346 pr_debug("%s, CID=%X\n", pptp_msg_name(msg), ntohs(cid)); in pptp_inbound_pkt() 373 msg, ntohs(cid), ntohs(pcid), info->cstate, info->sstate, in pptp_inbound_pkt() 374 ntohs(info->pns_call_id), ntohs(inf in pptp_inbound_pkt() [all...] |
H A 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()
|
/kernel/linux/linux-6.6/net/ipv4/netfilter/ |
H A D | nf_nat_h323.c | 160 &addr.ip, ntohs(port), in set_ras_addr() 162 ntohs(ct->tuplehash[!dir].tuple.dst.u.udp.port)); in set_ras_addr() 204 htons(ntohs(info->rtp_port[i][dir]) + 1); in nat_rtp_rtcp() 219 for (nated_port = ntohs(rtp_exp->tuple.dst.u.udp.port); in nat_rtp_rtcp() 267 ntohs(rtp_exp->tuple.src.u.udp.port), in nat_rtp_rtcp() 269 ntohs(rtp_exp->tuple.dst.u.udp.port)); in nat_rtp_rtcp() 272 ntohs(rtcp_exp->tuple.src.u.udp.port), in nat_rtp_rtcp() 274 ntohs(rtcp_exp->tuple.dst.u.udp.port)); in nat_rtp_rtcp() 287 u_int16_t nated_port = ntohs(port); in nat_t120() 310 ntohs(ex in nat_t120() [all...] |
/kernel/linux/linux-5.10/net/netfilter/ |
H A D | nf_conntrack_pptp.c | 286 msg = ntohs(ctlh->messageType); in pptp_inbound_pkt() 323 ntohs(cid), ntohs(pcid)); in pptp_inbound_pkt() 339 pr_debug("%s, CID=%X\n", pptp_msg_name(msg), ntohs(cid)); in pptp_inbound_pkt() 358 pr_debug("%s, PCID=%X\n", pptp_msg_name(msg), ntohs(pcid)); in pptp_inbound_pkt() 368 pr_debug("%s, CID=%X\n", pptp_msg_name(msg), ntohs(cid)); in pptp_inbound_pkt() 396 msg, ntohs(cid), ntohs(pcid), info->cstate, info->sstate, in pptp_inbound_pkt() 397 ntohs(info->pns_call_id), ntohs(inf in pptp_inbound_pkt() [all...] |
H A D | nf_log_common.c | 46 ntohs(uh->source), ntohs(uh->dest), ntohs(uh->len)); in nf_log_dump_udp_header() 75 ntohs(th->source), ntohs(th->dest)); in nf_log_dump_tcp_header() 83 nf_log_buf_add(m, "WINDOW=%u ", ntohs(th->window)); in nf_log_dump_tcp_header() 105 nf_log_buf_add(m, "URGP=%u ", ntohs(th->urg_ptr)); in nf_log_dump_tcp_header() 182 nf_log_buf_add(m, "VPROTO=%04x VID=%u ", ntohs(skb->vlan_proto), vid); in nf_log_dump_vlan()
|
H A D | xt_sctp.c | 72 offset += SCTP_PAD4(ntohs(sch->length)); in match_packet() 136 pr_debug("spt: %d\tdpt: %d\n", ntohs(sh->source), ntohs(sh->dest)); in sctp_mt() 138 return SCCHECK(ntohs(sh->source) >= info->spts[0] in sctp_mt() 139 && ntohs(sh->source) <= info->spts[1], in sctp_mt() 141 SCCHECK(ntohs(sh->dest) >= info->dpts[0] in sctp_mt() 142 && ntohs(sh->dest) <= info->dpts[1], in sctp_mt()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/qualcomm/rmnet/ |
H A D | rmnet_map_data.c | 52 if ((ntohs(ip4h->frag_off) & IP_MF) || in rmnet_map_ipv4_dl_csum_trailer() 53 ((ntohs(ip4h->frag_off) & IP_OFFSET) > 0)) { in rmnet_map_ipv4_dl_csum_trailer() 73 csum_value = ~ntohs(csum_trailer->csum_value); in rmnet_map_ipv4_dl_csum_trailer() 79 ntohs(ip4h->tot_len) - ip4h->ihl * 4, in rmnet_map_ipv4_dl_csum_trailer() 81 addend = (__force __be16)ntohs((__force __be16)pseudo_csum); in rmnet_map_ipv4_dl_csum_trailer() 84 addend = (__force __be16)ntohs((__force __be16)*csum_field); in rmnet_map_ipv4_dl_csum_trailer() 103 if (csum_value_final == ntohs((__force __be16)*csum_field)) { in rmnet_map_ipv4_dl_csum_trailer() 135 csum_value = ~ntohs(csum_trailer->csum_value); in rmnet_map_ipv6_dl_csum_trailer() 137 ~ntohs((__force __be16)ip_compute_csum(ip6h, in rmnet_map_ipv6_dl_csum_trailer() 143 ntohs(((struc in rmnet_map_ipv6_dl_csum_trailer() [all...] |
/kernel/linux/linux-5.10/include/net/netfilter/ |
H A 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() 69 len = ntohs(iph->tot_len); in nft_set_pktinfo_ipv4_ingress() 81 pkt->xt.fragoff = ntohs(iph->frag_off) & IP_OFFSET; in nft_set_pktinfo_ipv4_ingress()
|
/kernel/linux/linux-5.10/net/appletalk/ |
H A D | atalk_proc.c | 71 iface->dev->name, ntohs(iface->address.s_net), in atalk_seq_interface_show() 72 iface->address.s_node, ntohs(iface->nets.nr_firstnet), in atalk_seq_interface_show() 73 ntohs(iface->nets.nr_lastnet), iface->status); in atalk_seq_interface_show() 132 ntohs(rt->gateway.s_net), rt->gateway.s_node, in atalk_seq_route_show() 138 ntohs(rt->target.s_net), rt->target.s_node, in atalk_seq_route_show() 139 ntohs(rt->gateway.s_net), rt->gateway.s_node, in atalk_seq_route_show() 179 s->sk_type, ntohs(at->src_net), at->src_node, at->src_port, in atalk_seq_socket_show() 180 ntohs(at->dest_net), at->dest_node, at->dest_port, in atalk_seq_socket_show()
|
/kernel/linux/linux-5.10/net/hsr/ |
H A D | hsr_main.h | 77 htons((ntohs(ht->path_and_LSDU_size) & 0x0FFF) | (path << 12)); in set_hsr_tag_path() 82 ht->path_and_LSDU_size = htons((ntohs(ht->path_and_LSDU_size) & in set_hsr_tag_LSDU_size() 154 return ntohs(rct->lan_id_and_LSDU_size) & 0x0FFF; in get_prp_LSDU_size() 159 rct->lan_id_and_LSDU_size = htons((ntohs(rct->lan_id_and_LSDU_size) & in set_prp_lan_id() 164 rct->lan_id_and_LSDU_size = htons((ntohs(rct->lan_id_and_LSDU_size) & in set_prp_LSDU_size() 238 return ntohs(hsr_ethhdr->hsr_tag.sequence_nr); in hsr_get_skb_sequence_nr() 256 return ntohs(rct->sequence_nr); in prp_get_skb_sequence_nr() 261 return ntohs(rct->lan_id_and_LSDU_size) >> 12; in get_prp_lan_id()
|
/kernel/linux/linux-6.6/net/appletalk/ |
H A D | atalk_proc.c | 71 iface->dev->name, ntohs(iface->address.s_net), in atalk_seq_interface_show() 72 iface->address.s_node, ntohs(iface->nets.nr_firstnet), in atalk_seq_interface_show() 73 ntohs(iface->nets.nr_lastnet), iface->status); in atalk_seq_interface_show() 132 ntohs(rt->gateway.s_net), rt->gateway.s_node, in atalk_seq_route_show() 138 ntohs(rt->target.s_net), rt->target.s_node, in atalk_seq_route_show() 139 ntohs(rt->gateway.s_net), rt->gateway.s_node, in atalk_seq_route_show() 179 s->sk_type, ntohs(at->src_net), at->src_node, at->src_port, in atalk_seq_socket_show() 180 ntohs(at->dest_net), at->dest_node, at->dest_port, in atalk_seq_socket_show()
|
/kernel/linux/linux-5.10/net/netfilter/ipvs/ |
H A D | ip_vs_ftp.c | 289 &from.ip, ntohs(port), &cp->caddr.ip, 0); in ip_vs_ftp_out() 310 IP_VS_DBG_ADDR(cp->af, &from), ntohs(port), in ip_vs_ftp_out() 351 ntohs(port) >> 8, in ip_vs_ftp_out() 352 ntohs(port) & 0xFF); in ip_vs_ftp_out() 358 ntohs(port)); in ip_vs_ftp_out() 499 IP_VS_DBG(7, "PORT %pI4:%u detected\n", &to.ip, ntohs(port)); in ip_vs_ftp_in() 504 &to.ip, ntohs(port), &cp->vaddr.ip, in ip_vs_ftp_in() 505 ntohs(cp->vport)-1); in ip_vs_ftp_in() 514 IP_VS_DBG_ADDR(cp->af, &to), ntohs(port)); in ip_vs_ftp_in() 519 IP_VS_DBG_ADDR(cp->af, &to), ntohs(por in ip_vs_ftp_in() [all...] |
H A D | ip_vs_conn.c | 306 IP_VS_DBG_ADDR(p->af, p->caddr), ntohs(p->cport), in ip_vs_conn_in_get() 307 IP_VS_DBG_ADDR(p->af, p->vaddr), ntohs(p->vport), in ip_vs_conn_in_get() 390 IP_VS_DBG_ADDR(p->af, p->caddr), ntohs(p->cport), in ip_vs_ct_in_get() 391 IP_VS_DBG_ADDR(p->af, p->vaddr), ntohs(p->vport), in ip_vs_ct_in_get() 444 IP_VS_DBG_ADDR(p->af, p->caddr), ntohs(p->cport), in ip_vs_conn_out_get() 445 IP_VS_DBG_ADDR(p->af, p->vaddr), ntohs(p->vport), in ip_vs_conn_out_get() 618 IP_VS_DBG_ADDR(cp->af, &cp->caddr), ntohs(cp->cport), in ip_vs_bind_dest() 619 IP_VS_DBG_ADDR(cp->af, &cp->vaddr), ntohs(cp->vport), in ip_vs_bind_dest() 620 IP_VS_DBG_ADDR(cp->daf, &cp->daddr), ntohs(cp->dport), in ip_vs_bind_dest() 715 IP_VS_DBG_ADDR(cp->af, &cp->caddr), ntohs(c in ip_vs_unbind_dest() [all...] |
/kernel/linux/linux-6.6/net/netfilter/ipvs/ |
H A D | ip_vs_ftp.c | 289 &from.ip, ntohs(port), &cp->caddr.ip, 0); in ip_vs_ftp_out() 310 IP_VS_DBG_ADDR(cp->af, &from), ntohs(port), in ip_vs_ftp_out() 351 ntohs(port) >> 8, in ip_vs_ftp_out() 352 ntohs(port) & 0xFF); in ip_vs_ftp_out() 358 ntohs(port)); in ip_vs_ftp_out() 499 IP_VS_DBG(7, "PORT %pI4:%u detected\n", &to.ip, ntohs(port)); in ip_vs_ftp_in() 504 &to.ip, ntohs(port), &cp->vaddr.ip, in ip_vs_ftp_in() 505 ntohs(cp->vport)-1); in ip_vs_ftp_in() 514 IP_VS_DBG_ADDR(cp->af, &to), ntohs(port)); in ip_vs_ftp_in() 519 IP_VS_DBG_ADDR(cp->af, &to), ntohs(por in ip_vs_ftp_in() [all...] |
H A D | ip_vs_conn.c | 305 IP_VS_DBG_ADDR(p->af, p->caddr), ntohs(p->cport), in ip_vs_conn_in_get() 306 IP_VS_DBG_ADDR(p->af, p->vaddr), ntohs(p->vport), in ip_vs_conn_in_get() 389 IP_VS_DBG_ADDR(p->af, p->caddr), ntohs(p->cport), in ip_vs_ct_in_get() 390 IP_VS_DBG_ADDR(p->af, p->vaddr), ntohs(p->vport), in ip_vs_ct_in_get() 443 IP_VS_DBG_ADDR(p->af, p->caddr), ntohs(p->cport), in ip_vs_conn_out_get() 444 IP_VS_DBG_ADDR(p->af, p->vaddr), ntohs(p->vport), in ip_vs_conn_out_get() 617 IP_VS_DBG_ADDR(cp->af, &cp->caddr), ntohs(cp->cport), in ip_vs_bind_dest() 618 IP_VS_DBG_ADDR(cp->af, &cp->vaddr), ntohs(cp->vport), in ip_vs_bind_dest() 619 IP_VS_DBG_ADDR(cp->daf, &cp->daddr), ntohs(cp->dport), in ip_vs_bind_dest() 714 IP_VS_DBG_ADDR(cp->af, &cp->caddr), ntohs(c in ip_vs_unbind_dest() [all...] |
/kernel/linux/linux-6.6/net/sctp/ |
H A D | sm_make_chunk.c | 288 chunksize += SCTP_PAD4(ntohs(auth_hmacs->length)); in sctp_make_init() 295 chunksize += SCTP_PAD4(ntohs(auth_chunks->length)); in sctp_make_init() 368 sctp_addto_chunk(retval, ntohs(auth_hmacs->length), in sctp_make_init() 371 sctp_addto_chunk(retval, ntohs(auth_chunks->length), in sctp_make_init() 450 chunksize += ntohs(auth_random->length); in sctp_make_init_ack() 454 chunksize += SCTP_PAD4(ntohs(auth_hmacs->length)); in sctp_make_init_ack() 460 chunksize += SCTP_PAD4(ntohs(auth_chunks->length)); in sctp_make_init_ack() 513 sctp_addto_chunk(retval, ntohs(auth_random->length), in sctp_make_init_ack() 516 sctp_addto_chunk(retval, ntohs(auth_hmacs->length), in sctp_make_init_ack() 519 sctp_addto_chunk(retval, ntohs(auth_chunk in sctp_make_init_ack() [all...] |
/kernel/linux/linux-5.10/net/sctp/ |
H A D | sm_make_chunk.c | 288 chunksize += SCTP_PAD4(ntohs(auth_hmacs->length)); in sctp_make_init() 295 chunksize += SCTP_PAD4(ntohs(auth_chunks->length)); in sctp_make_init() 368 sctp_addto_chunk(retval, ntohs(auth_hmacs->length), in sctp_make_init() 371 sctp_addto_chunk(retval, ntohs(auth_chunks->length), in sctp_make_init() 450 chunksize += ntohs(auth_random->length); in sctp_make_init_ack() 454 chunksize += SCTP_PAD4(ntohs(auth_hmacs->length)); in sctp_make_init_ack() 460 chunksize += SCTP_PAD4(ntohs(auth_chunks->length)); in sctp_make_init_ack() 513 sctp_addto_chunk(retval, ntohs(auth_random->length), in sctp_make_init_ack() 516 sctp_addto_chunk(retval, ntohs(auth_hmacs->length), in sctp_make_init_ack() 519 sctp_addto_chunk(retval, ntohs(auth_chunk in sctp_make_init_ack() [all...] |
/kernel/linux/linux-6.6/net/hsr/ |
H A D | hsr_main.h | 64 htons((ntohs(ht->path_and_LSDU_size) & 0x0FFF) | (path << 12)); in set_hsr_tag_path() 69 ht->path_and_LSDU_size = htons((ntohs(ht->path_and_LSDU_size) & in set_hsr_tag_LSDU_size() 145 return ntohs(rct->lan_id_and_LSDU_size) & 0x0FFF; in get_prp_LSDU_size() 150 rct->lan_id_and_LSDU_size = htons((ntohs(rct->lan_id_and_LSDU_size) & in set_prp_lan_id() 155 rct->lan_id_and_LSDU_size = htons((ntohs(rct->lan_id_and_LSDU_size) & in set_prp_LSDU_size() 232 return ntohs(hsr_ethhdr->hsr_tag.sequence_nr); in hsr_get_skb_sequence_nr() 250 return ntohs(rct->sequence_nr); in prp_get_skb_sequence_nr()
|