/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_xdp_noinline.c | 118 __u8 proto; member 141 __u8 proto; member 461 pckt->flow.proto = ip6h->nexthdr; in parse_icmpv6() 488 pckt->flow.proto = iph->protocol; in parse_icmp() 552 if (pckt->flow.proto == IPPROTO_UDP) in get_packet_dst() 573 if (pckt->flow.proto == IPPROTO_UDP) { in connection_table_lookup() 602 pckt->flow.proto = *protocol; in process_l3_headers_v6() 633 pckt->flow.proto = *protocol; in process_l3_headers_v4() 677 protocol = pckt.flow.proto; in process_packet() 693 vip.proto = pckt.flow.proto; in process_packet() [all …]
|
/openbmc/linux/net/batman-adv/ |
H A D | soft-interface.c | 204 __be16 proto; in batadv_interface_tx() local 218 proto = ethhdr->h_proto; in batadv_interface_tx() 220 switch (ntohs(proto)) { in batadv_interface_tx() 225 proto = vhdr->h_vlan_encapsulated_proto; in batadv_interface_tx() 228 if (proto != htons(ETH_P_BATMAN)) { in batadv_interface_tx() 257 batadv_dat_snoop_outgoing_dhcp_ack(bat_priv, skb, proto, vid); in batadv_interface_tx() 625 static int batadv_interface_add_vid(struct net_device *dev, __be16 proto, in batadv_interface_add_vid() argument 634 if (proto != htons(ETH_P_8021Q)) in batadv_interface_add_vid() 672 static int batadv_interface_kill_vid(struct net_device *dev, __be16 proto, in batadv_interface_kill_vid() argument 681 if (proto != htons(ETH_P_8021Q)) in batadv_interface_kill_vid()
|
/openbmc/linux/net/ipv6/ |
H A D | seg6_iptunnel.c | 128 int seg6_do_srh_encap(struct sk_buff *skb, struct ipv6_sr_hdr *osrh, int proto) in seg6_do_srh_encap() argument 181 isrh->nexthdr = proto; in seg6_do_srh_encap() 204 struct ipv6_sr_hdr *osrh, int proto) in seg6_do_srh_encap_red() argument 264 hdr->nexthdr = proto; in seg6_do_srh_encap_red() 301 isrh->nexthdr = proto; in seg6_do_srh_encap_red() 378 int proto, err = 0; in seg6_do_srh() local 398 proto = IPPROTO_IPV6; in seg6_do_srh() 400 proto = IPPROTO_IPIP; in seg6_do_srh() 405 err = seg6_do_srh_encap(skb, tinfo->srh, proto); in seg6_do_srh() 407 err = seg6_do_srh_encap_red(skb, tinfo->srh, proto); in seg6_do_srh()
|
/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
H A D | msgbuf.c | 1573 drvr->proto->hdrpull = brcmf_msgbuf_hdrpull; in brcmf_proto_msgbuf_attach() 1574 drvr->proto->query_dcmd = brcmf_msgbuf_query_dcmd; in brcmf_proto_msgbuf_attach() 1575 drvr->proto->set_dcmd = brcmf_msgbuf_set_dcmd; in brcmf_proto_msgbuf_attach() 1576 drvr->proto->tx_queue_data = brcmf_msgbuf_tx_queue_data; in brcmf_proto_msgbuf_attach() 1578 drvr->proto->delete_peer = brcmf_msgbuf_delete_peer; in brcmf_proto_msgbuf_attach() 1579 drvr->proto->add_tdls_peer = brcmf_msgbuf_add_tdls_peer; in brcmf_proto_msgbuf_attach() 1580 drvr->proto->rxreorder = brcmf_msgbuf_rxreorder; in brcmf_proto_msgbuf_attach() 1582 drvr->proto->pd = msgbuf; in brcmf_proto_msgbuf_attach() 1663 if (drvr->proto->pd) { in brcmf_proto_msgbuf_detach() 1664 msgbuf = (struct brcmf_msgbuf *)drvr->proto->pd; in brcmf_proto_msgbuf_detach() [all …]
|
/openbmc/linux/net/ipv4/ |
H A D | ip_gre.c | 146 if (tpi->proto == htons(ETH_P_TEB)) in ipgre_err() 411 if (tpi->proto == htons(ETH_P_TEB)) in ipgre_rcv() 464 __be16 proto) in __gre_xmit() argument 483 __be16 proto) in gre_fb_xmit() argument 528 __be16 proto; in erspan_fb_xmit() local 580 proto = htons(ETH_P_ERSPAN); in erspan_fb_xmit() 587 proto = htons(ETH_P_ERSPAN2); in erspan_fb_xmit() 684 __be16 proto; in erspan_xmit() local 708 proto = htons(ETH_P_ERSPAN); in erspan_xmit() 714 proto = htons(ETH_P_ERSPAN); in erspan_xmit() [all …]
|
/openbmc/google-misc/subprojects/nemora-postd/src/ |
H A D | serializer.cpp | 48 platforms::nemora::proto::EventSeries pb; in SerializeEvent() 63 platforms::nemora::proto::EventSeries::NATIVE_32_BIT); in SerializeEvent()
|
/openbmc/linux/tools/testing/selftests/netfilter/ |
H A D | nft_queue.sh | 185 local proto=$1 188 table $proto blackh { 195 if [ $proto = "ip" ] ;then 198 elif [ $proto = "ip6" ]; then 207 echo "FAIL: $proto expected failure, got $lret" 1>&2 211 ip netns exec ${nsrouter} nft delete table $proto blackh 213 echo "FAIL: $proto: Could not delete blackh table" 217 echo "PASS: $proto: statement with no listener results in packet drop"
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | pmtu.sh | 564 proto=${1} 571 [ ${proto} -eq 6 ] && vti_type="vti6" || vti_type="vti" 579 run_cmd ${ns_a} ip link set vti${proto}_a up 580 run_cmd ${ns_b} ip link set vti${proto}_b up 667 proto=${1} 674 …run_cmd ${ns_a} ip -${proto} xfrm policy add dir out mark 10 tmpl src ${veth_a_addr} dst ${veth_b_… 675 …run_cmd ${ns_a} ip -${proto} xfrm policy add dir in mark 10 tmpl src ${veth_b_addr} dst ${veth_a_a… 679 …run_cmd ${ns_b} ip -${proto} xfrm policy add dir out mark 10 tmpl src ${veth_b_addr} dst ${veth_a_… 680 …run_cmd ${ns_b} ip -${proto} xfrm policy add dir in mark 10 tmpl src ${veth_a_addr} dst ${veth_b_a… 692 [ ${1} -eq 6 ] && proto="-6" || proto="" [all …]
|
H A D | tcp_fastopen_backup_key.c | 89 static void build_rcv_fd(int family, int proto, int *rcv_fds) in build_rcv_fd() argument 124 rcv_fds[i] = socket(family, proto, 0); in build_rcv_fd() 136 if (proto == SOCK_STREAM && listen(rcv_fds[i], 10)) in build_rcv_fd() 141 static int connect_and_send(int family, int proto) in connect_and_send() argument 187 fd = socket(family, proto, 0); in connect_and_send()
|
/openbmc/linux/drivers/infiniband/ulp/opa_vnic/ |
H A D | opa_vnic_encap.c | 414 u8 proto, rout_ctrl; in opa_vnic_get_rc() local 418 proto = ipv6_hdr(skb)->nexthdr; in opa_vnic_get_rc() 419 if (proto == IPPROTO_TCP) in opa_vnic_get_rc() 422 else if (proto == IPPROTO_UDP) in opa_vnic_get_rc() 429 proto = ip_hdr(skb)->protocol; in opa_vnic_get_rc() 430 if (proto == IPPROTO_TCP) in opa_vnic_get_rc() 433 else if (proto == IPPROTO_UDP) in opa_vnic_get_rc()
|
/openbmc/linux/include/linux/ |
H A D | in.h | 21 static inline int proto_ports_offset(int proto) in proto_ports_offset() argument 23 switch (proto) { in proto_ports_offset()
|
/openbmc/linux/arch/x86/lib/ |
H A D | csum-wrappers_64.c | 78 __u32 len, __u8 proto, __wsum sum) in csum_ipv6_magic() argument 82 rest = (__force __u64)htonl(len) + (__force __u64)htons(proto) + in csum_ipv6_magic()
|
/openbmc/linux/sound/soc/atmel/ |
H A D | Makefile | 34 snd-soc-mikroe-proto-objs := mikroe-proto.o 42 obj-$(CONFIG_SND_SOC_MIKROE_PROTO) += snd-soc-mikroe-proto.o
|
/openbmc/linux/arch/arm64/lib/ |
H A D | csum.c | 134 __u32 len, __u8 proto, __wsum csum) in csum_ipv6_magic() argument 144 sum += (u32)proto << 24; in csum_ipv6_magic() 146 sum += proto; in csum_ipv6_magic()
|
/openbmc/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | rif_mac_profiles.sh | 112 tc filter add dev $rp2 egress proto ip pref 1 handle 101 \ 118 tc filter add dev $h2 ingress proto ip pref 1 handle 101 \ 147 tc filter add dev $rp1 egress proto ip pref 1 handle 101 \ 151 tc filter add dev $h1 ingress proto ip pref 1 handle 101 \
|
/openbmc/linux/net/dsa/ |
H A D | tag_8021q.c | 77 __be16 proto; member 361 vlan_vid_add(master, ctx->proto, vid); in dsa_tag_8021q_port_setup() 383 vlan_vid_del(master, ctx->proto, vid); in dsa_tag_8021q_port_teardown() 415 int dsa_tag_8021q_register(struct dsa_switch *ds, __be16 proto) in dsa_tag_8021q_register() argument 424 ctx->proto = proto; in dsa_tag_8021q_register()
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-class-rc | 30 Writing "+proto" will add a protocol to the list of enabled 33 Writing "-proto" will remove a protocol from the list of enabled 36 Writing "proto" will enable only "proto". 93 Writing "proto" will use "proto" for wakeup events.
|
/openbmc/linux/Documentation/devicetree/bindings/sound/ |
H A D | mikroe,mikroe-proto.txt | 4 - compatible: "mikroe,mikroe-proto" 17 compatible = "mikroe,mikroe-proto";
|
/openbmc/linux/drivers/net/ethernet/cisco/enic/ |
H A D | enic_dev.h | 35 int enic_vlan_rx_add_vid(struct net_device *netdev, __be16 proto, u16 vid); 36 int enic_vlan_rx_kill_vid(struct net_device *netdev, __be16 proto, u16 vid);
|
/openbmc/linux/include/net/netfilter/ |
H A D | nf_flow_table.h | 129 __be16 proto; member 205 __be16 proto; member 340 __be16 proto; in __nf_flow_pppoe_proto() local 342 proto = *((__be16 *)(skb_mac_header(skb) + ETH_HLEN + in __nf_flow_pppoe_proto() 344 switch (proto) { in __nf_flow_pppoe_proto()
|
/openbmc/qemu/include/net/ |
H A D | eth.h | 301 uint16_t proto = be16_to_cpu(PKT_GET_ETH_HDR(p)->h_proto); in eth_get_l2_hdr_length() local 303 switch (proto) { in eth_get_l2_hdr_length() 333 uint16_t proto = be16_to_cpu(PKT_GET_ETH_HDR(p)->h_proto); in eth_get_pkt_tci() local 335 switch (proto) { in eth_get_pkt_tci() 393 EthL4HdrProto proto; member
|
/openbmc/linux/drivers/net/ethernet/mscc/ |
H A D | ocelot_flower.c | 207 switch (ntohs(a->vlan.proto)) { in ocelot_flower_parse_egress_vlan_modify() 468 switch (ntohs(a->vlan.proto)) { in ocelot_flower_parse_action() 579 u16 proto = ntohs(f->common.protocol); in ocelot_flower_parse_key() local 685 filter->key.ipv4.proto.value[0] = in ocelot_flower_parse_key() 687 filter->key.ipv4.proto.mask[0] = in ocelot_flower_parse_key() 699 filter->key.ipv6.proto.value[0] = in ocelot_flower_parse_key() 701 filter->key.ipv6.proto.mask[0] = in ocelot_flower_parse_key() 708 proto == ETH_P_IP) { in ocelot_flower_parse_key() 741 proto == ETH_P_IPV6) { in ocelot_flower_parse_key() 763 if (match_protocol && proto != ETH_P_ALL) { in ocelot_flower_parse_key() [all …]
|
/openbmc/linux/include/trace/events/ |
H A D | libata.h | 122 #define ata_protocol_name(proto) { proto, #proto } argument 205 __field( unsigned char, proto ) 213 __entry->proto = qc->tf.protocol; 231 show_protocol_name(__entry->proto), 338 __field( unsigned char, proto ) 343 __entry->proto = tf->protocol; 361 show_protocol_name(__entry->proto), 383 __field( unsigned char, proto ) 389 __entry->proto = tf->protocol; 397 show_protocol_name(__entry->proto),
|
/openbmc/linux/net/netfilter/ |
H A D | nft_flow_offload.c | 85 __be16 proto; member 129 info->encap[info->num_encaps].proto = path->encap.proto; in nft_dev_path_info() 144 info->encap[info->num_encaps].proto = path->bridge.vlan_proto; in nft_dev_path_info() 207 route->tuple[!dir].in.encap[i].proto = info.encap[i].proto; in nft_dev_forward_path() 360 ct->proto.tcp.seen[0].flags |= IP_CT_TCP_FLAG_BE_LIBERAL; in nft_flow_offload_eval() 361 ct->proto.tcp.seen[1].flags |= IP_CT_TCP_FLAG_BE_LIBERAL; in nft_flow_offload_eval()
|
/openbmc/linux/drivers/net/usb/ |
H A D | cdc_mbim.c | 72 static int cdc_mbim_rx_add_vid(struct net_device *netdev, __be16 proto, u16 vid) in cdc_mbim_rx_add_vid() argument 86 static int cdc_mbim_rx_kill_vid(struct net_device *netdev, __be16 proto, u16 vid) in cdc_mbim_rx_kill_vid() argument 211 static bool is_ip_proto(__be16 proto) in is_ip_proto() argument 213 switch (proto) { in is_ip_proto() 369 __be16 proto = htons(ETH_P_802_3); in cdc_mbim_process_dgram() local 378 proto = htons(ETH_P_IP); in cdc_mbim_process_dgram() 383 proto = htons(ETH_P_IPV6); in cdc_mbim_process_dgram() 397 eth_hdr(skb)->h_proto = proto; in cdc_mbim_process_dgram()
|