Home
last modified time | relevance | path

Searched refs:ETH_P_IP (Results 1 – 200 of 205) sorted by relevance

12

/linux-4.1.27/net/tipc/
Dudp_media.c100 if (ntohs(ua->proto) == ETH_P_IP) { in tipc_udp_media_addr_set()
116 if (ntohs(ua->proto) == ETH_P_IP) in tipc_udp_addr2str()
167 if (dst->proto == htons(ETH_P_IP)) { in tipc_udp_send_msg()
252 if (ntohs(remote->proto) == ETH_P_IP) { in enable_mcast()
301 local->proto = htons(ETH_P_IP); in parse_options()
306 remote->proto = htons(ETH_P_IP); in parse_options()
365 if (local.proto == htons(ETH_P_IP)) { in tipc_udp_enable()
/linux-4.1.27/include/net/
Dinet_ecn.h149 case cpu_to_be16(ETH_P_IP): in INET_ECN_set_ce()
215 if (skb->protocol == htons(ETH_P_IP)) in IP_ECN_decapsulate()
230 if (skb->protocol == htons(ETH_P_IP)) in IP6_ECN_decapsulate()
Dvxlan.h162 case htons(ETH_P_IP): in vxlan_features_check()
Dip_tunnels.h180 if (skb->protocol == htons(ETH_P_IP)) in ip_tunnel_get_dsfield()
/linux-4.1.27/drivers/net/arcnet/
Drfc1051.c110 return htons(ETH_P_IP); in type_trans()
120 return htons(ETH_P_IP); in type_trans()
177 case ETH_P_IP: in build_header()
Drfc1201.c112 return htons(ETH_P_IP); in type_trans()
129 return htons(ETH_P_IP); in type_trans()
384 case ETH_P_IP: in build_header()
/linux-4.1.27/drivers/net/wimax/i2400m/
Dnetdev.c514 cpu_to_be16(ETH_P_IP)); in i2400m_net_rx()
517 skb->protocol = htons(ETH_P_IP); in i2400m_net_rx()
564 protocol = ETH_P_IP; in i2400m_net_erx()
567 cpu_to_be16(ETH_P_IP)); in i2400m_net_erx()
570 skb->protocol = htons(ETH_P_IP); in i2400m_net_erx()
/linux-4.1.27/drivers/net/ethernet/sfc/
Dfilter.h190 spec->ether_type = htons(ETH_P_IP); in efx_filter_set_ipv4_local()
215 spec->ether_type = htons(ETH_P_IP); in efx_filter_set_ipv4_full()
Drx.c872 if (ether_type != htons(ETH_P_IP) && ether_type != htons(ETH_P_IPV6)) in efx_filter_rfs()
884 if (ether_type == htons(ETH_P_IP)) { in efx_filter_rfs()
920 if (ether_type == htons(ETH_P_IP)) in efx_filter_rfs()
988 if (spec->ether_type == htons(ETH_P_IP) && in efx_filter_is_mc_recipient()
Dtx.c862 if (protocol == htons(ETH_P_IP)) { in efx_tso_check_protocol()
1025 if (st->protocol == htons(ETH_P_IP)) { in tso_start()
1183 if (st->protocol == htons(ETH_P_IP)) { in tso_start_new_packet()
Dethtool.c810 spec.ether_type == htons(ETH_P_IP) && in efx_ethtool_get_class_rule()
984 spec.ether_type = htons(ETH_P_IP); in efx_ethtool_set_class_rule()
Dselftest.c370 payload->header.h_proto = htons(ETH_P_IP); in efx_iterate_state()
Dfarch.c2058 if (gen_spec->ether_type != htons(ETH_P_IP)) in efx_farch_filter_from_gen_spec()
2161 gen_spec->ether_type = htons(ETH_P_IP); in efx_farch_filter_to_gen_spec()
Dptp.c1349 likely(skb->protocol == htons(ETH_P_IP)) && in efx_ptp_is_ptp_tx()
Def10.c2200 if (spec->ether_type == htons(ETH_P_IP) && in efx_ef10_filter_is_exclusive()
/linux-4.1.27/net/802/
Dfddi.c59 if(type != ETH_P_IP && type != ETH_P_IPV6 && type != ETH_P_ARP) in fddi_header()
63 if(type == ETH_P_IP || type == ETH_P_IPV6 || type == ETH_P_ARP) in fddi_header()
Dfc.c47 if (type == ETH_P_IP || type == ETH_P_ARP) in fc_header()
/linux-4.1.27/net/bridge/
Dbr_netfilter.c64 (!skb_vlan_tag_present(skb) && skb->protocol == htons(ETH_P_IP))
83 (vlan_proto(skb) == htons(ETH_P_IP) && \
663 skb->protocol = htons(ETH_P_IP); in br_nf_pre_routing()
697 if (skb->protocol == htons(ETH_P_IP)) { in br_nf_forward_finish()
773 skb->protocol = htons(ETH_P_IP); in br_nf_forward_ip()
844 if (skb_is_gso(skb) || skb->protocol != htons(ETH_P_IP)) in br_nf_dev_queue_xmit()
919 skb->protocol = htons(ETH_P_IP); in br_nf_post_routing()
Dbr_multicast.c49 case htons(ETH_P_IP): in br_ip_equal()
79 case htons(ETH_P_IP): in br_ip_hash()
117 br_dst.proto = htons(ETH_P_IP); in br_mdb_ip4_get()
154 case htons(ETH_P_IP): in br_mdb_get()
362 skb->protocol = htons(ETH_P_IP); in br_ip4_multicast_alloc_query()
374 eth->h_proto = htons(ETH_P_IP); in br_ip4_multicast_alloc_query()
502 case htons(ETH_P_IP): in br_multicast_alloc_query()
718 br_group.proto = htons(ETH_P_IP); in br_ip4_multicast_add_group()
797 if (ip->proto == htons(ETH_P_IP)) in br_multicast_select_own_querier()
843 br_group.proto = htons(ETH_P_IP); in br_multicast_send_query()
[all …]
Dbr_mdb.c88 if (p->addr.proto == htons(ETH_P_IP)) in br_mdb_fill_info()
252 if (entry->addr.proto == htons(ETH_P_IP)) { in is_valid_mdb_entry()
375 if (ip.proto == htons(ETH_P_IP)) in __br_mdb_add()
422 if (ip.proto == htons(ETH_P_IP)) { in __br_mdb_del()
Dbr_input.c83 if (parp->ar_pro != htons(ETH_P_IP) || in br_do_proxy_arp()
Dbr_private.h512 case (htons(ETH_P_IP)): in br_multicast_querier_exists()
/linux-4.1.27/net/bridge/netfilter/
Debt_among.c72 if (eth_hdr(skb)->h_proto == htons(ETH_P_IP)) { in get_ip_dst()
103 if (eth_hdr(skb)->h_proto == htons(ETH_P_IP)) { in get_ip_src()
Dnf_log_bridge.c28 case htons(ETH_P_IP): in nf_log_bridge_packet()
Debt_arpreply.c35 ap->ar_pro != htons(ETH_P_IP) || in ebt_arpreply_tg()
Debt_ip.c85 if (e->ethproto != htons(ETH_P_IP) || in ebt_ip_mt_check()
Dnf_tables_bridge.c99 case htons(ETH_P_IP): in nft_do_chain_bridge()
Debt_arp.c42 if (ah->ar_pln != sizeof(__be32) || ah->ar_pro != htons(ETH_P_IP)) in ebt_arp_mt()
Debt_log.c99 htons(ETH_P_IP)) { in ebt_log_packet()
Dnft_reject_bridge.c272 case htons(ETH_P_IP): in nft_reject_bridge_eval()
/linux-4.1.27/samples/bpf/
Dsockex2_kern.c118 if (likely(proto == ETH_P_IP)) in flow_dissector()
156 if (proto == ETH_P_IP) in flow_dissector()
/linux-4.1.27/include/uapi/linux/
Dif_ether.h45 #define ETH_P_IP 0x0800 /* Internet Protocol packet */ macro
/linux-4.1.27/net/phonet/
Dpep-gprs.c57 return htons(ETH_P_IP); in gprs_type_trans()
193 case htons(ETH_P_IP): in gprs_xmit()
/linux-4.1.27/net/batman-adv/
Dmulticast.c353 case ETH_P_IP: in batadv_mcast_forw_mode_check()
377 case ETH_P_IP: in batadv_mcast_forw_want_all_ip_count()
471 case ETH_P_IP: in batadv_mcast_forw_ip_node_get()
Dgateway_client.c705 case htons(ETH_P_IP): in batadv_gw_dhcp_recipient_get()
746 case htons(ETH_P_IP): in batadv_gw_dhcp_recipient_get()
Dmain.c328 case htons(ETH_P_IP): in batadv_skb_set_priority()
Ddistributed-arp-table.c831 if (arphdr->ar_pro != htons(ETH_P_IP)) in batadv_arp_get_type()
Dbridge_loop_avoidance.c915 if (arphdr->ar_pro != htons(ETH_P_IP)) in batadv_bla_process_claim()
/linux-4.1.27/drivers/net/wan/
Dhdlc_raw.c29 return cpu_to_be16(ETH_P_IP); in raw_type_trans()
Ddlci.c80 case ETH_P_IP: in dlci_header()
159 skb->protocol = htons(ETH_P_IP); in dlci_receive()
Dhdlc_ppp.c155 return htons(ETH_P_IP); in ppp_type_trans()
182 case ETH_P_IP: in ppp_hard_header()
Dhdlc_fr.c294 case cpu_to_be16(ETH_P_IP): in fr_hard_header()
930 skb->protocol = htons(ETH_P_IP); in fr_rx()
946 case ETH_P_IP: /* a long variant */ in fr_rx()
Dhdlc_cisco.c142 case cpu_to_be16(ETH_P_IP): in cisco_type_trans()
/linux-4.1.27/arch/um/drivers/
Dslip_kern.c44 return htons(ETH_P_IP); in slip_protocol()
Dslirp_kern.c49 return htons(ETH_P_IP); in slirp_protocol()
/linux-4.1.27/net/ipv4/
Dxfrm4_output.c66 skb->protocol = htons(ETH_P_IP); in xfrm4_prepare_output()
Dxfrm4_state.c76 .eth_proto = htons(ETH_P_IP),
Darp.c156 .protocol = cpu_to_be16(ETH_P_IP),
530 arp->ar_pro = htons(ETH_P_IP); in arp_create()
550 arp->ar_pro = htons(ETH_P_IP); in arp_create()
655 if (arp->ar_pro != htons(ETH_P_IP) || in arp_process()
673 arp->ar_pro != htons(ETH_P_IP)) in arp_process()
Dping.c179 if (skb->protocol == htons(ETH_P_IP)) { in ping_lookup()
198 if (skb->protocol == htons(ETH_P_IP) && in ping_lookup()
496 if (skb->protocol == htons(ETH_P_IP)) { in ping_err()
530 if (skb->protocol == htons(ETH_P_IP)) { in ping_err()
927 else if (skb->protocol == htons(ETH_P_IP) && isk->cmsg_flags) in ping_recvmsg()
Dip_tunnel.c605 if (skb->protocol == htons(ETH_P_IP)) { in tnl_update_pmtu()
664 if (skb->protocol == htons(ETH_P_IP)) { in ip_tunnel_xmit()
708 if (skb->protocol == htons(ETH_P_IP)) { in ip_tunnel_xmit()
761 if (skb->protocol == htons(ETH_P_IP)) in ip_tunnel_xmit()
772 if (skb->protocol == htons(ETH_P_IP)) in ip_tunnel_xmit()
Dipip.c183 .proto = htons(ETH_P_IP),
220 if (unlikely(skb->protocol != htons(ETH_P_IP))) in ipip_tunnel_xmit()
Dgre_demux.c151 tpi->proto = htons(ETH_P_IP); in parse_gre_header()
Dipconfig.c528 if (rarp->ar_pro != htons(ETH_P_IP)) in ic_rarp_recv()
652 .type = cpu_to_be16(ETH_P_IP),
856 skb->protocol = htons(ETH_P_IP); in ic_bootp_send_if()
Droute.c1459 skb->protocol != htons(ETH_P_IP)) in ip_route_input_mc()
1604 skb->protocol == htons(ETH_P_IP) && in __mkroute_input()
1609 if (skb->protocol != htons(ETH_P_IP)) { in __mkroute_input()
1790 if (skb->protocol != htons(ETH_P_IP)) in ip_route_input_slow()
2511 skb->protocol = htons(ETH_P_IP); in inet_rtm_getroute()
Dip_vti.c225 case htons(ETH_P_IP): in vti_tunnel_xmit()
Daf_inet.c1638 .type = cpu_to_be16(ETH_P_IP),
1672 .type = cpu_to_be16(ETH_P_IP),
Dip_output.c291 skb->protocol = htons(ETH_P_IP); in ip_mc_output()
347 skb->protocol = htons(ETH_P_IP); in ip_output()
Dip_fragment.c670 if (skb->protocol != htons(ETH_P_IP)) in ip_check_defrag()
Dipmr.c2084 skb->protocol = htons(ETH_P_IP); in __pim_rcv()
/linux-4.1.27/net/sched/
Dem_ipset.c63 case htons(ETH_P_IP): in em_ipset_match()
Dact_connmark.c47 if (skb->protocol == htons(ETH_P_IP)) { in tcf_connmark()
Dsch_dsmark.c207 case htons(ETH_P_IP): in dsmark_enqueue()
293 case htons(ETH_P_IP): in dsmark_dequeue()
Dcls_flow.c148 case htons(ETH_P_IP): in flow_get_nfct_src()
160 case htons(ETH_P_IP): in flow_get_nfct_dst()
Dact_csum.c513 case cpu_to_be16(ETH_P_IP): in tcf_csum()
/linux-4.1.27/net/ax25/
Dax25_in.c131 skb->protocol = htons(ETH_P_IP); in ax25_rx_iframe()
249 skb->protocol = htons(ETH_P_IP); in ax25_rcv()
Dax25_ip.c85 case ETH_P_IP: in ax25_hard_header()
/linux-4.1.27/net/atm/
Dbr2684.c232 case ETH_P_IP: in br2684_xmit_vcc()
395 if (type == htons(ETH_P_IP) && in packet_fails_filter()
461 skb->protocol = htons(ETH_P_IP); in br2684_push()
486 skb->protocol = htons(ETH_P_IP); in br2684_push()
Dclip.c221 skb->protocol = htons(ETH_P_IP); in clip_push()
Dmpc.c584 if (eth->h_proto != htons(ETH_P_IP)) in mpc_send_packet()
/linux-4.1.27/net/netrom/
Dnr_dev.c55 skb->protocol = htons(ETH_P_IP); in nr_rx_ip()
/linux-4.1.27/net/core/
Dflow_dissector.c90 case htons(ETH_P_IP): { in __skb_flow_dissect()
249 proto = htons(ETH_P_IP); in __skb_flow_dissect()
Dnetpoll.c462 skb->protocol = eth->h_proto = htons(ETH_P_IP); in netpoll_send_udp()
Dpktgen.c2754 __be16 protocol = htons(ETH_P_IP); in fill_packet_ipv4()
2805 *vlan_encapsulated_proto = htons(ETH_P_IP); in fill_packet_ipv4()
Dskbuff.c4020 case htons(ETH_P_IP): in skb_checksum_setup()
/linux-4.1.27/net/openvswitch/
Dflow_netlink.c161 if (match->key->eth.type == htons(ETH_P_IP)) { in match_validate()
1354 if (swkey->eth.type == htons(ETH_P_IP)) { in __ovs_nla_put_key()
1407 if ((swkey->eth.type == htons(ETH_P_IP) || in __ovs_nla_put_key()
1441 } else if (swkey->eth.type == htons(ETH_P_IP) && in __ovs_nla_put_key()
1863 if (eth_type != htons(ETH_P_IP)) in validate_set()
1912 if ((eth_type != htons(ETH_P_IP) && in validate_set()
1920 if ((eth_type != htons(ETH_P_IP) && in validate_set()
1933 if ((eth_type != htons(ETH_P_IP) && in validate_set()
2100 (eth_type != htons(ETH_P_IP) && in __ovs_nla_copy_actions()
Dflow.c492 if (key->eth.type == htons(ETH_P_IP)) { in key_extract()
575 arp->ar_pro == htons(ETH_P_IP) && in key_extract()
/linux-4.1.27/net/ipv4/netfilter/
Dnf_reject_ipv4.c64 nskb->protocol = htons(ETH_P_IP); in nf_reject_iphdr_put()
Dipt_SYNPROXY.c53 nskb->protocol = htons(ETH_P_IP); in synproxy_send_tcp()
Dipt_CLUSTERIP.c516 arp->ar_pro != htons(ETH_P_IP) || in arp_mangle()
/linux-4.1.27/net/netfilter/
Dxt_AUDIT.c149 case htons(ETH_P_IP): in audit_tg()
Dxt_TEE.c81 skb->protocol = htons(ETH_P_IP); in tee_tg_route4()
Dnfnetlink_queue_core.c660 skb->protocol = htons(ETH_P_IP); in nfqnl_enqueue_packet()
/linux-4.1.27/drivers/net/usb/
Dcdc_mbim.c213 case htons(ETH_P_IP): in is_ip_proto()
377 proto = htons(ETH_P_IP); in cdc_mbim_process_dgram()
Dlg-vl600.c303 packet->h_proto = htons(ETH_P_IP); in vl600_tx_fixup()
Dsierra_net.c197 return skb->protocol == cpu_to_be16(ETH_P_IP); in is_ip()
706 eth->h_proto = cpu_to_be16(ETH_P_IP); in sierra_net_bind()
Dqmi_wwan.c91 proto = htons(ETH_P_IP); in qmi_wwan_rx_fixup()
Dr8152.c1470 case htons(ETH_P_IP): in r8152_tx_csum()
1501 case htons(ETH_P_IP): in r8152_tx_csum()
Dhso.c955 odev->skb_rx_buf->protocol = cpu_to_be16(ETH_P_IP); in packetizeRx()
/linux-4.1.27/tools/testing/selftests/net/
Dpsock_fanout.c74 fd = socket(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IP)); in sock_fanout_open()
Dpsock_tpacket.c146 if (eth->h_proto != htons(ETH_P_IP)) { in test_payload()
166 eth->h_proto = htons(ETH_P_IP); in create_payload()
/linux-4.1.27/net/xfrm/
Dxfrm_output.c224 if (skb->protocol == htons(ETH_P_IP)) in xfrm_local_error()
/linux-4.1.27/net/caif/
Dcaif_usb.c60 skb->protocol = htons(ETH_P_IP); in cfusbl_transmit()
Dchnl_net.c104 skb->protocol = htons(ETH_P_IP); in chnl_recv_cb()
/linux-4.1.27/drivers/net/hyperv/
Dnetvsc_drv.c200 !(flow.n_proto == htons(ETH_P_IP) || in netvsc_set_hash()
349 if ((eth_hdr(skb)->h_proto != htons(ETH_P_IP)) && in get_net_transport_info()
356 if ((eth_hdr(skb)->h_proto == htons(ETH_P_IP))) { in get_net_transport_info()
/linux-4.1.27/drivers/staging/gdm724x/
Dgdm_lte.c378 case ETH_P_IP: in gdm_lte_tx_nic_type()
658 eth.h_proto = htons(ETH_P_IP); in gdm_lte_netif_rx()
659 vlan_eth.h_vlan_encapsulated_proto = htons(ETH_P_IP); in gdm_lte_netif_rx()
/linux-4.1.27/drivers/staging/octeon/
Dethernet-tx.c414 if (USE_HW_TCPUDP_CHECKSUM && (skb->protocol == htons(ETH_P_IP)) && in cvm_oct_xmit()
624 if (skb->protocol == htons(ETH_P_IP)) { in cvm_oct_xmit_pow()
/linux-4.1.27/drivers/net/ipvlan/
Dipvlan_core.c139 case htons(ETH_P_IP): { in ipvlan_get_L3_hdr()
438 else if (skb->protocol == htons(ETH_P_IP)) in ipvlan_process_outbound()
/linux-4.1.27/drivers/net/ethernet/intel/fm10k/
Dfm10k_main.c710 if (vlan_get_protocol(skb) != htons(ETH_P_IP)) in fm10k_gre_is_nvgre()
737 case htons(ETH_P_IP): in fm10k_tx_encap_offload()
762 case htons(ETH_P_IP): in fm10k_tx_encap_offload()
872 case htons(ETH_P_IP): in fm10k_tx_csum()
/linux-4.1.27/drivers/net/wireless/cw1200/
Dpm.c63 .type = __cpu_to_le16(ETH_P_IP),
/linux-4.1.27/net/dccp/
Dipv6.c338 if (skb->protocol == htons(ETH_P_IP)) in dccp_v6_conn_request()
428 if (skb->protocol == htons(ETH_P_IP)) { in dccp_v6_request_recv_sock()
597 if (skb->protocol == htons(ETH_P_IP)) in dccp_v6_do_rcv()
/linux-4.1.27/drivers/staging/rtl8723au/os_dep/
Dos_intfs.c288 case htons(ETH_P_IP): in rtw_classify8021d()
321 case ETH_P_IP: in rtw_recv_select_queue23a()
/linux-4.1.27/drivers/net/ethernet/cisco/enic/
Denic_clsf.c181 if (!res || keys.n_proto != htons(ETH_P_IP) || in enic_rx_flow_steer()
Denic_main.c458 if (skb->protocol == cpu_to_be16(ETH_P_IP)) { in enic_queue_wq_skb_tso()
/linux-4.1.27/drivers/staging/rtl8192e/
Drtllib_tx.c260 if (eth->h_proto != htons(ETH_P_IP)) in rtllib_classify()
634 if (ETH_P_IP == ether_type) { in rtllib_xmit_inter()
Drtllib.h760 #define ETH_P_IP 0x0800 /* Internet Protocol packet */ macro
/linux-4.1.27/drivers/net/hamradio/
Dbpqether.c254 if (skb->protocol == htons(ETH_P_IP)) in bpq_xmit()
Dmkiss.c532 if (skb->protocol == htons(ETH_P_IP)) in ax_xmit()
D6pack.c250 if (skb->protocol == htons(ETH_P_IP)) in sp_xmit()
Dhdlcdrv.c407 if (skb->protocol == htons(ETH_P_IP)) in hdlcdrv_send_packet()
Dyam.c600 if (skb->protocol == htons(ETH_P_IP)) in yam_send_packet()
Dbaycom_epp.c775 if (skb->protocol == htons(ETH_P_IP)) in baycom_send_packet()
Ddmascc.c923 if (skb->protocol == htons(ETH_P_IP)) in scc_send_packet()
Dscc.c1642 if (skb->protocol == htons(ETH_P_IP)) in scc_net_tx()
/linux-4.1.27/drivers/net/wireless/ipw2x00/
Dlibipw_tx.c229 if (eth->h_proto != htons(ETH_P_IP)) in libipw_classify()
/linux-4.1.27/drivers/staging/rtl8188eu/os_dep/
Dos_intfs.c637 case htons(ETH_P_IP): in rtw_classify8021d()
672 case htons(ETH_P_IP): in rtw_recv_select_queue()
/linux-4.1.27/drivers/net/ethernet/sun/
Dsunvnet.c322 if (skb->protocol != htons(ETH_P_IP)) in vnet_fullcsum()
393 if (skb->protocol == ETH_P_IP) { in vnet_rx_one()
1158 if (skb->protocol == htons(ETH_P_IP)) in vnet_handle_offloads()
1279 if (skb->protocol == htons(ETH_P_IP)) { in vnet_start_xmit()
Dcassini.c2145 if (skb->protocol == htons(ETH_P_IP)) { in cas_rx_process_pkt()
/linux-4.1.27/drivers/isdn/i4l/
Disdn_ppp.c1098 skb->protocol = htons(ETH_P_IP); in isdn_ppp_push_higher()
1117 skb->protocol = htons(ETH_P_IP); in isdn_ppp_push_higher()
1147 skb->protocol = htons(ETH_P_IP); in isdn_ppp_push_higher()
1272 case ETH_P_IP: in isdn_ppp_xmit()
1495 case ETH_P_IP: in isdn_ppp_autodial_filter()
Disdn_net.c202 (proto != ETH_P_IP) ? "Protocol != ETH_P_IP" : ""); in isdn_net_unreachable()
894 proto = ETH_P_IP; in isdn_net_log_skb()
918 case ETH_P_IP: in isdn_net_log_skb()
1828 skb->protocol = htons(ETH_P_IP); in isdn_net_receive()
/linux-4.1.27/drivers/staging/gdm72xx/
Dgdm_qos.c266 if (ethh->h_proto == cpu_to_be16(ETH_P_IP)) { in gdm_qos_send_hci_pkt()
/linux-4.1.27/drivers/staging/rtl8712/
Drtl871x_xmit.c244 if (ETH_P_IP == pattrib->ether_type) { in r8712_update_attrib()
253 if (ETH_P_IP == pattrib->ether_type) {/* IP header*/ in r8712_update_attrib()
/linux-4.1.27/drivers/net/ethernet/intel/igbvf/
Dnetdev.c1933 if (protocol == htons(ETH_P_IP)) { in igbvf_tso()
1965 if (protocol == htons(ETH_P_IP)) in igbvf_tso()
2019 case htons(ETH_P_IP): in igbvf_tx_csum()
2252 if (protocol == htons(ETH_P_IP)) in igbvf_xmit_frame_ring_adv()
/linux-4.1.27/drivers/net/ethernet/apm/xgene/
Dxgene_enet_main.c194 if (unlikely(skb->protocol != htons(ETH_P_IP)) && in xgene_enet_work_msg()
341 skb->protocol == htons(ETH_P_IP))) { in xgene_enet_rx_frame()
/linux-4.1.27/net/ipv6/
Dtcp_ipv6.c980 if (skb->protocol == htons(ETH_P_IP)) in tcp_v6_conn_request()
1010 if (skb->protocol == htons(ETH_P_IP)) { in tcp_v6_syn_recv_sock()
1215 if (skb->protocol == htons(ETH_P_IP)) in tcp_v6_do_rcv()
Dsit.c725 .proto = htons(ETH_P_IP),
1023 case htons(ETH_P_IP): in sit_tunnel_xmit()
Dip6_tunnel.c871 return ip6_tnl_rcv(skb, ETH_P_IP, IPPROTO_IPIP, in ip4ip6_rcv()
1217 case htons(ETH_P_IP): in ip6_tnl_xmit()
Dip6_vti.c529 case htons(ETH_P_IP): in vti6_tnl_xmit()
Dudp.c424 is_udp4 = (skb->protocol == htons(ETH_P_IP)); in udpv6_recvmsg()
Dip6_gre.c910 case htons(ETH_P_IP): in ip6gre_tunnel_xmit()
/linux-4.1.27/net/bluetooth/bnep/
Dcore.c92 s->proto_filter[0].start = ETH_P_IP; in bnep_set_default_proto_filter()
/linux-4.1.27/drivers/staging/rtl8723au/core/
Drtw_xmit.c401 if (pattrib->ether_type == ETH_P_IP) { in set_qos()
448 if (pattrib->ether_type == ETH_P_IP) { in update_attrib()
455 if (pattrib->ether_type == ETH_P_IP) {/* IP header */ in update_attrib()
/linux-4.1.27/drivers/net/ethernet/intel/i40e/
Di40e_txrx.c1961 if (protocol == htons(ETH_P_IP)) { in i40e_atr()
2002 flex_ptype |= (protocol == htons(ETH_P_IP)) ? in i40e_atr()
2704 if (protocol == htons(ETH_P_IP)) in i40e_xmit_frame_ring()
/linux-4.1.27/drivers/staging/rtl8192u/ieee80211/
Dieee80211_tx.c280 if (eth->h_proto != htons(ETH_P_IP)) in ieee80211_classify()
/linux-4.1.27/drivers/s390/net/
Dqeth_core.h854 case ETH_P_IP: in qeth_get_ip_version()
Dqeth_l3_main.c1885 ETH_P_IP); in qeth_l3_rebuild_skb()
1896 case __constant_htons(ETH_P_IP): in qeth_l3_rebuild_skb()
2759 else if (skb->protocol == ETH_P_IP) in qeth_l3_get_cast_type()
Dctcm_main.c91 (header->type != ETH_P_IP)) { in ctcm_unpack_skb()
Dnetiucv.c640 pskb->protocol = ntohs(ETH_P_IP); in netiucv_unpack_skb()
/linux-4.1.27/drivers/net/bonding/
Dbond_alb.c1338 case htons(ETH_P_IP): in bond_tlb_xmit()
1380 case ETH_P_IP: { in bond_alb_xmit()
Dbond_main.c2433 arp->ar_pro != htons(ETH_P_IP) || in bond_arp_rcv()
3102 if (skb->protocol == htons(ETH_P_IP)) { in bond_flow_dissect()
3701 if (iph->protocol == IPPROTO_IGMP && skb->protocol == htons(ETH_P_IP)) { in bond_xmit_roundrobin()
/linux-4.1.27/drivers/firewire/
Dnet.c492 case ETH_P_IP: in fwnet_finish_incoming_packet()
1253 case htons(ETH_P_IP): in fwnet_tx()
/linux-4.1.27/lib/
Dtest_bpf.c324 { { 10, ETH_P_IP }, { 100, ETH_P_IP } },
1827 skb->protocol = htons(ETH_P_IP); in populate_skb()
/linux-4.1.27/drivers/net/ethernet/emulex/benet/
Dbe.h772 return skb->protocol == htons(ETH_P_IP) && ip_hdr(skb)->version == 4; in is_ipv4_pkt()
Dbe_main.c4980 case htons(ETH_P_IP): in be_features_check()
/linux-4.1.27/drivers/net/ethernet/xilinx/
Dxilinx_emaclite.c416 if (proto_type == ETH_P_IP) { in xemaclite_recv_data()
Dll_temac_main.c773 (skb->protocol == htons(ETH_P_IP)) && in ll_temac_recv()
Dxilinx_axienet_main.c759 skb->protocol == htons(ETH_P_IP) && in axienet_recv()
/linux-4.1.27/drivers/infiniband/ulp/ipoib/
Dipoib_main.c734 if ((header->proto != htons(ETH_P_IP)) && in ipoib_start_xmit()
757 case htons(ETH_P_IP): in ipoib_start_xmit()
Dipoib_cm.c1393 if (skb->protocol == htons(ETH_P_IP)) in ipoib_cm_skb_reap()
/linux-4.1.27/drivers/net/ethernet/rocker/
Drocker.c1964 case ETH_P_IP: in rocker_cmd_flow_tbl_add_acl()
2833 __be16 eth_type = htons(ETH_P_IP); in rocker_port_ipv4_neigh()
3132 .eth_type = htons(ETH_P_IP),
3550 eth_type = htons(ETH_P_IP); in rocker_port_router_mac()
3770 __be16 eth_type = htons(ETH_P_IP); in rocker_port_fib_ipv4()
/linux-4.1.27/drivers/net/ethernet/broadcom/
Dbcmsysport.c900 case ETH_P_IP: in bcm_sysport_insert_tsb()
917 if (ip_proto == IPPROTO_UDP && ip_ver == ETH_P_IP) in bcm_sysport_insert_tsb()
/linux-4.1.27/drivers/staging/rtl8188eu/core/
Drtw_xmit.c467 if (ETH_P_IP == pattrib->ether_type) { in update_attrib()
474 if (ETH_P_IP == pattrib->ether_type) {/* IP header */ in update_attrib()
/linux-4.1.27/drivers/net/ethernet/
Djme.c973 if (skb->protocol != htons(ETH_P_IP)) in jme_udpsum()
2099 if (skb->protocol == htons(ETH_P_IP)) { in jme_tx_tso()
2129 case htons(ETH_P_IP): in jme_tx_csum()
/linux-4.1.27/drivers/net/
Dtun.c1034 struct tun_pi pi = { 0, cpu_to_be16(ETH_P_IP) }; in tun_get_user()
1144 pi.proto = htons(ETH_P_IP); in tun_get_user()
Dvxlan.c1356 parp->ar_pro != htons(ETH_P_IP) || in arp_reduce()
1588 case ETH_P_IP: in route_shortcircuit()
2082 (ntohs(eth->h_proto) == ETH_P_IP || in vxlan_xmit()
/linux-4.1.27/net/mpls/
Daf_mpls.c119 skb->protocol = htons(ETH_P_IP); in mpls_egress()
/linux-4.1.27/drivers/net/ethernet/faraday/
Dftgmac100.c688 if (protocol == cpu_to_be16(ETH_P_IP)) { in ftgmac100_xmit()
/linux-4.1.27/drivers/tty/
Dn_gsm.c2718 skb->protocol = __constant_htons(ETH_P_IP); in gsm_mux_rx_netchar()
2788 if (nc->protocol != htons(ETH_P_IP)) in gsm_create_network()
/linux-4.1.27/drivers/net/slip/
Dslip.c369 skb->protocol = htons(ETH_P_IP);
/linux-4.1.27/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_io.c556 if (protocol == ETH_P_IP) { in qlcnic_tx_pkt()
752 if (protocol == ETH_P_IP) in qlcnic_xmit_frame()
/linux-4.1.27/Documentation/networking/
Dpacket_mmap.txt627 int err, fd = socket(AF_PACKET, SOCK_RAW, htons(ETH_P_IP));
877 if (eth->h_proto == htons(ETH_P_IP)) {
/linux-4.1.27/drivers/net/ppp/
Dppp_generic.c330 case ETH_P_IP: in ethertype_to_npindex()
349 ETH_P_IP,
/linux-4.1.27/drivers/net/ethernet/marvell/
Dmvneta.c1239 if (l3_proto == htons(ETH_P_IP)) in mvneta_txq_desc_csum()
1406 if (l3_proto == htons(ETH_P_IP)) { in mvneta_skb_tx_csum()
Dmvpp2.c2363 mvpp2_prs_match_etype(&pe, 0, ETH_P_IP); in mvpp2_prs_etype_init()
4261 if (l3_proto == swab16(ETH_P_IP)) { in mvpp2_txq_desc_csum()
4961 if (skb->protocol == htons(ETH_P_IP)) { in mvpp2_skb_tx_csum()
Dmv643xx_eth.c700 BUG_ON(skb->protocol != htons(ETH_P_IP) && in skb_tx_csum()
/linux-4.1.27/drivers/net/wireless/ath/wil6210/
Dtxrx.c1066 case cpu_to_be16(ETH_P_IP): in wil_tx_desc_offload_cksum_set()
/linux-4.1.27/drivers/message/fusion/
Dmptlan.c1535 (fcllc->ethertype == htons(ETH_P_IP) || in mpt_lan_type_trans()
/linux-4.1.27/drivers/net/ethernet/toshiba/
Dps3_gelic_net.c722 if (skb->protocol == htons(ETH_P_IP)) { in gelic_descr_set_tx_cmdstat()
/linux-4.1.27/drivers/net/ethernet/tile/
Dtilepro.c1747 BUG_ON(skb->protocol != htons(ETH_P_IP)); in tile_net_tx_tso()
/linux-4.1.27/net/wireless/
Dutil.c769 case htons(ETH_P_IP): in cfg80211_classify8021d()
/linux-4.1.27/drivers/net/ethernet/intel/e1000e/
Dnetdev.c5209 if (protocol == htons(ETH_P_IP)) { in e1000_tso()
5271 case cpu_to_be16(ETH_P_IP): in e1000_tx_csum()
5490 if (((struct ethhdr *)skb->data)->h_proto != htons(ETH_P_IP)) in e1000_transfer_dhcp_info()
5644 if (protocol == htons(ETH_P_IP)) in e1000_xmit_frame()
/linux-4.1.27/drivers/net/ethernet/intel/e1000/
De1000_main.c2725 if (protocol == htons(ETH_P_IP)) { in e1000_tso()
2791 case cpu_to_be16(ETH_P_IP): in e1000_tx_csum()
3249 if (protocol == htons(ETH_P_IP)) in e1000_xmit_frame()
/linux-4.1.27/security/smack/
Dsmack_lsm.c3758 if (skb->protocol == htons(ETH_P_IP)) in smack_socket_getpeersec_dgram()
3861 if (skb->protocol == htons(ETH_P_IP)) in smack_inet_conn_request()
/linux-4.1.27/drivers/net/ethernet/broadcom/genet/
Dbcmgenet.c1246 case ETH_P_IP: in bcmgenet_put_tx_csum()
1265 if (ip_proto == IPPROTO_UDP && ip_ver == ETH_P_IP) in bcmgenet_put_tx_csum()
/linux-4.1.27/drivers/net/ethernet/sgi/
Dioc3-eth.c530 if (eh->h_proto != htons(ETH_P_IP)) in ioc3_tcpudp_checksum()
/linux-4.1.27/drivers/net/ethernet/ibm/
Dibmveth.c964 ((skb->protocol == htons(ETH_P_IP) && in ibmveth_start_xmit()
/linux-4.1.27/net/appletalk/
Dddp.c1298 skb->protocol = htons(ETH_P_IP); in handle_ip_over_ddp()
/linux-4.1.27/security/selinux/
Dhooks.c4428 if (family == PF_INET6 && skb->protocol == htons(ETH_P_IP)) in selinux_socket_sock_rcv_skb()
4520 if (skb && skb->protocol == htons(ETH_P_IP)) in selinux_socket_getpeersec_dgram()
4644 if (family == PF_INET6 && skb->protocol == htons(ETH_P_IP)) in selinux_inet_conn_established()
/linux-4.1.27/drivers/net/ethernet/atheros/atlx/
Datl1.c2132 if (skb->protocol == htons(ETH_P_IP)) { in atl1_tso()
2390 if (skb->protocol == htons(ETH_P_IP)) { in atl1_xmit_frame()
/linux-4.1.27/drivers/net/ethernet/intel/ixgbevf/
Dixgbevf_main.c3288 if (first->protocol == htons(ETH_P_IP)) { in ixgbevf_tso()
3348 case htons(ETH_P_IP): in ixgbevf_tx_csum()
/linux-4.1.27/drivers/net/ethernet/intel/i40evf/
Di40e_txrx.c1935 if (protocol == htons(ETH_P_IP)) in i40e_xmit_frame_ring()
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/
Dixgbe_main.c6799 if (first->protocol == htons(ETH_P_IP)) { in ixgbe_tso()
6859 case htons(ETH_P_IP): in ixgbe_tx_csum()
7179 (first->protocol != htons(ETH_P_IP) || in ixgbe_atr()
7217 if (first->protocol == htons(ETH_P_IP)) { in ixgbe_atr()
/linux-4.1.27/drivers/net/ethernet/brocade/bna/
Dbnad.c2510 if (vlan_get_protocol(skb) == htons(ETH_P_IP)) { in bnad_tso_prepare()
2877 if (net_proto == htons(ETH_P_IP)) in bnad_txq_wi_prepare()
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb/
Dsge.c1379 skb->protocol == htons(ETH_P_IP) && in sge_rx()
/linux-4.1.27/drivers/net/wireless/rtlwifi/
Dbase.c1353 if (ETH_P_IP == ether_type) { in rtl_is_special_data()
/linux-4.1.27/drivers/net/wireless/ti/wlcore/
Dcmd.c1243 arp_hdr->ar_pro = cpu_to_be16(ETH_P_IP); in wl1271_cmd_build_arp_rsp()
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/
Dd3.c409 pkt->eth.h_proto = cpu_to_be16(ETH_P_IP), in iwl_mvm_build_tcp_packet()
/linux-4.1.27/include/linux/
Dnetdevice.h3581 protocol == htons(ETH_P_IP)) || in can_checksum_protocol()
/linux-4.1.27/drivers/net/ethernet/atheros/atl1e/
Datl1e_main.c1623 if (skb->protocol == htons(ETH_P_IP) || in atl1e_cal_tdp_req()
/linux-4.1.27/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_main.c1173 if (skb->protocol == htons(ETH_P_IP)) { in pch_gbe_tx_queue()
/linux-4.1.27/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_main.c1923 if (protocol == cpu_to_be16(ETH_P_IP)) { in netxen_tso_check()
/linux-4.1.27/drivers/net/ethernet/intel/igb/
Digb_main.c4669 if (first->protocol == htons(ETH_P_IP)) { in igb_tso()
4726 case htons(ETH_P_IP): in igb_tx_csum()
/linux-4.1.27/drivers/net/ethernet/realtek/
Dr8169.c6975 case htons(ETH_P_IP): in rtl8169_tso_csum_v2()
7007 case htons(ETH_P_IP): in rtl8169_tso_csum_v2()
/linux-4.1.27/drivers/net/ethernet/freescale/
Dfec_main.c343 return skb->protocol == htons(ETH_P_IP) && ip_hdr(skb)->version == 4; in is_ipv4_pkt()
/linux-4.1.27/drivers/net/ethernet/ibm/ehea/
Dehea_main.c1997 if (vlan_get_protocol(skb) != htons(ETH_P_IP)) in xmit_common()
/linux-4.1.27/drivers/net/vmxnet3/
Dvmxnet3_drv.c950 ctx.ipv4 = (vlan_get_protocol(skb) == cpu_to_be16(ETH_P_IP)); in vmxnet3_tq_xmit()
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
Den_netdev.c314 if (skb->protocol != htons(ETH_P_IP)) in mlx4_en_filter_rfs()
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c723 case ETH_P_IP: in bnx2x_gro_receive()
/linux-4.1.27/drivers/net/ethernet/neterion/vxge/
Dvxge-main.c634 if (skb->protocol == htons(ETH_P_IP)) { in vxge_get_vpath_no()
/linux-4.1.27/drivers/net/ethernet/myricom/myri10ge/
Dmyri10ge.c1284 (vh->h_vlan_encapsulated_proto == htons(ETH_P_IP) || in myri10ge_vlan_ip_csum()
/linux-4.1.27/drivers/net/ethernet/qlogic/qlge/
Dqlge_main.c2582 if (likely(l3_proto == htons(ETH_P_IP))) { in ql_tso()

12