Searched refs:proto (Results 251 - 275 of 1024) sorted by relevance

<<11121314151617181920>>

/linux-master/net/netfilter/
H A Dxt_TPROXY.c175 if ((i->proto == IPPROTO_TCP || i->proto == IPPROTO_UDP) &&
198 if ((i->proto == IPPROTO_TCP || i->proto == IPPROTO_UDP)
H A Dxt_osf.c38 .proto = IPPROTO_TCP,
/linux-master/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_tc_u32_parse.h79 f->val.proto = (ntohl(val) >> 16) & 0x000000FF;
80 f->mask.proto = (ntohl(mask) >> 16) & 0x000000FF;
125 f->val.proto = (ntohl(val) >> 8) & 0x000000FF;
126 f->mask.proto = (ntohl(mask) >> 8) & 0x000000FF;
/linux-master/include/net/
H A Dudplite.h15 extern struct proto udplite_prot;
/linux-master/tools/testing/selftests/bpf/
H A Dnetlink_helpers.h15 int proto; member in struct:rtnl_handle
/linux-master/net/dsa/
H A Dtag_mtk.c99 .proto = DSA_TAG_PROTO_MTK,
H A Dtag_hellcreek.c64 .proto = DSA_TAG_PROTO_HELLCREEK,
H A Dtag_trailer.c56 .proto = DSA_TAG_PROTO_TRAILER,
H A Dtag_xrs700x.c57 .proto = DSA_TAG_PROTO_XRS700X,
H A Dtag_sja1105.c178 u16 proto; local
200 br_vlan_get_proto(br, &proto);
202 return proto;
713 static void sja1105_flow_dissect(const struct sk_buff *skb, __be16 *proto, argument
720 dsa_tag_generic_flow_dissect(skb, proto, offset);
723 static void sja1110_flow_dissect(const struct sk_buff *skb, __be16 *proto, argument
730 return dsa_tag_generic_flow_dissect(skb, proto, offset);
734 *proto = ((__be16 *)skb->data)[(VLAN_HLEN / 2) - 1];
774 .proto = DSA_TAG_PROTO_SJA1105,
789 .proto
[all...]
/linux-master/drivers/net/ethernet/intel/iavf/
H A Diavf_fdir.c72 if (fltr->ip_mask.proto && fltr->ip_mask.proto != U8_MAX)
325 if (fltr->ip_mask.proto == U8_MAX) {
326 iph->protocol = fltr->ip_data.proto;
365 if (fltr->ip_mask.proto == U8_MAX) {
366 iph->nexthdr = fltr->ip_data.proto;
539 if (!fltr->ip_mask.proto) /* IPv4/IPv6 header only */
546 if (fltr->ip_data.proto == 115 && fltr->ip_mask.l4_header == htonl(U32_MAX)) {
713 const char *proto = iavf_fdir_flow_proto_name(fltr->flow_type); local
715 if (!proto)
[all...]
/linux-master/drivers/mtd/spi-nor/
H A Ddebugfs.c34 static const char *spi_nor_protocol_name(enum spi_nor_protocol proto) argument
36 switch (proto) {
168 seq_printf(s, " %s%s\n", spi_nor_protocol_name(cmd->proto),
178 seq_printf(s, " %s\n", spi_nor_protocol_name(cmd->proto));
H A Dcore.h149 enum spi_nor_protocol proto; member in struct:spi_nor_read_command
154 enum spi_nor_protocol proto; member in struct:spi_nor_pp_command
613 const enum spi_nor_protocol proto);
642 enum spi_nor_protocol proto);
644 enum spi_nor_protocol proto);
661 enum spi_nor_protocol proto);
663 enum spi_nor_protocol proto);
/linux-master/drivers/infiniband/ulp/opa_vnic/
H A Dopa_vnic_encap.c414 u8 proto, rout_ctrl; local
418 proto = ipv6_hdr(skb)->nexthdr;
419 if (proto == IPPROTO_TCP)
422 else if (proto == IPPROTO_UDP)
429 proto = ip_hdr(skb)->protocol;
430 if (proto == IPPROTO_TCP)
433 else if (proto == IPPROTO_UDP)
/linux-master/tools/testing/selftests/bpf/progs/
H A Dbpf_flow.c51 __be16 proto; member in struct:gre_hdr
116 static __always_inline int parse_eth_proto(struct __sk_buff *skb, __be16 proto) argument
120 switch (proto) {
165 static __always_inline int parse_ip_proto(struct __sk_buff *skb, __u8 proto) argument
175 switch (proto) {
214 if (gre->proto == bpf_htons(ETH_P_TEB)) {
224 return parse_eth_proto(skb, gre->proto);
/linux-master/net/sched/
H A Dact_ctinfo.c32 struct sk_buff *skb, int wlen, int proto)
39 switch (proto) {
90 int proto, wlen; local
106 proto = NFPROTO_IPV4;
113 proto = NFPROTO_IPV6;
122 proto, cp->net, &tuple))
136 tcf_ctinfo_dscp_set(ct, ca, cp, skb, wlen, proto);
30 tcf_ctinfo_dscp_set(struct nf_conn *ct, struct tcf_ctinfo *ca, struct tcf_ctinfo_params *cp, struct sk_buff *skb, int wlen, int proto) argument
/linux-master/net/core/
H A Dflow_dissector.c980 __be16 proto, int nhoff, int hlen, unsigned int flags)
987 flow_keys->n_proto = proto;
1020 * @proto: protocol for which to get the flow, if @data is NULL use skb->protocol
1036 __be16 proto, int nhoff, int hlen, unsigned int flags)
1053 proto = skb_vlan_tag_present(skb) ?
1059 proto == htons(ETH_P_XDSA))) {
1069 ops->flow_dissect(skb, &proto, &offset);
1072 &proto,
1121 __be16 n_proto = proto;
1127 /* we can't use 'proto' i
979 bpf_flow_dissect(struct bpf_prog *prog, struct bpf_flow_dissector *ctx, __be16 proto, int nhoff, int hlen, unsigned int flags) argument
1032 __skb_flow_dissect(const struct net *net, const struct sk_buff *skb, struct flow_dissector *flow_dissector, void *target_container, const void *data, __be16 proto, int nhoff, int hlen, unsigned int flags) argument
1336 __be16 proto; member in struct:__anon3373
[all...]
/linux-master/net/can/
H A Daf_can.c132 err = request_module("can-proto-%d", protocol);
139 pr_err_ratelimited("can: request_module (can-proto-%d) failed.\n",
735 int proto = cp->protocol; local
738 if (proto < 0 || proto >= CAN_NPROTO) {
739 pr_err("can: protocol number %d out of range\n", proto);
749 if (rcu_access_pointer(proto_tab[proto])) {
750 pr_err("can: protocol %d already registered\n", proto);
753 RCU_INIT_POINTER(proto_tab[proto], cp);
771 int proto local
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_ipip.c98 mlxsw_sp_ipip_netdev_saddr(enum mlxsw_sp_l3proto proto, argument
104 switch (proto) {
128 mlxsw_sp_ipip_netdev_daddr(enum mlxsw_sp_l3proto proto, argument
134 switch (proto) {
160 .proto = MLXSW_SP_L3_PROTO_IPV4,
226 static bool mlxsw_sp_ipip_tunnel_complete(enum mlxsw_sp_l3proto proto, argument
229 union mlxsw_sp_l3addr saddr = mlxsw_sp_ipip_netdev_saddr(proto, ol_dev);
230 union mlxsw_sp_l3addr daddr = mlxsw_sp_ipip_netdev_daddr(proto, ol_dev);
296 new_parms->proto,
378 .proto
[all...]
/linux-master/tools/testing/selftests/net/
H A Dcmsg_sender.c59 unsigned int proto; member in struct:options::__anon3748
81 .proto = IPPROTO_UDP,
134 opt.sock.proto = IPPROTO_UDP;
136 opt.sock.proto = IPPROTO_ICMP;
462 if (ai->ai_family == AF_INET6 && opt.sock.proto == IPPROTO_ICMP)
463 opt.sock.proto = IPPROTO_ICMPV6;
465 fd = socket(ai->ai_family, opt.sock.type, opt.sock.proto);
472 if (opt.sock.proto == IPPROTO_ICMP) {
475 } else if (opt.sock.proto == IPPROTO_ICMPV6) {
483 sin6->sin6_port = htons(opt.sock.proto);
[all...]
H A Dtcp_fastopen_backup_key.c89 static void build_rcv_fd(int family, int proto, int *rcv_fds) argument
124 rcv_fds[i] = socket(family, proto, 0);
136 if (proto == SOCK_STREAM && listen(rcv_fds[i], 10))
141 static int connect_and_send(int family, int proto) argument
187 fd = socket(family, proto, 0);
/linux-master/net/ipv6/
H A Dseg6_iptunnel.c128 int seg6_do_srh_encap(struct sk_buff *skb, struct ipv6_sr_hdr *osrh, int proto) argument
181 isrh->nexthdr = proto;
204 struct ipv6_sr_hdr *osrh, int proto)
264 hdr->nexthdr = proto;
301 isrh->nexthdr = proto;
378 int proto, err = 0; local
398 proto = IPPROTO_IPV6;
400 proto = IPPROTO_IPIP;
405 err = seg6_do_srh_encap(skb, tinfo->srh, proto);
407 err = seg6_do_srh_encap_red(skb, tinfo->srh, proto);
203 seg6_do_srh_encap_red(struct sk_buff *skb, struct ipv6_sr_hdr *osrh, int proto) argument
[all...]
/linux-master/include/net/netfilter/
H A Dnf_flow_table.h130 __be16 proto; member in struct:flow_offload_tuple::__anon59
206 __be16 proto; member in struct:nf_flow_route::__anon65::__anon66::__anon67
341 __be16 proto; local
343 proto = *((__be16 *)(skb_mac_header(skb) + ETH_HLEN +
345 switch (proto) {
/linux-master/net/802/
H A Dgarp.c262 app->app->proto.group_address);
512 static void garp_pdu_rcv(const struct stp_proto *proto, struct sk_buff *skb, argument
515 struct garp_application *appl = proto->data;
588 err = dev_mc_add(dev, appl->proto.group_address);
632 dev_mc_del(dev, appl->proto.group_address);
640 appl->proto.rcv = garp_pdu_rcv;
641 appl->proto.data = appl;
642 return stp_proto_register(&appl->proto);
648 stp_proto_unregister(&appl->proto);
/linux-master/drivers/gpu/drm/nouveau/nvif/
H A Doutp.c358 u8 proto,
365 args->proto = proto;
373 *proto_out = args->proto;
384 NVIF_ERRON(ret && ret != -ENODEV, &outp->object, "[INHERIT proto:LVDS] ret:%d", ret);
395 NVIF_ERRON(ret && ret != -ENODEV, &outp->object, "[INHERIT proto:TMDS] ret:%d", ret);
406 NVIF_ERRON(ret && ret != -ENODEV, &outp->object, "[INHERIT proto:DP] ret:%d", ret);
420 NVIF_ERRON(ret && ret != -ENODEV, &outp->object, "[INHERIT proto:RGB_CRT] ret:%d", ret);
526 switch (args.proto) {
528 outp->info.proto
357 nvif_outp_inherit(struct nvif_outp *outp, u8 proto, struct nvif_outp_inherit_v0 *args, u8 *proto_out) argument
[all...]

Completed in 213 milliseconds

<<11121314151617181920>>