Home
last modified time | relevance | path

Searched refs:htons (Results 1 – 25 of 32) sorted by relevance

12

/include/net/
A Dtun_proto.h20 return htons(ETH_P_IP); in tun_p_to_eth_p()
22 return htons(ETH_P_IPV6); in tun_p_to_eth_p()
24 return htons(ETH_P_TEB); in tun_p_to_eth_p()
26 return htons(ETH_P_NSH); in tun_p_to_eth_p()
28 return htons(ETH_P_MPLS_UC); in tun_p_to_eth_p()
36 case htons(ETH_P_IP): in tun_p_from_eth_p()
38 case htons(ETH_P_IPV6): in tun_p_from_eth_p()
40 case htons(ETH_P_TEB): in tun_p_from_eth_p()
42 case htons(ETH_P_NSH): in tun_p_from_eth_p()
44 case htons(ETH_P_MPLS_UC): in tun_p_from_eth_p()
A Ddsfield.h39 iph->check = (__force __sum16)htons(check); in ipv4_change_dsfield()
49 *p = (*p & htons((((u16)mask << 4) | 0xf00f))) | htons((u16)value << 4); in ipv6_change_dsfield()
A Dmpls.h21 return eth_type == htons(ETH_P_MPLS_UC) || in eth_p_mpls()
22 eth_type == htons(ETH_P_MPLS_MC); in eth_p_mpls()
A Dinet_ecn.h97 check_add = (__force __be16)((__force u16)htons(0xFFFB) + in IP_ECN_set_ce()
98 (__force u16)htons(ecn)); in IP_ECN_set_ce()
110 iph->check = csum16_add(iph->check, htons(0x1)); in IP_ECN_set_ect1()
292 case htons(ETH_P_IP): in IP_ECN_decapsulate()
295 case htons(ETH_P_IPV6): in IP_ECN_decapsulate()
311 case htons(ETH_P_IP): in IP6_ECN_decapsulate()
314 case htons(ETH_P_IPV6): in IP6_ECN_decapsulate()
A Dx25device.h16 return htons(ETH_P_X25); in x25_type_trans()
A Dnsh.h287 = (nsh->ver_flags_ttl_len & ~htons(xmask)) | htons(xflag); in __nsh_set_xflag()
A Dip_tunnels.h450 case htons(ETH_P_IPV6): in pskb_inet_may_pull_reason()
454 case htons(ETH_P_IP): in pskb_inet_may_pull_reason()
486 case htons(ETH_P_IPV6): in skb_vlan_inet_prepare()
490 case htons(ETH_P_IP): in skb_vlan_inet_prepare()
554 if (payload_protocol == htons(ETH_P_IP)) in ip_tunnel_get_dsfield()
556 else if (payload_protocol == htons(ETH_P_IPV6)) in ip_tunnel_get_dsfield()
567 if (payload_protocol == htons(ETH_P_IPV6)) in ip_tunnel_get_flowlabel()
578 if (payload_protocol == htons(ETH_P_IP)) in ip_tunnel_get_ttl()
580 else if (payload_protocol == htons(ETH_P_IPV6)) in ip_tunnel_get_ttl()
A Dgue.h59 #define GUE_FLAG_PRIV htons(1<<0) /* Private flags are in options */
A Derspan.h197 if (eth->h_proto == htons(ETH_P_8021Q)) { in erspan_build_header()
291 if (eth->h_proto == htons(ETH_P_8021Q)) { in erspan_build_header_v2()
312 md2->sgt = htons(sgt); in erspan_build_header_v2()
A Dudplite.h79 udp_hdr(skb)->len = htons(pcslen); in udplite_csum()
A Dvxlan.h373 case htons(ETH_P_IP): in vxlan_features_check()
376 case htons(ETH_P_IPV6): in vxlan_features_check()
385 skb->inner_protocol != htons(ETH_P_TEB) || in vxlan_features_check()
604 gbp->policy_id = htons(md->gbp & VXLAN_GBP_ID_MASK); in vxlan_build_gbp_hdr()
A Dipv6_frag.h125 if (offset < 0 || (frag_off & htons(IP6_OFFSET))) in ipv6frag_thdr_truncated()
A Dip.h407 return (iph->frag_off & htons(IP_MF | IP_OFFSET)) != 0; in ip_is_fragment()
419 check += (__force u32)htons(0x0100); in ip_decrease_ttl()
575 iph->id = htons(val); in ip_select_ident_segs()
578 if ((iph->frag_off & htons(IP_DF)) && !skb->ignore_df) { in ip_select_ident_segs()
A Dmacsec.h21 #define MACSEC_PORT_ES (htons(0x0001))
/include/linux/
A Dif_vlan.h324 case htons(ETH_P_8021Q): in eth_type_vlan()
325 case htons(ETH_P_8021AD): in eth_type_vlan()
335 if (proto == htons(ETH_P_8021Q) && features & NETIF_F_HW_VLAN_CTAG_TX) in vlan_hw_offload_capable()
337 if (proto == htons(ETH_P_8021AD) && features & NETIF_F_HW_VLAN_STAG_TX) in vlan_hw_offload_capable()
387 veth->h_vlan_TCI = htons(vlan_tci); in __vlan_insert_inner_tag()
719 skb->protocol = htons(ETH_P_802_3); in vlan_set_encap_proto()
724 skb->protocol = htons(ETH_P_802_2); in vlan_set_encap_proto()
A Dvirtio_net.h137 skb->protocol == htons(ETH_P_IP)) { in __virtio_net_hdr_to_skb()
138 skb->protocol = htons(ETH_P_IPV6); in __virtio_net_hdr_to_skb()
328 skb_set_inner_protocol(skb, inner_isv6 ? htons(ETH_P_IPV6) : in virtio_net_hdr_tnl_to_skb()
329 htons(ETH_P_IP)); in virtio_net_hdr_tnl_to_skb()
411 if (skb->protocol == htons(ETH_P_IPV6)) in virtio_net_hdr_tnl_from_skb()
A Dip.h57 iph->tot_len = len <= IP_MAX_MTU ? htons(len) : 0; in iph_set_totlen()
A Dhdlc.h112 return htons(ETH_P_HDLC); in hdlc_type_trans()
A Detherdevice.h223 proto &= htons(0xFF00); in eth_proto_is_802_3()
226 return (__force u16)proto >= (__force u16)htons(ETH_P_802_3_MIN); in eth_proto_is_802_3()
/include/linux/sunrpc/
A Daddr.h39 ((struct sockaddr_in *)sap)->sin_port = htons(port); in rpc_set_port()
42 ((struct sockaddr_in6 *)sap)->sin6_port = htons(port); in rpc_set_port()
/include/linux/byteorder/
A Dgeneric.h132 #undef htons
141 #define htons(x) ___htons(x) macro
/include/net/netfilter/
A Dnf_queue.h87 case htons(ETH_P_IP): in hash_bridge()
93 case htons(ETH_P_IPV6): in hash_bridge()
A Dnf_flow_table.h362 case htons(PPP_IP): in __nf_flow_pppoe_proto()
363 return htons(ETH_P_IP); in __nf_flow_pppoe_proto()
364 case htons(PPP_IPV6): in __nf_flow_pppoe_proto()
365 return htons(ETH_P_IPV6); in __nf_flow_pppoe_proto()
/include/rdma/
A Dib_sa.h238 ib->ib.dlid = htons(ntohl(opa->opa.dlid)); in path_conv_opa_to_ib()
239 ib->ib.slid = htons(ntohl(opa->opa.slid)); in path_conv_opa_to_ib()
/include/trace/events/
A Dbridge.h153 } else if (group->proto == htons(ETH_P_IP)) {

Completed in 35 milliseconds

12