Searched refs:htons (Results 151 - 175 of 962) sorted by last modified time

1234567891011>>

/linux-master/net/core/
H A Ddev.c569 if (pt->type == htons(ETH_P_ALL))
3393 if (type == htons(ETH_P_TEB)) {
3529 if (!(iph->frag_off & htons(IP_DF)))
5381 case htons(ETH_P_ARP):
5382 case htons(ETH_P_IP):
5383 case htons(ETH_P_IPV6):
5384 case htons(ETH_P_8021Q):
5385 case htons(ETH_P_8021AD):
/linux-master/net/bridge/
H A Dbr_netfilter_hooks.c71 (!skb_vlan_tag_present(skb) && skb->protocol == htons(ETH_P_IP))
74 (!skb_vlan_tag_present(skb) && skb->protocol == htons(ETH_P_IPV6))
77 (!skb_vlan_tag_present(skb) && skb->protocol == htons(ETH_P_ARP))
83 else if (skb->protocol == htons(ETH_P_8021Q))
93 return vlan_proto(skb) == htons(ETH_P_IP) && brnet->filter_vlan_tagged;
101 return vlan_proto(skb) == htons(ETH_P_IPV6) &&
109 return vlan_proto(skb) == htons(ETH_P_ARP) && brnet->filter_vlan_tagged;
122 return skb->protocol == htons(ETH_P_PPP_SES) &&
123 pppoe_proto(skb) == htons(PPP_IP) && brnet->filter_pppoe_tagged;
131 return skb->protocol == htons(ETH_P_PPP_SE
[all...]
/linux-master/net/bpf/
H A Dtest_run.c1039 case htons(ETH_P_IP):
1047 case htons(ETH_P_IPV6):
1579 return htons(ETH_P_IP);
1584 return htons(ETH_P_IPV6);
1653 case htons(ETH_P_IP):
1657 case htons(ETH_P_IPV6):
/linux-master/net/bluetooth/
H A D6lowpan.c287 local_skb->protocol = htons(ETH_P_IPV6);
317 local_skb->protocol = htons(ETH_P_IPV6);
/linux-master/net/batman-adv/
H A Dtranslation-table.c436 tt_change_node->change.vid = htons(common->vid);
836 (*tt_data)->num_vlan = htons(num_vlan);
840 tt_vlan->vid = htons(vlan->vid);
916 (*tt_data)->num_vlan = htons(num_vlan);
924 tt_vlan->vid = htons(vlan->vid);
2448 tmp_vid = htons(tt_common->vid);
2507 tmp_vid = htons(tt_common->vid);
2747 tt_change->vid = htons(tt_common_entry->vid);
2901 tvlv_tt_data->num_vlan = htons(num_vlan);
3499 tvlv_roam.vid = htons(vi
[all...]
H A Dsoft-interface.c228 if (proto != htons(ETH_P_BATMAN)) {
451 if (vhdr->h_vlan_encapsulated_proto != htons(ETH_P_BATMAN))
637 if (proto != htons(ETH_P_8021Q))
684 if (proto != htons(ETH_P_8021Q))
H A Dmain.c377 case htons(ETH_P_8021Q):
385 case htons(ETH_P_IP):
392 case htons(ETH_P_IPV6):
632 if (ethhdr->h_proto != htons(ETH_P_8021Q))
/linux-master/net/atm/
H A Dclip.c40 #include <asm/byteorder.h> /* for htons etc. */
222 skb->protocol = htons(ETH_P_IP);
226 if (skb->protocol == htons(ETH_P_ARP)) {
/linux-master/net/8021q/
H A Dvlan_netlink.c64 case htons(ETH_P_8021Q):
65 case htons(ETH_P_8021AD):
167 proto = htons(ETH_P_8021Q);
H A Dvlan_dev.c61 vhdr->h_vlan_TCI = htons(vlan_tci);
68 vhdr->h_vlan_encapsulated_proto = htons(type);
70 vhdr->h_vlan_encapsulated_proto = htons(len);
/linux-master/lib/
H A Dtest_bpf.c14696 skb->protocol = htons(ETH_P_IP);
14702 skb->vlan_proto = htons(ETH_P_IP);
14975 skb[i]->protocol = htons(ETH_P_IP);
15029 skb[i]->protocol = htons(ETH_P_IPV6);
/linux-master/include/net/
H A Dxfrm.h880 port = htons(uli->icmpt.type);
883 port = htons(uli->mht.type);
886 port = htons(ntohl(uli->gre_key) >> 16);
907 port = htons(uli->icmpt.code);
910 port = htons(ntohl(uli->gre_key) & 0xffff);
H A Dudp.h240 return htons((((u64) hash * (max - min)) >> 32) + min);
H A Dip_tunnels.h448 case htons(ETH_P_IPV6):
452 case htons(ETH_P_IP):
477 case htons(ETH_P_IPV6):
481 case htons(ETH_P_IP):
543 if (payload_protocol == htons(ETH_P_IP))
545 else if (payload_protocol == htons(ETH_P_IPV6))
556 if (payload_protocol == htons(ETH_P_IPV6))
567 if (payload_protocol == htons(ETH_P_IP))
569 else if (payload_protocol == htons(ETH_P_IPV6))
H A Dip.h407 return (iph->frag_off & htons(IP_MF | IP_OFFSET)) != 0;
419 check += (__force u32)htons(0x0100);
563 iph->id = htons(val);
566 if ((iph->frag_off & htons(IP_DF)) && !skb->ignore_df) {
H A Dax25.h302 return htons(ETH_P_AX25);
/linux-master/include/linux/
H A Dnetdevice.h2691 __be16 type; /* This is really htons(ether_type). */
2718 __be16 type; /* This is really htons(ether_type). */
4833 if (protocol == htons(ETH_P_FCOE))
4844 case htons(ETH_P_IP):
4846 case htons(ETH_P_IPV6):
H A Detherdevice.h223 proto &= htons(0xFF00);
226 return (__force u16)proto >= (__force u16)htons(ETH_P_802_3_MIN);
/linux-master/drivers/scsi/qla4xxx/
H A Dql4_os.c6594 addr6->sin6_port = htons(le16_to_cpu(fw_ddb_entry->port));
6602 addr->sin_port = htons(le16_to_cpu(fw_ddb_entry->port));
/linux-master/drivers/scsi/qedf/
H A Dqedf_main.c1192 skb->protocol = htons(ETH_P_FCOE);
1198 __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), qedf->vlan_id);
1202 eh->h_proto = htons(ETH_P_FCOE);
2625 if (eh->h_proto == htons(ETH_P_8021Q)) {
2636 if (eh->h_proto == htons(ETH_P_FIP)) {
2639 } else if (eh->h_proto == htons(ETH_P_FCOE)) {
H A Dqedf_io.c721 fc_hdr->fh_rx_id = htons(0xffff);
/linux-master/drivers/s390/net/
H A Dqeth_core.h961 if (proto == htons(ETH_P_IPV6))
991 if ((proto == htons(ETH_P_IP) && ip_hdr(skb)->protocol == IPPROTO_UDP) ||
992 (proto == htons(ETH_P_IPV6) && ipv6_hdr(skb)->nexthdr == IPPROTO_UDP))
/linux-master/drivers/net/wwan/t7xx/
H A Dt7xx_netdev.c432 skb->protocol = htons(ETH_P_IPV6);
434 skb->protocol = htons(ETH_P_IP);
/linux-master/drivers/net/wwan/
H A Dmhi_wwan_mbim.c316 skbn->protocol = htons(ETH_P_IP);
319 skbn->protocol = htons(ETH_P_IPV6);
/linux-master/drivers/net/wireless/realtek/rtw89/
H A Dfw.c2265 arp_skb->llc_type = htons(ETH_P_ARP);
2268 arp_hdr->ar_hrd = htons(ARPHRD_ETHER);
2269 arp_hdr->ar_pro = htons(ETH_P_IP);
2272 arp_hdr->ar_op = htons(ARPOP_REPLY);

Completed in 666 milliseconds

1234567891011>>