Home
last modified time | relevance | path

Searched refs:proto (Results 76 - 100 of 3769) sorted by relevance

12345678910>>...151

/kernel/linux/linux-6.6/samples/bpf/
H A Dsockex2_kern.c29 static inline int proto_ports_offset(__u64 proto) in proto_ports_offset() argument
31 switch (proto) { in proto_ports_offset()
105 __u64 proto = load_half(skb, 12); in flow_dissector() local
108 if (proto == ETH_P_8021AD) { in flow_dissector()
109 proto = load_half(skb, nhoff + offsetof(struct vlan_hdr, in flow_dissector()
114 if (proto == ETH_P_8021Q) { in flow_dissector()
115 proto = load_half(skb, nhoff + offsetof(struct vlan_hdr, in flow_dissector()
120 if (likely(proto == ETH_P_IP)) in flow_dissector()
122 else if (proto == ETH_P_IPV6) in flow_dissector()
131 __be16 proto; in flow_dissector() member
[all...]
/third_party/protobuf/python/google/protobuf/internal/
H A Dproto_builder_test.py60 """Test that we can create a proto class."""
64 proto = proto_cls()
65 proto.foo = 12345
66 proto.bar = 'asdf'
68 'bar: "asdf"\nfoo: 12345\n', text_format.MessageToString(proto))
75 proto = proto_cls()
76 proto.foo = 12345
77 proto.bar = 'asdf'
79 'foo: 12345\nbar: "asdf"\n', text_format.MessageToString(proto))
/third_party/protobuf/csharp/src/Google.Protobuf/Reflection/
H A DEnumDescriptor.cs40 /// Descriptor for an enum type in a .proto file.
44 private readonly EnumDescriptorProto proto; field in Google.Protobuf.Reflection.EnumDescriptor
49 internal EnumDescriptor(EnumDescriptorProto proto, FileDescriptor file, MessageDescriptor parent, int index, Type clrType) in EnumDescriptor() argument
50 : base(file, file.ComputeFullName(parent, proto.Name), index) in EnumDescriptor()
52 this.proto = proto; in EnumDescriptor()
56 if (proto.Value.Count == 0) in EnumDescriptor()
63 values = DescriptorUtil.ConvertAndMakeReadOnly(proto.Value, in EnumDescriptor()
69 internal EnumDescriptorProto Proto { get { return proto; } }
74 public override string Name { get { return proto
[all...]
H A DMethodDescriptor.cs43 private readonly MethodDescriptorProto proto; field in Google.Protobuf.Reflection.MethodDescriptor
66 public bool IsClientStreaming { get { return proto.ClientStreaming; } }
71 public bool IsServerStreaming { get { return proto.ServerStreaming; } }
80 /// The <c>MethodOptions</c>, defined in <c>descriptor.proto</c>.
106 internal MethodDescriptor(MethodDescriptorProto proto, FileDescriptor file, in MethodDescriptor() argument
108 : base(file, parent.FullName + "." + proto.Name, index) in MethodDescriptor()
110 this.proto = proto; in MethodDescriptor()
115 internal MethodDescriptorProto Proto { get { return proto; } }
120 public override string Name { get { return proto
[all...]
H A DOneofDescriptor.cs48 private readonly OneofDescriptorProto proto; field in Google.Protobuf.Reflection.OneofDescriptor
53 internal OneofDescriptor(OneofDescriptorProto proto, FileDescriptor file, MessageDescriptor parent, int index, string clrName) in OneofDescriptor() argument
54 : base(file, file.ComputeFullName(parent, proto.Name), index) in OneofDescriptor()
56 this.proto = proto; in OneofDescriptor()
61 // diving into the proto directly rather than using FieldDescriptor, but that's okay. in OneofDescriptor()
71 public override string Name { get { return proto.Name; } }
121 public CustomOptions CustomOptions => new CustomOptions(proto.Options?._extensions?.ValuesByNumber);
124 /// The <c>OneofOptions</c>, defined in <c>descriptor.proto</c>.
129 public OneofOptions GetOptions() => proto
[all...]
H A DServiceDescriptor.cs45 private readonly ServiceDescriptorProto proto; field in Google.Protobuf.Reflection.ServiceDescriptor
48 internal ServiceDescriptor(ServiceDescriptorProto proto, FileDescriptor file, int index) in ServiceDescriptor() argument
49 : base(file, file.ComputeFullName(null, proto.Name), index) in ServiceDescriptor()
51 this.proto = proto; in ServiceDescriptor()
52 methods = DescriptorUtil.ConvertAndMakeReadOnly(proto.Method, in ServiceDescriptor()
61 public override string Name { get { return proto.Name; } }
74 internal ServiceDescriptorProto Proto { get { return proto; } }
101 /// The <c>ServiceOptions</c>, defined in <c>descriptor.proto</c>.
H A DEnumValueDescriptor.cs39 /// Descriptor for a single enum value within an enum in a .proto file.
44 private readonly EnumValueDescriptorProto proto; field in Google.Protobuf.Reflection.EnumValueDescriptor
46 internal EnumValueDescriptor(EnumValueDescriptorProto proto, FileDescriptor file, in EnumValueDescriptor() argument
48 : base(file, parent.FullName + "." + proto.Name, index) in EnumValueDescriptor()
50 this.proto = proto; in EnumValueDescriptor()
56 internal EnumValueDescriptorProto Proto { get { return proto; } }
61 public override string Name { get { return proto.Name; } }
80 /// The <c>EnumValueOptions</c>, defined in <c>descriptor.proto</c>.
/third_party/libcoap/src/
H A Dcoap_address.c428 coap_proto_t proto = 0; in coap_resolve_address_info() local
448 proto = COAP_PROTO_UDP; in coap_resolve_address_info()
453 proto = COAP_PROTO_DTLS; in coap_resolve_address_info()
458 proto = COAP_PROTO_TCP; in coap_resolve_address_info()
463 proto = COAP_PROTO_TLS; in coap_resolve_address_info()
468 proto = COAP_PROTO_NONE; in coap_resolve_address_info()
473 proto = COAP_PROTO_NONE; in coap_resolve_address_info()
478 proto = COAP_PROTO_WS; in coap_resolve_address_info()
483 proto = COAP_PROTO_WSS; in coap_resolve_address_info()
493 info->proto in coap_resolve_address_info()
709 coap_proto_t proto = 0; coap_resolve_address_info() local
[all...]
/kernel/linux/linux-5.10/net/netfilter/
H A Dnf_conntrack_proto_dccp.c408 ct->proto.dccp.role[IP_CT_DIR_ORIGINAL] = CT_DCCP_ROLE_CLIENT; in dccp_new()
409 ct->proto.dccp.role[IP_CT_DIR_REPLY] = CT_DCCP_ROLE_SERVER; in dccp_new()
410 ct->proto.dccp.state = CT_DCCP_NONE; in dccp_new()
411 ct->proto.dccp.last_pkt = DCCP_PKT_REQUEST; in dccp_new()
412 ct->proto.dccp.last_dir = IP_CT_DIR_ORIGINAL; in dccp_new()
413 ct->proto.dccp.handshake_seq = 0; in dccp_new()
549 role = ct->proto.dccp.role[dir]; in nf_conntrack_dccp_packet()
550 old_state = ct->proto.dccp.state; in nf_conntrack_dccp_packet()
559 ct->proto.dccp.role[dir] = CT_DCCP_ROLE_CLIENT; in nf_conntrack_dccp_packet()
560 ct->proto in nf_conntrack_dccp_packet()
[all...]
/kernel/linux/linux-6.6/net/netfilter/
H A Dnf_conntrack_proto_dccp.c411 ct->proto.dccp.role[IP_CT_DIR_ORIGINAL] = CT_DCCP_ROLE_CLIENT; in dccp_new()
412 ct->proto.dccp.role[IP_CT_DIR_REPLY] = CT_DCCP_ROLE_SERVER; in dccp_new()
413 ct->proto.dccp.state = CT_DCCP_NONE; in dccp_new()
414 ct->proto.dccp.last_pkt = DCCP_PKT_REQUEST; in dccp_new()
415 ct->proto.dccp.last_dir = IP_CT_DIR_ORIGINAL; in dccp_new()
416 ct->proto.dccp.handshake_seq = 0; in dccp_new()
551 role = ct->proto.dccp.role[dir]; in nf_conntrack_dccp_packet()
552 old_state = ct->proto.dccp.state; in nf_conntrack_dccp_packet()
561 ct->proto.dccp.role[dir] = CT_DCCP_ROLE_CLIENT; in nf_conntrack_dccp_packet()
562 ct->proto in nf_conntrack_dccp_packet()
[all...]
H A Dnf_conntrack_ovs.c13 enum ip_conntrack_info ctinfo, u16 proto) in nf_ct_helper()
32 helper->tuple.src.l3num != proto) in nf_ct_helper()
35 switch (proto) { in nf_ct_helper()
38 proto = ip_hdr(skb)->protocol; in nf_ct_helper()
48 pr_debug("proto header not found\n"); in nf_ct_helper()
52 proto = nexthdr; in nf_ct_helper()
60 if (helper->tuple.dst.protonum != proto) in nf_ct_helper()
79 u8 proto, bool nat, struct nf_conntrack_helper **hp) in nf_ct_add_helper()
85 helper = nf_conntrack_helper_try_module_get(name, family, proto); in nf_ct_add_helper()
96 ret = nf_nat_helper_try_module_get(name, family, proto); in nf_ct_add_helper()
12 nf_ct_helper(struct sk_buff *skb, struct nf_conn *ct, enum ip_conntrack_info ctinfo, u16 proto) nf_ct_helper() argument
78 nf_ct_add_helper(struct nf_conn *ct, const char *name, u8 family, u8 proto, bool nat, struct nf_conntrack_helper **hp) nf_ct_add_helper() argument
144 nf_ct_handle_fragments(struct net *net, struct sk_buff *skb, u16 zone, u8 family, u8 *proto, u16 *mru) nf_ct_handle_fragments() argument
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/net/
H A Dgro.sh10 proto="ipv4"
44 for proto in "${PROTOS[@]}"; do
46 echo "running test ${proto} ${test}" >&2
47 exit_code=$(run_test $proto $test)
49 failed_tests+=("${proto}_${test}")
79 proto="${OPTARG}"
98 run_test "${proto}" "${test}"
H A Dreuseport_bpf_cpu.c34 static void build_rcv_group(int *rcv_fd, size_t len, int family, int proto) in build_rcv_group() argument
60 rcv_fd[i] = socket(family, proto, 0); in build_rcv_group()
72 if (proto == SOCK_STREAM && listen(rcv_fd[i], len * 10)) in build_rcv_group()
94 static void send_from_cpu(int cpu_id, int family, int proto) in send_from_cpu() argument
134 fd = socket(family, proto, 0); in send_from_cpu()
151 void receive_on_cpu(int *rcv_fd, int len, int epfd, int cpu_id, int proto) in receive_on_cpu() argument
161 if (proto == SOCK_STREAM) { in receive_on_cpu()
184 static void test(int *rcv_fd, int len, int family, int proto) in test() argument
189 build_rcv_group(rcv_fd, len, family, proto); in test()
204 send_from_cpu(cpu, family, proto); in test()
[all...]
/kernel/linux/linux-5.10/include/trace/
H A Dtrace_events.h74 #define TRACE_EVENT(name, proto, args, tstruct, assign, print) \
76 PARAMS(proto), \
81 DEFINE_EVENT(name, name, PARAMS(proto), PARAMS(args));
112 #define DECLARE_EVENT_CLASS(name, proto, args, tstruct, assign, print) \
122 #define DEFINE_EVENT(template, name, proto, args) \
127 #define DEFINE_EVENT_FN(template, name, proto, args, reg, unreg) \
128 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
131 #define DEFINE_EVENT_PRINT(template, name, proto, args, print) \
132 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
136 #define TRACE_EVENT_FN(name, proto, arg
[all...]
H A Dbpf_probe.h59 #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \
61 __bpf_trace_##call(void *__data, proto) \
72 #define __DEFINE_EVENT(template, call, proto, args, size) \
77 typedef void (*btf_trace_##call)(void *__data, proto); \
94 #define DEFINE_EVENT_WRITABLE(template, call, proto, args, size) \
101 FIRST(proto); \
104 __DEFINE_EVENT(template, call, PARAMS(proto), PARAMS(args), size)
107 #define DEFINE_EVENT(template, call, proto, args) \
108 __DEFINE_EVENT(template, call, PARAMS(proto), PARAMS(args), 0)
111 #define DEFINE_EVENT_PRINT(template, name, proto, arg
[all...]
/foundation/communication/ipc/ipc/native/src/core/source/
H A Dipc_thread_pool.cpp76 bool IPCWorkThreadPool::SpawnThread(int policy, int proto) in SpawnThread() argument
79 if (!(proto == IRemoteObject::IF_PROT_DEFAULT && idleThreadNum_ > 0) && in SpawnThread()
80 !(proto == IRemoteObject::IF_PROT_DATABUS && idleSocketThreadNum_ > 0)) { in SpawnThread()
85 (proto != IRemoteObject::IF_PROT_BINDER || !BinderInvoker::IsActvBinderService())) { in SpawnThread()
90 std::string threadName = MakeThreadName(proto, threadIndex); in SpawnThread()
100 if (proto == IRemoteObject::IF_PROT_DEFAULT) { in SpawnThread()
104 if (proto == IRemoteObject::IF_PROT_DATABUS) { in SpawnThread()
108 newThread->Start(policy, proto, threadIndex); in SpawnThread()
114 std::string IPCWorkThreadPool::MakeThreadName(int proto, int &threadIndex) in MakeThreadName() argument
118 return IPCWorkThread::MakeBasicThreadName(proto, sequenc in MakeThreadName()
[all...]
/third_party/jerryscript/tests/jerry/es2015/
H A Dproxy_set_prototoype_of.js82 handler.setPrototypeOf = function(target, proto) {
93 handler.setPrototypeOf = function(target, proto) {
104 handler.setPrototypeOf = function(proto) {};
113 var proto = {};
114 Object.setPrototypeOf(proto, Function.prototype);
119 handler.setPrototypeOf = function(target, proto) {
121 seen_prototype = proto;
125 Object.setPrototypeOf(proxy, proto);
127 assert(proto === seen_prototype);
144 setPrototypeOf(target, proto) {
[all...]
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A Dbcdc.c22 #include "proto.h"
101 struct brcmf_bcdc *bcdc = drvr->proto->pd; in drvr_to_fws()
110 struct brcmf_bcdc *bcdc = (struct brcmf_bcdc *)drvr->proto->pd; in brcmf_proto_bcdc_msg()
141 struct brcmf_bcdc *bcdc = (struct brcmf_bcdc *)drvr->proto->pd; in brcmf_proto_bcdc_cmplt()
159 struct brcmf_bcdc *bcdc = (struct brcmf_bcdc *)drvr->proto->pd; in brcmf_proto_bcdc_query_dcmd()
217 struct brcmf_bcdc *bcdc = (struct brcmf_bcdc *)drvr->proto->pd; in brcmf_proto_bcdc_set_dcmd()
335 struct brcmf_bcdc *bcdc = drvr->proto->pd; in brcmf_proto_bcdc_tx_queue_data()
366 struct brcmf_bcdc *bcdc = bus_if->drvr->proto->pd; in brcmf_proto_bcdc_txcomplete()
426 struct brcmf_bcdc *bcdc = drvr->proto->pd; in brcmf_proto_bcdc_init_done()
456 drvr->proto in brcmf_proto_bcdc_attach()
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A Dbcdc.c22 #include "proto.h"
103 struct brcmf_bcdc *bcdc = drvr->proto->pd; in drvr_to_fws()
112 struct brcmf_bcdc *bcdc = (struct brcmf_bcdc *)drvr->proto->pd; in brcmf_proto_bcdc_msg()
143 struct brcmf_bcdc *bcdc = (struct brcmf_bcdc *)drvr->proto->pd; in brcmf_proto_bcdc_cmplt()
161 struct brcmf_bcdc *bcdc = (struct brcmf_bcdc *)drvr->proto->pd; in brcmf_proto_bcdc_query_dcmd()
219 struct brcmf_bcdc *bcdc = (struct brcmf_bcdc *)drvr->proto->pd; in brcmf_proto_bcdc_set_dcmd()
337 struct brcmf_bcdc *bcdc = drvr->proto->pd; in brcmf_proto_bcdc_tx_queue_data()
368 struct brcmf_bcdc *bcdc = bus_if->drvr->proto->pd; in brcmf_proto_bcdc_txcomplete()
427 struct brcmf_bcdc *bcdc = drvr->proto->pd; in brcmf_proto_bcdc_init_done()
457 drvr->proto in brcmf_proto_bcdc_attach()
[all...]
/third_party/protobuf/src/google/protobuf/
H A Dtext_format_unittest.cc212 // Get the DebugString from the proto. in TEST_F()
236 // Get the DebugString from the proto. in TEST_F()
821 unittest::SparseEnumMessage proto; in TEST_F() local
822 EXPECT_TRUE(TextFormat::ParseFromString(parse_string, &proto)); in TEST_F()
823 EXPECT_TRUE(proto.has_sparse_enum()); in TEST_F()
824 EXPECT_EQ(unittest::SPARSE_E, proto.sparse_enum()); in TEST_F()
828 proto3_unittest::TestAllTypes proto; in TEST_F() local
830 proto.add_repeated_nested_enum( in TEST_F()
832 proto.add_repeated_nested_enum( in TEST_F()
834 proto in TEST_F()
848 proto3_unittest::TestAllTypes proto; TEST_F() local
1401 ExpectFailure(const std::string& input, const std::string& message, int line, int col, Message* proto) ExpectFailure() argument
1406 ExpectMessage(const std::string& input, const std::string& message, int line, int col, Message* proto, bool expected_result) ExpectMessage() argument
1418 ExpectSuccessAndTree(const std::string& input, Message* proto, TextFormat::ParseInfoTree* info_tree) ExpectSuccessAndTree() argument
1694 protobuf_unittest::TestAllTypes proto; TEST_F() local
1866 unittest::TestAllTypes proto; TEST_F() local
1884 unittest::TestAllTypes proto; TEST_F() local
1961 protobuf_unittest::TestMessageSetContainer proto; TEST_F() local
1974 protobuf_unittest::TestMessageSetContainer proto; TEST_F() local
1997 protobuf_unittest::TestAllTypes proto; TEST() local
2101 protobuf_unittest::TestAllTypes proto; TEST() local
2113 protobuf_unittest::TestAllTypes proto; TEST() local
[all...]
/third_party/protobuf/php/src/Google/Protobuf/Internal/
H A DFileDescriptor.php72 public static function buildFromProto($proto)
75 $file->setPackage($proto->getPackage());
76 foreach ($proto->getMessageType() as $message_proto) {
78 $message_proto, $proto, ""));
80 foreach ($proto->getEnumType() as $enum_proto) {
84 $proto,
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dfs_ttc.c63 u8 proto; member
69 .proto = IPPROTO_TCP,
73 .proto = IPPROTO_TCP,
77 .proto = IPPROTO_UDP,
81 .proto = IPPROTO_UDP,
85 .proto = IPPROTO_AH,
89 .proto = IPPROTO_AH,
93 .proto = IPPROTO_ESP,
97 .proto = IPPROTO_ESP,
101 .proto
192 mlx5_generate_ttc_rule(struct mlx5_core_dev *dev, struct mlx5_flow_table *ft, struct mlx5_flow_destination *dest, u16 etype, u8 proto) mlx5_generate_ttc_rule() argument
358 mlx5_generate_inner_ttc_rule(struct mlx5_core_dev *dev, struct mlx5_flow_table *ft, struct mlx5_flow_destination *dest, u16 etype, u8 proto) mlx5_generate_inner_ttc_rule() argument
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/net/
H A Dreuseport_bpf_cpu.c34 static void build_rcv_group(int *rcv_fd, size_t len, int family, int proto) in build_rcv_group() argument
60 rcv_fd[i] = socket(family, proto, 0); in build_rcv_group()
72 if (proto == SOCK_STREAM && listen(rcv_fd[i], len * 10)) in build_rcv_group()
94 static void send_from_cpu(int cpu_id, int family, int proto) in send_from_cpu() argument
134 fd = socket(family, proto, 0); in send_from_cpu()
151 void receive_on_cpu(int *rcv_fd, int len, int epfd, int cpu_id, int proto) in receive_on_cpu() argument
161 if (proto == SOCK_STREAM) { in receive_on_cpu()
184 static void test(int *rcv_fd, int len, int family, int proto) in test() argument
189 build_rcv_group(rcv_fd, len, family, proto); in test()
204 send_from_cpu(cpu, family, proto); in test()
[all...]
/kernel/linux/linux-5.10/net/ipv6/
H A Dip6_offload.c38 static int ipv6_gso_pull_exthdrs(struct sk_buff *skb, int proto) in ipv6_gso_pull_exthdrs() argument
46 if (proto != NEXTHDR_HOP) { in ipv6_gso_pull_exthdrs()
47 ops = rcu_dereference(inet6_offloads[proto]); in ipv6_gso_pull_exthdrs()
66 proto = opth->nexthdr; in ipv6_gso_pull_exthdrs()
70 return proto; in ipv6_gso_pull_exthdrs()
79 int proto; in ipv6_gso_segment() local
102 proto = ipv6_gso_pull_exthdrs(skb, ipv6h->nexthdr); in ipv6_gso_segment()
106 udpfrag = proto == IPPROTO_UDP && encap && in ipv6_gso_segment()
109 udpfrag = proto == IPPROTO_UDP && !skb->encapsulation && in ipv6_gso_segment()
112 ops = rcu_dereference(inet6_offloads[proto]); in ipv6_gso_segment()
165 int len = 0, proto, optlen = sizeof(*iph); ipv6_exthdrs_len() local
195 int proto; ipv6_gro_receive() local
[all...]
/kernel/linux/linux-6.6/net/ipv6/
H A Dip6_offload.c40 static int ipv6_gso_pull_exthdrs(struct sk_buff *skb, int proto) in ipv6_gso_pull_exthdrs() argument
48 if (proto != NEXTHDR_HOP) { in ipv6_gso_pull_exthdrs()
49 ops = rcu_dereference(inet6_offloads[proto]); in ipv6_gso_pull_exthdrs()
68 proto = opth->nexthdr; in ipv6_gso_pull_exthdrs()
72 return proto; in ipv6_gso_pull_exthdrs()
81 int proto, err; in ipv6_gso_segment() local
107 proto = ipv6_gso_pull_exthdrs(skb, ipv6h->nexthdr); in ipv6_gso_segment()
111 udpfrag = proto == IPPROTO_UDP && encap && in ipv6_gso_segment()
114 udpfrag = proto == IPPROTO_UDP && !skb->encapsulation && in ipv6_gso_segment()
117 ops = rcu_dereference(inet6_offloads[proto]); in ipv6_gso_segment()
170 int len = 0, proto, optlen = sizeof(*iph); ipv6_exthdrs_len() local
200 int proto; ipv6_gro_receive() local
[all...]

Completed in 13 milliseconds

12345678910>>...151