/linux-master/drivers/net/wan/ |
H A D | hdlc_ppp.c | 145 return htons(ETH_P_HDLC); 148 return htons(ETH_P_HDLC); 153 return htons(ETH_P_IP); 157 return htons(ETH_P_IPV6); 160 return htons(ETH_P_HDLC); 180 data->protocol = htons(PID_IP); 183 data->protocol = htons(PID_IPV6); 188 data->protocol = htons(type); 230 cp->len = htons(sizeof(struct cp_header) + magic_len + len); 253 skb->protocol = htons(ETH_P_HDL [all...] |
/linux-master/drivers/staging/gdm724x/ |
H A D | gdm_lte.c | 139 arp_out->ar_op = htons(ARPOP_REPLY); 295 ipv6_out.payload_len = htons(sizeof(struct icmp6hdr) + 635 vlan_eth.h_vlan_TCI = htons(nic->vlan_id); 636 vlan_eth.h_vlan_proto = htons(ETH_P_8021Q); 642 eth.h_proto = htons(ETH_P_ARP); 643 vlan_eth.h_vlan_encapsulated_proto = htons(ETH_P_ARP); 647 eth.h_proto = htons(ETH_P_IP); 648 vlan_eth.h_vlan_encapsulated_proto = htons(ETH_P_IP); 650 eth.h_proto = htons(ETH_P_IPV6); 651 vlan_eth.h_vlan_encapsulated_proto = htons(ETH_P_IPV [all...] |
/linux-master/net/netfilter/ |
H A D | nf_flow_table_ip.c | 154 case htons(ETH_P_8021Q): 159 case htons(ETH_P_PPP_SES): 283 case htons(ETH_P_8021Q): 290 case htons(ETH_P_PPP_SES): function 314 case htons(ETH_P_8021Q): 320 case htons(ETH_P_PPP_SES): 353 if (skb->protocol != htons(ETH_P_IP) && 354 !nf_flow_skb_encap_protocol(skb, htons(ETH_P_IP), &ctx->offset)) 695 if (skb->protocol != htons(ETH_P_IPV6) && 696 !nf_flow_skb_encap_protocol(skb, htons(ETH_P_IPV [all...] |
H A D | nf_tables_trace.c | 60 veth.h_vlan_TCI = htons(skb_vlan_tag_get(skb)); 76 htons(indev->type))) 86 htons(outdev->type)))
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_arfs.c | 501 if (etype == htons(ETH_P_IP) && ip_proto == IPPROTO_TCP) 503 if (etype == htons(ETH_P_IP) && ip_proto == IPPROTO_UDP) 505 if (etype == htons(ETH_P_IPV6) && ip_proto == IPPROTO_TCP) 507 if (etype == htons(ETH_P_IPV6) && ip_proto == IPPROTO_UDP) 565 if (tuple->etype == htons(ETH_P_IP)) { 678 if (tuple->etype == htons(ETH_P_IP)) { 705 if (tuple->etype == htons(ETH_P_IP)) 708 if (tuple->etype == htons(ETH_P_IPV6)) 744 if (fk.basic.n_proto != htons(ETH_P_IP) && 745 fk.basic.n_proto != htons(ETH_P_IPV [all...] |
/linux-master/net/ipv4/ |
H A D | ip_tunnel.c | 533 if (skb->protocol == htons(ETH_P_IP)) { 535 (inner_iph->frag_off & htons(IP_DF)) && 542 else if (skb->protocol == htons(ETH_P_IPV6)) { 606 if (skb->protocol == htons(ETH_P_IP)) 608 else if (skb->protocol == htons(ETH_P_IPV6)) 642 df = htons(IP_DF); 652 if (skb->protocol == htons(ETH_P_IP)) 654 else if (skb->protocol == htons(ETH_P_IPV6)) 720 } else if (payload_protocol == htons(ETH_P_IP)) { 725 else if (payload_protocol == htons(ETH_P_IPV [all...] |
H A D | ipip.c | 202 .proto = htons(ETH_P_IP), 208 .proto = htons(ETH_P_MPLS_UC), 285 case htons(ETH_P_IP): 289 case htons(ETH_P_MPLS_UC): 338 p->iph.ihl != 5 || (p->iph.frag_off & htons(~IP_DF))) 522 !!(parm->iph.frag_off & htons(IP_DF))) ||
|
/linux-master/tools/testing/selftests/net/ |
H A D | msg_zerocopy.c | 270 iph->tot_len = htons(sizeof(*iph) + payload_len); 284 ip6h->payload_len = htons(payload_len); 304 addr4->sin_port = htons(cfg_port); 312 addr6->sin6_port = htons(cfg_port); 503 eth.h_proto = htons(proto); 513 laddr.sll_protocol = htons(proto);
|
H A D | stress_reuseport_listen.c | 33 sa6.sin6_port = htons(IP6_LPORT);
|
/linux-master/net/core/ |
H A D | lwt_bpf.c | 90 if (skb->protocol == htons(ETH_P_IP)) { 99 } else if (skb->protocol == htons(ETH_P_IPV6)) { 183 if (skb->protocol == htons(ETH_P_IP)) 185 else if (skb->protocol == htons(ETH_P_IPV6)) 636 skb->protocol = htons(ETH_P_IP); 643 skb->protocol = htons(ETH_P_IPV6);
|
/linux-master/drivers/net/ipvlan/ |
H A D | ipvlan_core.c | 141 case htons(ETH_P_ARP): { function 152 case htons(ETH_P_IP): { function 171 case htons(ETH_P_IPV6): { function 537 if (skb->protocol == htons(ETH_P_IPV6)) 539 else if (skb->protocol == htons(ETH_P_IP)) 553 if (skb->protocol == htons(ETH_P_PAUSE)) {
|
/linux-master/net/netfilter/ipset/ |
H A D | ip_set_bitmap_port.c | 89 htons(map->first_port + id)); 95 return nla_put_net16(skb, IPSET_ATTR_PORT, htons(map->first_port)) || 96 nla_put_net16(skb, IPSET_ATTR_PORT_TO, htons(map->last_port));
|
/linux-master/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_main.c | 469 __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vid); 471 __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), 646 #define FM10K_NVGRE_RESERVED0_FLAGS htons(0x9FFF) 647 #define NVGRE_TNI htons(0x2000) 660 if (vlan_get_protocol(skb) != htons(ETH_P_IP)) 683 skb->inner_protocol != htons(ETH_P_TEB)) 687 case htons(ETH_P_IP): 690 case htons(ETH_P_IPV6): 712 case htons(ETH_P_IP): 715 case htons(ETH_P_IPV [all...] |
/linux-master/net/8021q/ |
H A D | vlan_netlink.c | 64 case htons(ETH_P_8021Q): 65 case htons(ETH_P_8021AD): 169 proto = htons(ETH_P_8021Q);
|
/linux-master/net/bridge/netfilter/ |
H A D | ebt_vlan.c | 83 if (e->ethproto != htons(ETH_P_8021Q)) {
|
/linux-master/net/802/ |
H A D | fc.c | 53 fcllc->ethertype = htons(type);
|
/linux-master/drivers/net/xen-netback/ |
H A D | hash.c | 164 case htons(ETH_P_IP): 171 case htons(ETH_P_IPV6): 190 case htons(ETH_P_IP): function 214 case htons(ETH_P_IPV6): function
|
/linux-master/net/netfilter/ipvs/ |
H A D | ip_vs_proto_udp.c | 181 htons(oldlen), 182 htons(skb->len - udphoff)); 265 htons(oldlen), 266 htons(skb->len - udphoff));
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | tc_tun_gre.c | 42 greh->protocol = htons(ETH_P_TEB);
|
/linux-master/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_tc_u32.c | 167 if (protocol != htons(ETH_P_IP) && protocol != htons(ETH_P_IPV6)) 170 inet_family = (protocol == htons(ETH_P_IPV6)) ? PF_INET6 : PF_INET; 205 if (protocol == htons(ETH_P_IPV6)) {
|
/linux-master/include/linux/ |
H A D | hdlc.h | 112 return htons(ETH_P_HDLC);
|
/linux-master/tools/testing/selftests/bpf/ |
H A D | test_sock.c | 433 addr4->sin_port = htons(port); 440 addr6->sin6_port = htons(port); 462 addr4->sin_port = htons(port_retry); 464 addr6->sin6_port = htons(port_retry);
|
/linux-master/drivers/net/ethernet/fujitsu/ |
H A D | fmvj18x_cs.c | 783 htons(inw(ioaddr + TX_STATUS)), 788 htons(inw(ioaddr + 0)), htons(inw(ioaddr + 2)), 789 htons(inw(ioaddr + 4)), htons(inw(ioaddr + 6)), 790 htons(inw(ioaddr + 8)), htons(inw(ioaddr + 10)), 791 htons(inw(ioaddr + 12)), htons(inw(ioaddr + 14)));
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | probe_user.c | 54 in->sin_port = htons(5555);
|
/linux-master/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_matchall.c | 88 if (protocol != htons(ETH_P_ALL))
|