Home
last modified time | relevance | path

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

12

/include/net/
Dtun_proto.h19 return htons(ETH_P_IP); in tun_p_to_eth_p()
21 return htons(ETH_P_IPV6); in tun_p_to_eth_p()
23 return htons(ETH_P_TEB); in tun_p_to_eth_p()
25 return htons(ETH_P_NSH); in tun_p_to_eth_p()
27 return htons(ETH_P_MPLS_UC); in tun_p_to_eth_p()
35 case htons(ETH_P_IP): in tun_p_from_eth_p()
37 case htons(ETH_P_IPV6): in tun_p_from_eth_p()
39 case htons(ETH_P_TEB): in tun_p_from_eth_p()
41 case htons(ETH_P_NSH): in tun_p_from_eth_p()
43 case htons(ETH_P_MPLS_UC): in tun_p_from_eth_p()
Dmpls.h20 return eth_type == htons(ETH_P_MPLS_UC) || in eth_p_mpls()
21 eth_type == htons(ETH_P_MPLS_MC); in eth_p_mpls()
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()
Dinet_ecn.h95 check += (__force u16)htons(0xFFFB) + (__force u16)htons(ecn); in IP_ECN_set_ce()
222 if (skb->protocol == htons(ETH_P_IP)) in IP_ECN_decapsulate()
224 else if (skb->protocol == htons(ETH_P_IPV6)) in IP_ECN_decapsulate()
237 if (skb->protocol == htons(ETH_P_IP)) in IP6_ECN_decapsulate()
239 else if (skb->protocol == htons(ETH_P_IPV6)) in IP6_ECN_decapsulate()
Dx25device.h16 return htons(ETH_P_X25); in x25_type_trans()
Dnsh.h287 = (nsh->ver_flags_ttl_len & ~htons(xmask)) | htons(xflag); in __nsh_set_xflag()
Dudplite.h88 udp_hdr(skb)->len = htons(up->pcslen); in udplite_csum_outgoing()
126 udp_hdr(skb)->len = htons(up->pcslen); in udplite_csum()
Dgue.h56 #define GUE_FLAG_PRIV htons(1<<0) /* Private flags are in options */
Dip_tunnels.h318 case htons(ETH_P_IPV6): in pskb_inet_may_pull()
322 case htons(ETH_P_IP): in pskb_inet_may_pull()
377 if (skb->protocol == htons(ETH_P_IP)) in ip_tunnel_get_dsfield()
379 else if (skb->protocol == htons(ETH_P_IPV6)) in ip_tunnel_get_dsfield()
388 if (skb->protocol == htons(ETH_P_IP)) in ip_tunnel_get_ttl()
390 else if (skb->protocol == htons(ETH_P_IPV6)) in ip_tunnel_get_ttl()
Derspan.h179 if (eth->h_proto == htons(ETH_P_8021Q)) { in erspan_build_header()
273 if (eth->h_proto == htons(ETH_P_8021Q)) { in erspan_build_header_v2()
294 md2->sgt = htons(sgt); in erspan_build_header_v2()
Dvxlan.h304 case htons(ETH_P_IP): in vxlan_features_check()
307 case htons(ETH_P_IPV6): in vxlan_features_check()
316 skb->inner_protocol != htons(ETH_P_TEB) || in vxlan_features_check()
Dllc_pdu.h253 if (skb->protocol == htons(ETH_P_802_2)) in llc_pdu_decode_sa()
266 if (skb->protocol == htons(ETH_P_802_2)) in llc_pdu_decode_da()
340 if (ev_skb->protocol == htons(ETH_P_802_2)) { in llc_pdu_init_as_test_rsp()
Dip.h399 return (iph->frag_off & htons(IP_MF | IP_OFFSET)) != 0; in ip_is_fragment()
411 check += (__force u32)htons(0x0100); in ip_decrease_ttl()
514 if ((iph->frag_off & htons(IP_DF)) && !skb->ignore_df) { in ip_select_ident_segs()
521 iph->id = htons(inet_sk(sk)->inet_id); in ip_select_ident_segs()
/include/scsi/
Dfc_encode.h106 ct->hdr.ct_cmd = htons((u16) op); in fc_ct_hdr_fill()
537 csp->sp_bb_cred = htons(10); /* this gets set by gateway */ in fc_plogi_fill()
538 csp->sp_bb_data = htons((u16) lport->mfs); in fc_plogi_fill()
540 cp->cp_class = htons(FC_CPC_VALID | FC_CPC_SEQ); in fc_plogi_fill()
541 csp->sp_features = htons(FC_SP_FT_CIRO); in fc_plogi_fill()
542 csp->sp_tot_seq = htons(255); /* seq. we accept */ in fc_plogi_fill()
543 csp->sp_rel_off = htons(0x1f); in fc_plogi_fill()
546 cp->cp_rdfs = htons((u16) lport->mfs); in fc_plogi_fill()
547 cp->cp_con_seq = htons(255); in fc_plogi_fill()
568 sp->sp_bb_cred = htons(10); /* this gets set by gateway */ in fc_flogi_fill()
[all …]
/include/uapi/linux/
Dtipc_config.h288 tlv->tlv_len = htons(len); in TLV_SET_LEN()
298 tlv->tlv_type = htons(type); in TLV_SET_TYPE()
308 tlv_ptr->tlv_type = htons(type); in TLV_SET()
309 tlv_ptr->tlv_len = htons(tlv_len); in TLV_SET()
408 tcm_hdr->tcm_type = htons(cmd); in TCM_SET()
409 tcm_hdr->tcm_flags = htons(flags); in TCM_SET()
/include/linux/
Dif_vlan.h303 case htons(ETH_P_8021Q): in eth_type_vlan()
304 case htons(ETH_P_8021AD): in eth_type_vlan()
314 if (proto == htons(ETH_P_8021Q) && features & NETIF_F_HW_VLAN_CTAG_TX) in vlan_hw_offload_capable()
316 if (proto == htons(ETH_P_8021AD) && features & NETIF_F_HW_VLAN_STAG_TX) in vlan_hw_offload_capable()
365 veth->h_vlan_TCI = htons(vlan_tci); in __vlan_insert_inner_tag()
654 skb->protocol = htons(ETH_P_802_3); in vlan_set_encap_proto()
659 skb->protocol = htons(ETH_P_802_2); in vlan_set_encap_proto()
Dvirtio_net.h72 skb->protocol == htons(ETH_P_IP)) { in virtio_net_hdr_to_skb()
73 skb->protocol = htons(ETH_P_IPV6); in virtio_net_hdr_to_skb()
Dhdlc.h112 return htons(ETH_P_HDLC); in hdlc_type_trans()
Detherdevice.h210 proto &= htons(0xFF00); in eth_proto_is_802_3()
213 return (__force u16)proto >= (__force u16)htons(ETH_P_802_3_MIN); in eth_proto_is_802_3()
/include/linux/byteorder/
Dgeneric.h132 #undef htons
141 #define htons(x) ___htons(x) macro
/include/linux/sunrpc/
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/net/netfilter/
Dnf_queue.h85 case htons(ETH_P_IP): in hash_bridge()
91 case htons(ETH_P_IPV6): in hash_bridge()
/include/linux/can/
Ddev.h131 if (skb->protocol == htons(ETH_P_CAN)) { in can_dropped_invalid_skb()
135 } else if (skb->protocol == htons(ETH_P_CANFD)) { in can_dropped_invalid_skb()
/include/keys/
Dtrusted.h120 *(uint16_t *) & buf->data[buf->len] = htons(value); in store16()
/include/rdma/
Dib_sa.h264 ib->ib.dlid = htons(ntohl(opa->opa.dlid)); in path_conv_opa_to_ib()
265 ib->ib.slid = htons(ntohl(opa->opa.slid)); in path_conv_opa_to_ib()

12