Home
last modified time | relevance | path

Searched full:chain (Results 1 – 25 of 4828) sorted by relevance

12345678910>>...194

/external/libevent/
Dbuffer.c139 (ptr)->internal_.chain = NULL; \
143 static void evbuffer_chain_align(struct evbuffer_chain *chain);
144 static int evbuffer_chain_should_realign(struct evbuffer_chain *chain,
154 static inline void evbuffer_chain_incref(struct evbuffer_chain *chain);
159 struct evbuffer_chain *chain; in evbuffer_chain_new() local
178 if ((chain = mm_malloc(to_alloc)) == NULL) in evbuffer_chain_new()
181 memset(chain, 0, EVBUFFER_CHAIN_SIZE); in evbuffer_chain_new()
183 chain->buffer_len = to_alloc - EVBUFFER_CHAIN_SIZE; in evbuffer_chain_new()
188 chain->buffer = EVBUFFER_CHAIN_EXTRA(unsigned char, chain); in evbuffer_chain_new()
190 chain->refcnt = 1; in evbuffer_chain_new()
[all …]
/external/iptables/etc/
Dxtables.conf3 chain PREROUTING hook NF_INET_PRE_ROUTING prio -300
4 chain OUTPUT hook NF_INET_LOCAL_OUT prio -300
8 chain PREROUTING hook NF_INET_PRE_ROUTING prio -150
9 chain INPUT hook NF_INET_LOCAL_IN prio -150
10 chain FORWARD hook NF_INET_FORWARD prio -150
11 chain OUTPUT hook NF_INET_LOCAL_OUT prio -150
12 chain POSTROUTING hook NF_INET_POST_ROUTING prio -150
16 chain INPUT hook NF_INET_LOCAL_IN prio 0
17 chain FORWARD hook NF_INET_FORWARD prio 0
18 chain OUTPUT hook NF_INET_LOCAL_OUT prio 0
[all …]
/external/mesa3d/src/vulkan/wsi/
Dwsi_common_x11.c773 * the combined status. The chain status will eventually be returned from
781 _x11_swapchain_result(struct x11_swapchain *chain, VkResult result, in _x11_swapchain_result() argument
785 if (chain->status < 0) in _x11_swapchain_result()
786 return chain->status; in _x11_swapchain_result()
788 /* If we have a new error, mark it as permanent on the chain and return. */ in _x11_swapchain_result()
794 chain->status = result; in _x11_swapchain_result()
807 if (chain->status != VK_SUBOPTIMAL_KHR) { in _x11_swapchain_result()
812 chain->status = result; in _x11_swapchain_result()
817 return chain->status; in _x11_swapchain_result()
819 #define x11_swapchain_result(chain, result) \ argument
[all …]
Dwsi_common_wayland.c765 struct wsi_wl_swapchain *chain = (struct wsi_wl_swapchain *)wsi_chain; in wsi_wl_swapchain_get_wsi_image() local
766 return &chain->images[image_index].base; in wsi_wl_swapchain_get_wsi_image()
774 struct wsi_wl_swapchain *chain = (struct wsi_wl_swapchain *)wsi_chain; in wsi_wl_swapchain_acquire_next_image() local
777 int wl_fd = wl_display_get_fd(chain->display->wl_display); in wsi_wl_swapchain_acquire_next_image()
786 int ret = wl_display_dispatch_queue_pending(chain->display->wl_display, in wsi_wl_swapchain_acquire_next_image()
787 chain->display->queue); in wsi_wl_swapchain_acquire_next_image()
792 for (uint32_t i = 0; i < chain->base.image_count; i++) { in wsi_wl_swapchain_acquire_next_image()
793 if (!chain->images[i].busy) { in wsi_wl_swapchain_acquire_next_image()
796 chain->images[i].busy = true; in wsi_wl_swapchain_acquire_next_image()
808 ret = wl_display_prepare_read_queue(chain->display->wl_display, in wsi_wl_swapchain_acquire_next_image()
[all …]
/external/iptables/iptables/tests/shell/testcases/ipt-restore/
D0014-verbose-restore_029 EXPECT="Flushing chain \`INPUT'
30 Flushing chain \`FORWARD'
31 Flushing chain \`OUTPUT'
32 Flushing chain \`bar'
33 Flushing chain \`foo'
34 Deleting chain \`bar'
35 Deleting chain \`foo'
36 Flushing chain \`PREROUTING'
37 Flushing chain \`INPUT'
38 Flushing chain \`OUTPUT'
[all …]
/external/linux-kselftest/tools/testing/selftests/net/forwarding/
Dtc_chains.sh38 tc filter add dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \
45 check_fail $? "matched on filter in unreachable chain"
47 tc filter del dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \
50 log_test "unreachable chain ($tcflags)"
57 tc filter add dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \
62 $tcflags dst_mac $h2mac action goto chain 1
71 check_err $? "Did not match on correct filter with goto chain action"
74 check_err $? "Did not match on correct filter in chain 1"
78 tc filter del dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \
81 log_test "gact goto chain ($tcflags)"
[all …]
/external/iptables/include/libiptc/
Dlibiptc.h27 /* Does this chain exist? */
28 int iptc_is_chain(const char *chain, struct xtc_handle *const handle);
40 /* Get first rule in the given chain: NULL for empty chain. */
41 const struct ipt_entry *iptc_first_rule(const char *chain,
52 /* Is this a built-in chain? */
53 int iptc_builtin(const char *chain, struct xtc_handle *const handle);
55 /* Get the policy of a given built-in chain */
56 const char *iptc_get_policy(const char *chain,
64 /* Insert the entry `e' in chain `chain' into position `rulenum'. */
65 int iptc_insert_entry(const xt_chainlabel chain,
[all …]
Dlibip6tc.h23 /* Does this chain exist? */
24 int ip6tc_is_chain(const char *chain, struct xtc_handle *const handle);
36 /* Get first rule in the given chain: NULL for empty chain. */
37 const struct ip6t_entry *ip6tc_first_rule(const char *chain,
48 /* Is this a built-in chain? */
49 int ip6tc_builtin(const char *chain, struct xtc_handle *const handle);
51 /* Get the policy of a given built-in chain */
52 const char *ip6tc_get_policy(const char *chain,
60 /* Insert the entry `fw' in chain `chain' into position `rulenum'. */
61 int ip6tc_insert_entry(const xt_chainlabel chain,
[all …]
/external/iproute2/include/libiptc/
Dlibip6tc.h23 /* Does this chain exist? */
24 int ip6tc_is_chain(const char *chain, struct xtc_handle *const handle);
36 /* Get first rule in the given chain: NULL for empty chain. */
37 const struct ip6t_entry *ip6tc_first_rule(const char *chain,
48 /* Is this a built-in chain? */
49 int ip6tc_builtin(const char *chain, struct xtc_handle *const handle);
51 /* Get the policy of a given built-in chain */
52 const char *ip6tc_get_policy(const char *chain,
60 /* Insert the entry `fw' in chain `chain' into position `rulenum'. */
61 int ip6tc_insert_entry(const xt_chainlabel chain,
[all …]
Dlibiptc.h27 /* Does this chain exist? */
28 int iptc_is_chain(const char *chain, struct xtc_handle *const handle);
40 /* Get first rule in the given chain: NULL for empty chain. */
41 const struct ipt_entry *iptc_first_rule(const char *chain,
52 /* Is this a built-in chain? */
53 int iptc_builtin(const char *chain, struct xtc_handle *const handle);
55 /* Get the policy of a given built-in chain */
56 const char *iptc_get_policy(const char *chain,
64 /* Insert the entry `e' in chain `chain' into position `rulenum'. */
65 int iptc_insert_entry(const xt_chainlabel chain,
[all …]
/external/rust/crates/anyhow/tests/
Dtest_chain.rs10 let mut chain = e.chain(); in test_iter() localVariable
11 assert_eq!("3", chain.next().unwrap().to_string()); in test_iter()
12 assert_eq!("2", chain.next().unwrap().to_string()); in test_iter()
13 assert_eq!("1", chain.next().unwrap().to_string()); in test_iter()
14 assert_eq!("0", chain.next().unwrap().to_string()); in test_iter()
15 assert!(chain.next().is_none()); in test_iter()
16 assert!(chain.next_back().is_none()); in test_iter()
22 let mut chain = e.chain().rev(); in test_rev() localVariable
23 assert_eq!("0", chain.next().unwrap().to_string()); in test_rev()
24 assert_eq!("1", chain.next().unwrap().to_string()); in test_rev()
[all …]
/external/iptables/iptables/
Darptables-nft.855 different sets of rules. Each set of rules is called a chain.
56 Each chain is an ordered list of rules that can match ARP frames. If a
60 rule in the chain, then the next rule in the chain is examined and so forth.
72 an 'extension' (see below) or a user-defined chain.
80 frames pass a certain point in the chain or to log those frames.
82 means stop traversing this chain and resume at the next rule in the
83 previous (calling) chain.
119 Append a rule to the end of the selected chain.
122 Delete the specified rule from the selected chain. There are two ways to
129 Insert the specified rule into the selected chain at the specified rule number.
[all …]
Dnft-cmd.c18 const char *table, const char *chain, in nft_cmd_new() argument
31 if (chain) in nft_cmd_new()
32 cmd->chain = strdup(chain); in nft_cmd_new()
37 rule = nft_rule_new(h, chain, table, state); in nft_cmd_new()
55 free((void *)cmd->chain); in nft_cmd_free()
82 /* Since ebtables user-defined chain policies are implemented as last in nft_cmd_rule_bridge()
86 !nft_chain_builtin_find(t, cmd->chain)) in nft_cmd_rule_bridge()
92 int nft_cmd_rule_append(struct nft_handle *h, const char *chain, in nft_cmd_rule_append() argument
98 cmd = nft_cmd_new(h, NFT_COMPAT_RULE_APPEND, table, chain, state, -1, in nft_cmd_rule_append()
108 int nft_cmd_rule_insert(struct nft_handle *h, const char *chain, in nft_cmd_rule_insert() argument
[all …]
Diptables.8.in29 \fIchain\fP \fIrule-specification\fP
32 \fIchain rule-specification\fP
34 \fBiptables\fP [\fB\-t\fP \fItable\fP] \fB\-I\fP \fIchain\fP [\fIrulenum\fP] \fIrule-specification\…
36 \fBiptables\fP [\fB\-t\fP \fItable\fP] \fB\-R\fP \fIchain rulenum rule-specification\fP
38 \fBiptables\fP [\fB\-t\fP \fItable\fP] \fB\-D\fP \fIchain rulenum\fP
40 \fBiptables\fP [\fB\-t\fP \fItable\fP] \fB\-S\fP [\fIchain\fP [\fIrulenum\fP]]
42 \fBiptables\fP [\fB\-t\fP \fItable\fP] {\fB\-F\fP|\fB\-L\fP|\fB\-Z\fP} [\fIchain\fP [\fIrulenum\fP]…
44 \fBiptables\fP [\fB\-t\fP \fItable\fP] \fB\-N\fP \fIchain\fP
46 \fBiptables\fP [\fB\-t\fP \fItable\fP] \fB\-X\fP [\fIchain\fP]
48 \fBiptables\fP [\fB\-t\fP \fItable\fP] \fB\-P\fP \fIchain target\fP
[all …]
Dxtables.c56 {.name = "new-chain", .has_arg = 1, .val = 'N'},
57 {.name = "delete-chain", .has_arg = 2, .val = 'X'},
58 {.name = "rename-chain", .has_arg = 1, .val = 'E'},
132 "Usage: %s -[ACD] chain rule-specification [options]\n" in printhelp()
133 " %s -I chain [rulenum] rule-specification [options]\n" in printhelp()
134 " %s -R chain rulenum rule-specification [options]\n" in printhelp()
135 " %s -D chain rulenum [options]\n" in printhelp()
136 " %s -[LS] [chain [rulenum]] [options]\n" in printhelp()
137 " %s -[FZ] [chain] [options]\n" in printhelp()
138 " %s -[NX] chain\n" in printhelp()
[all …]
Dip6tables.c60 {.name = "new-chain", .has_arg = 1, .val = 'N'},
61 {.name = "delete-chain", .has_arg = 2, .val = 'X'},
62 {.name = "rename-chain", .has_arg = 1, .val = 'E'},
133 "Usage: %s -[ACD] chain rule-specification [options]\n" in exit_printhelp()
134 " %s -I chain [rulenum] rule-specification [options]\n" in exit_printhelp()
135 " %s -R chain rulenum rule-specification [options]\n" in exit_printhelp()
136 " %s -D chain rulenum [options]\n" in exit_printhelp()
137 " %s -[LS] [chain [rulenum]] [options]\n" in exit_printhelp()
138 " %s -[FZ] [chain] [options]\n" in exit_printhelp()
139 " %s -[NX] chain\n" in exit_printhelp()
[all …]
Diptables.c56 {.name = "new-chain", .has_arg = 1, .val = 'N'},
57 {.name = "delete-chain", .has_arg = 2, .val = 'X'},
58 {.name = "rename-chain", .has_arg = 1, .val = 'E'},
132 "Usage: %s -[ACD] chain rule-specification [options]\n" in exit_printhelp()
133 " %s -I chain [rulenum] rule-specification [options]\n" in exit_printhelp()
134 " %s -R chain rulenum rule-specification [options]\n" in exit_printhelp()
135 " %s -D chain rulenum [options]\n" in exit_printhelp()
136 " %s -[LS] [chain [rulenum]] [options]\n" in exit_printhelp()
137 " %s -[FZ] [chain] [options]\n" in exit_printhelp()
138 " %s -[NX] chain\n" in exit_printhelp()
[all …]
/external/s2-geometry-library-java/tests/com/google/common/geometry/
DS2PolygonBuilderTest.java31 // A chain represents either a polyline or a loop, depending
33 private class Chain { class in S2PolygonBuilderTest
37 public Chain(String str, boolean closed) { in Chain() method in S2PolygonBuilderTest.Chain
55 Chain[] chainsIn;
67 Chain[] chainsIn, in TestCase()
82 new TestCase(0, 0, 0.0, 10.0, new Chain[] {new Chain(null, false)}, new String[] {}, 0),
89 new Chain[] {new Chain("0:0, 0:10, 10:5", true), new Chain("0:0, 5:5", false),
90 new Chain("10:5, 20:7, 30:10, 40:15, 50:3, 60:-20", false)},
97 new Chain[] {new Chain("0:0, 0:10, 5:15, 10:10, 10:0", true),
98 new Chain("10:10, 12:12, 14:14, 16:16, 18:18", false),
[all …]
/external/caliper/caliper/src/main/java/com/google/caliper/memory/
DChain.java30 * A chain of references, which starts at a root object and leads to a
33 public abstract class Chain { class
35 private final Chain parent;
37 Chain(Chain parent, Object value) { in Chain() method in Chain
42 static Chain root(Object value) { in root()
43 return new Chain(null, Preconditions.checkNotNull(value)) { in root()
60 * Returns whether this chain has a parent. This returns false only when
61 * this chain represents the root object itself.
68 * Returns the parent chain, from which this chain was created.
71 public @Nonnull Chain getParent() {
[all …]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DInterceptorTest.java69 @Override public Response intercept(Chain chain) throws IOException { in applicationInterceptorsCanShortCircuitResponses()
82 @Override public Response intercept(Chain chain) throws IOException { in networkInterceptorsCannotShortCircuitResponses()
84 .request(chain.request()) in networkInterceptorsCannotShortCircuitResponses()
112 @Override public Response intercept(Chain chain) throws IOException { in networkInterceptorsCannotCallProceedMultipleTimes()
113 chain.proceed(chain.request()); in networkInterceptorsCannotCallProceedMultipleTimes()
114 return chain.proceed(chain.request()); in networkInterceptorsCannotCallProceedMultipleTimes()
136 @Override public Response intercept(Chain chain) throws IOException { in networkInterceptorsCannotChangeServerAddress()
137 Address address = chain.connection().getRoute().getAddress(); in networkInterceptorsCannotChangeServerAddress()
140 return chain.proceed(chain.request().newBuilder() in networkInterceptorsCannotChangeServerAddress()
164 @Override public Response intercept(Chain chain) throws IOException { in networkInterceptorsHaveConnectionAccess()
[all …]
/external/conscrypt/testing/src/main/java/org/conscrypt/javax/net/ssl/
DTestTrustManager.java86 public void checkClientTrusted(X509Certificate[] chain, String authType) in checkClientTrusted() argument
89 + "chain=" + chain.length + " " in checkClientTrusted()
93 trustManager.checkClientTrusted(chain, authType); in checkClientTrusted()
104 public void checkServerTrusted(X509Certificate[] chain, String authType) in checkServerTrusted() argument
107 + "chain=" + chain.length + " " in checkServerTrusted()
111 trustManager.checkServerTrusted(chain, authType); in checkServerTrusted()
145 public void checkClientTrusted(X509Certificate[] chain, String authType) in checkClientTrusted() argument
148 + "chain=" + chain.length + " " in checkClientTrusted()
152 trustManager.checkClientTrusted(chain, authType); in checkClientTrusted()
163 public void checkServerTrusted(X509Certificate[] chain, String authType) in checkServerTrusted() argument
[all …]
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/javax/net/ssl/
DTestTrustManager.java88 public void checkClientTrusted(X509Certificate[] chain, String authType) in checkClientTrusted() argument
91 + "chain=" + chain.length + " " in checkClientTrusted()
95 trustManager.checkClientTrusted(chain, authType); in checkClientTrusted()
106 public void checkServerTrusted(X509Certificate[] chain, String authType) in checkServerTrusted() argument
109 + "chain=" + chain.length + " " in checkServerTrusted()
113 trustManager.checkServerTrusted(chain, authType); in checkServerTrusted()
147 public void checkClientTrusted(X509Certificate[] chain, String authType) in checkClientTrusted() argument
150 + "chain=" + chain.length + " " in checkClientTrusted()
154 trustManager.checkClientTrusted(chain, authType); in checkClientTrusted()
165 public void checkServerTrusted(X509Certificate[] chain, String authType) in checkServerTrusted() argument
[all …]
/external/boringssl/src/third_party/wycheproof_testvectors/
Decdh_secp521r1_ecpoint_test.json404 … "comment" : "edge case for Jacobian and projective coordinates in left to right addition chain",
413 … "comment" : "edge case for Jacobian and projective coordinates in left to right addition chain",
422 … "comment" : "edge case for Jacobian and projective coordinates in left to right addition chain",
431 … "comment" : "edge case for Jacobian and projective coordinates in left to right addition chain",
440 … "comment" : "edge case for Jacobian and projective coordinates in left to right addition chain",
449 … "comment" : "edge case for Jacobian and projective coordinates in left to right addition chain",
458 … "comment" : "edge case for Jacobian and projective coordinates in left to right addition chain",
467 … "comment" : "edge case for Jacobian and projective coordinates in left to right addition chain",
476 … "comment" : "edge case for Jacobian and projective coordinates in left to right addition chain",
485 … "comment" : "edge case for Jacobian and projective coordinates in left to right addition chain",
[all …]
/external/iptables/iptables/tests/shell/testcases/ipt-save/dumps/
Dfedora27-iptables.xml5 <chain name="PREROUTING" policy="ACCEPT" packet-count="0" byte-count="0" >
33 </chain>
34 <chain name="INPUT" policy="ACCEPT" packet-count="0" byte-count="0" >
44 </chain>
45 <chain name="FORWARD" policy="ACCEPT" packet-count="0" byte-count="0" >
55 </chain>
56 <chain name="OUTPUT" policy="ACCEPT" packet-count="0" byte-count="0" >
66 </chain>
67 <chain name="POSTROUTING" policy="ACCEPT" packet-count="0" byte-count="0" >
95 </chain>
[all …]
/external/flac/src/libFLAC/
Dmetadata_iterators.c899 * This is the length of the chain initially read from the FLAC file.
910 FLAC__Metadata_Chain *chain; member
947 static void chain_init_(FLAC__Metadata_Chain *chain) in chain_init_() argument
949 FLAC__ASSERT(0 != chain); in chain_init_()
951 chain->filename = 0; in chain_init_()
952 chain->is_ogg = false; in chain_init_()
953 chain->head = chain->tail = 0; in chain_init_()
954 chain->nodes = 0; in chain_init_()
955 chain->status = FLAC__METADATA_CHAIN_STATUS_OK; in chain_init_()
956 chain->initial_length = 0; in chain_init_()
[all …]

12345678910>>...194