/linux-master/tools/testing/selftests/net/ |
H A D | tcp_fastopen_backup_key.c | 102 addr4.sin_port = htons(PORT); 109 addr6.sin6_port = htons(PORT); 160 daddr4.sin_port = htons(PORT); 173 daddr6.sin6_port = htons(PORT);
|
H A D | reuseport_dualstack.c | 43 addr4->sin_port = htons(PORT); 49 addr6->sin6_port = htons(PORT); 84 daddr.sin_port = htons(PORT);
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/ |
H A D | mpls.c | 18 act->mpls_push.proto != htons(ETH_P_MPLS_UC)) {
|
/linux-master/net/netfilter/ |
H A D | nft_log.c | 82 case htons(ETH_P_IP): 85 case htons(ETH_P_IPV6): 265 if (nla_put_be16(skb, NFTA_LOG_GROUP, htons(li->u.ulog.group))) 275 htons(li->u.ulog.qthreshold)))
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | sk_assign.c | 198 CHECK(port != htons(CONNECT_PORT), "Expected", "port %u but got %u", 202 CHECK(port != htons(BIND_PORT), "Expected", 227 addr4->sin_port = htons(port); 237 addr6->sin6_port = htons(port);
|
H A D | cls_redirect.c | 255 .eth = { .h_proto = htons(ETH_P_IP) }, 264 .dest = htons(ENCAP_PORT), 460 skel->rodata->ENCAPSULATION_PORT = htons(ENCAP_PORT); 482 skel->rodata->ENCAPSULATION_PORT = htons(ENCAP_PORT); 504 skel->rodata->ENCAPSULATION_PORT = htons(ENCAP_PORT);
|
/linux-master/net/rxrpc/ |
H A D | local_event.c | 66 whdr.serviceId = htons(sp->hdr.serviceId);
|
/linux-master/drivers/net/ethernet/sfc/ |
H A D | tx_tso.c | 149 if (protocol == htons(ETH_P_8021Q)) { 155 if (protocol == htons(ETH_P_IP)) { 158 EFX_WARN_ON_ONCE_PARANOID(protocol != htons(ETH_P_IPV6)); 183 if (st->protocol == htons(ETH_P_IP)) {
|
/linux-master/include/net/netfilter/ |
H A D | nf_flow_table.h | 346 case htons(PPP_IP): 347 return htons(ETH_P_IP); 348 case htons(PPP_IPV6): 349 return htons(ETH_P_IPV6);
|
/linux-master/drivers/infiniband/hw/ocrdma/ |
H A D | ocrdma_ah.c | 128 *((__be16 *)&ipv4) = htons((4 << 12) | (5 << 8) | 131 ipv4.frag_off = htons(IP_DF); 132 ipv4.tot_len = htons(0);
|
/linux-master/include/net/ |
H A D | erspan.h | 197 if (eth->h_proto == htons(ETH_P_8021Q)) { 291 if (eth->h_proto == htons(ETH_P_8021Q)) { 312 md2->sgt = htons(sgt);
|
/linux-master/net/openvswitch/ |
H A D | flow.h | 171 return key->eth.type == htons(ETH_P_IPV6) && 174 (key->tp.src == htons(NDISC_NEIGHBOUR_SOLICITATION) || 175 key->tp.src == htons(NDISC_NEIGHBOUR_ADVERTISEMENT));
|
/linux-master/drivers/net/arcnet/ |
H A D | rfc1051.c | 108 return htons(ETH_P_IP); 110 return htons(ETH_P_ARP); 118 return htons(ETH_P_IP);
|
/linux-master/net/ipv4/ |
H A D | gre_demux.c | 114 if (greh->flags == 0 && tpi->proto == htons(ETH_P_WCCP)) { 131 if ((greh->protocol == htons(ETH_P_ERSPAN) && hdr_len != 4) || 132 greh->protocol == htons(ETH_P_ERSPAN2)) {
|
H A D | ip_tunnel_core.c | 100 if (!raw_proto && inner_proto == htons(ETH_P_TEB)) { 110 skb->protocol = htons(ETH_P_802_2); 225 .un.frag.mtu = htons(mtu), 235 .tot_len = htons(len + sizeof(*niph)), 237 .frag_off = htons(IP_DF), 266 if (mtu < 576 || iph->frag_off != htons(IP_DF)) 327 .payload_len = htons(len), 371 if (offset < 0 || (frag_off & htons(~0x7))) 421 if (skb->protocol == htons(ETH_P_IP)) 425 if (skb->protocol == htons(ETH_P_IPV [all...] |
H A D | ip_output.c | 23 * Mike Kilburn : htons() missing in ip_build_xmit. 116 skb->protocol = htons(ETH_P_IP); 171 iph->frag_off = htons(IP_DF); 375 skb->protocol = htons(ETH_P_IP); 431 skb->protocol = htons(ETH_P_IP); 512 *((__be16 *)iph) = htons((4 << 12) | (5 << 8) | (tos & 0xff)); 514 iph->frag_off = htons(IP_DF); 583 if ((iph->frag_off & htons(IP_DF)) == 0) 613 iph->tot_len = htons(first_len); 614 iph->frag_off = htons(IP_M [all...] |
/linux-master/drivers/net/wireless/intel/ipw2x00/ |
H A D | libipw_tx.c | 125 if (h_proto == htons(ETH_P_AARP) || h_proto == htons(ETH_P_IPX)) 215 if (eth->h_proto != htons(ETH_P_IP)) 285 encrypt = !(ether_type == htons(ETH_P_PAE) && ieee->ieee802_1x) && 292 ieee->drop_unencrypted && ether_type != htons(ETH_P_PAE)) {
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/tc/ |
H A D | ct_fs_smfs.c | 269 if (basic.mask->n_proto != htons(0xFFFF) || 270 (basic.key->n_proto != htons(ETH_P_IP) && basic.key->n_proto != htons(ETH_P_IPV6)) || 281 (ports.mask->src != htons(0xFFFF) || ports.mask->dst != htons(0xFFFF))) {
|
/linux-master/net/xfrm/ |
H A D | xfrm_output.c | 275 bool small_ipv6 = (skb->protocol == htons(ETH_P_IPV6)) && (skb->len <= IPV6_MIN_MTU); 307 0 : (XFRM_MODE_SKB_CB(skb)->frag_off & htons(IP_DF)); 414 skb->protocol = htons(ETH_P_IP); 437 skb->protocol = htons(ETH_P_IPV6); 790 if (!(ip_hdr(skb)->frag_off & htons(IP_DF)) || skb->ignore_df) 797 skb->protocol = htons(ETH_P_IP); 847 skb->protocol = htons(ETH_P_IPV6); 884 case htons(ETH_P_IP): 886 case htons(ETH_P_IPV6): 898 if (skb->protocol == htons(ETH_P_I [all...] |
/linux-master/drivers/net/slip/ |
H A D | slhc.c | 355 || (ip->frag_off & htons(0x4000)) != (cs->cs_ip.frag_off & htons(0x4000)) 570 thp->urg_ptr = htons(x); 577 thp->window = htons( ntohs(thp->window) + x); 597 ip->id = htons (ntohs (ip->id) + x); 599 ip->id = htons (ntohs (ip->id) + 1); 611 ip->tot_len = htons(len);
|
/linux-master/drivers/net/usb/ |
H A D | cdc_mbim.c | 214 case htons(ETH_P_IP): 215 case htons(ETH_P_IPV6): 327 netdev = __vlan_find_dev_deep_rcu(dev->net, htons(ETH_P_8021Q), 369 __be16 proto = htons(ETH_P_802_3); 378 proto = htons(ETH_P_IP); 383 proto = htons(ETH_P_IPV6); 406 __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), tci);
|
/linux-master/drivers/net/ethernet/intel/ice/ |
H A D | ice_arfs.c | 320 if (fk->basic.n_proto == htons(ETH_P_IP)) { 368 if (l3_proto == htons(ETH_P_IP) && l4_proto == IPPROTO_UDP) 370 else if (l3_proto == htons(ETH_P_IP) && l4_proto == IPPROTO_TCP) 372 else if (l3_proto == htons(ETH_P_IPV6) && l4_proto == IPPROTO_UDP) 374 else if (l3_proto == htons(ETH_P_IPV6) && l4_proto == IPPROTO_TCP) 424 if ((n_proto == htons(ETH_P_IP) && !ip_is_fragment(ip_hdr(skb))) || 425 n_proto == htons(ETH_P_IPV6))
|
/linux-master/net/sctp/ |
H A D | sm_make_chunk.c | 152 err.length = htons(len); 237 init.num_outbound_streams = htons(asoc->c.sinit_num_ostreams); 238 init.num_inbound_streams = htons(asoc->c.sinit_max_instreams); 336 sat.param_hdr.length = htons(SCTP_SAT_LEN(num_types)); 348 ext_param.param_hdr.length = htons(sizeof(ext_param) + num_ext); 358 aiparam.param_hdr.length = htons(sizeof(aiparam)); 404 initack.num_outbound_streams = htons(asoc->c.sinit_num_ostreams); 405 initack.num_inbound_streams = htons(asoc->c.sinit_max_instreams); 498 ext_param.param_hdr.length = htons(sizeof(ext_param) + num_ext); 507 aiparam.param_hdr.length = htons(sizeo [all...] |
/linux-master/net/smc/ |
H A D | smc_clc.c | 451 fce_v2x->feature_mask = htons(ini->feature_mask); 818 dclc.hdr.length = htons(send_len); 876 pclc_base->iparea_offset = htons(sizeof(*pclc_smcd)); 904 htons(smc_ism_get_chid(ini->ism_dev[0])); 920 pclc_smcd->v2_ext_offset = htons(v2_ext_offset); 923 v2_ext->feature_mask = htons(SMC_FEATURE_MASK); 940 v2_ext->hdr.smcd_v2_ext_offset = htons(sizeof(*v2_ext) - 953 htons(smc_ism_get_chid(ini->ism_dev[i])); 978 pclc_base->hdr.length = htons(plen); 1052 clc->hdr.length = htons(SMCD_CLC_ACCEPT_CONFIRM_LE [all...] |
/linux-master/drivers/net/ |
H A D | gtp.c | 290 hdr->length = htons(len_pkt - len_hdr); 345 htons(GTP0_PORT), htons(GTP0_PORT), 465 hdr->length = htons(len_pkt - len_hdr); 471 hdr->length = htons(len_pkt - len_hdr); 527 htons(GTP1U_PORT), htons(GTP1U_PORT), 730 gtp0->length = htons(payload_len); 731 gtp0->seq = htons((atomic_inc_return(&pctx->tx_seq) - 1) % 0xffff); 732 gtp0->flow = htons(pct [all...] |