Searched refs:htons (Results 176 - 200 of 963) sorted by relevance

1234567891011>>

/linux-master/drivers/net/wan/
H A Dhdlc_ppp.c145 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 Dgdm_lte.c139 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 Dnf_flow_table_ip.c154 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 Dnf_tables_trace.c60 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 Den_arfs.c501 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 Dip_tunnel.c533 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 Dipip.c202 .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 Dmsg_zerocopy.c270 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 Dstress_reuseport_listen.c33 sa6.sin6_port = htons(IP6_LPORT);
/linux-master/net/core/
H A Dlwt_bpf.c90 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 Dipvlan_core.c141 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 Dip_set_bitmap_port.c89 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 Dfm10k_main.c469 __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 Dvlan_netlink.c64 case htons(ETH_P_8021Q):
65 case htons(ETH_P_8021AD):
169 proto = htons(ETH_P_8021Q);
/linux-master/net/bridge/netfilter/
H A Debt_vlan.c83 if (e->ethproto != htons(ETH_P_8021Q)) {
/linux-master/net/802/
H A Dfc.c53 fcllc->ethertype = htons(type);
/linux-master/drivers/net/xen-netback/
H A Dhash.c164 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 Dip_vs_proto_udp.c181 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 Dtc_tun_gre.c42 greh->protocol = htons(ETH_P_TEB);
/linux-master/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_tc_u32.c167 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 Dhdlc.h112 return htons(ETH_P_HDLC);
/linux-master/tools/testing/selftests/bpf/
H A Dtest_sock.c433 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 Dfmvj18x_cs.c783 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 Dprobe_user.c54 in->sin_port = htons(5555);
/linux-master/drivers/net/ethernet/marvell/prestera/
H A Dprestera_matchall.c88 if (protocol != htons(ETH_P_ALL))

Completed in 208 milliseconds

1234567891011>>