Home
last modified time | relevance | path

Searched refs:rule (Results 1 – 25 of 59) sorted by relevance

123

/Zephyr-latest/include/zephyr/net/
Dnet_pkt_filter.h85 void npf_insert_rule(struct npf_rule_list *rules, struct npf_rule *rule);
93 void npf_append_rule(struct npf_rule_list *rules, struct npf_rule *rule);
102 bool npf_remove_rule(struct npf_rule_list *rules, struct npf_rule *rule);
115 #define npf_insert_send_rule(rule) npf_insert_rule(&npf_send_rules, rule) argument
116 #define npf_insert_recv_rule(rule) npf_insert_rule(&npf_recv_rules, rule) argument
117 #define npf_append_send_rule(rule) npf_append_rule(&npf_send_rules, rule) argument
118 #define npf_append_recv_rule(rule) npf_append_rule(&npf_recv_rules, rule) argument
119 #define npf_remove_send_rule(rule) npf_remove_rule(&npf_send_rules, rule) argument
120 #define npf_remove_recv_rule(rule) npf_remove_rule(&npf_recv_rules, rule) argument
125 #define npf_insert_local_in_recv_rule(rule) npf_insert_rule(&npf_local_in_recv_rules, rule) argument
[all …]
/Zephyr-latest/subsys/net/pkt_filter/
Dbase.c80 static bool apply_tests(struct npf_rule *rule, struct net_pkt *pkt) in apply_tests() argument
86 for (i = 0; i < rule->nb_tests; i++) { in apply_tests()
87 test = rule->tests[i]; in apply_tests()
103 struct npf_rule *rule; in evaluate() local
112 SYS_SLIST_FOR_EACH_CONTAINER(rule_head, rule, node) { in evaluate()
113 if (apply_tests(rule, pkt) == true) { in evaluate()
114 return rule->result; in evaluate()
174 void npf_insert_rule(struct npf_rule_list *rules, struct npf_rule *rule) in npf_insert_rule() argument
178 NET_DBG("inserting rule %p into %p", rule, rules); in npf_insert_rule()
179 sys_slist_prepend(&rules->rule_head, &rule->node); in npf_insert_rule()
[all …]
/Zephyr-latest/doc/connectivity/networking/api/
Dnet_pkt_filter.rst22 Each rule is made of a set of conditions and a packet outcome. Every packet
23 is subjected to the conditions attached to a rule. When all the conditions
24 for a given rule are true then the packet outcome is immediately determined
25 as specified by the current rule and no more rules are considered. If one
26 condition is false then the next rule in the list is considered.
31 A rule is represented by a :c:struct:`npf_rule` object. It can be inserted to,
32 appended to or removed from a rule list contained in a
35 Currently, two such rule lists exist: ``npf_send_rules`` for outgoing packets,
38 If a filter rule list is empty then ``NET_OK`` is assumed. If a non-empty
39 rule list runs to the end then ``NET_DROP`` is assumed. However it is
[all …]
/Zephyr-latest/scripts/coccinelle/
Dsame_identifier.cocci1 // Check violations for rule 5.7
32 msg = "WARNING: Violation to rule 5.7 (Tag name should be unique) tag: {}".format(v)
53 msg = "WARNING: Violation to rule 5.7 (Tag name should be unique) tag: {}".format(v)
74 msg = "WARNING: Violation to rule 5.7 (Tag name should be unique) tag: {}".format(v)
Dboolean.cocci1 // Check violations for rule 14.4
49 msg = "WARNING: Violation to rule 14.4 (Controlling expression shall have essentially Boolean type)"
78 msg = "WARNING: Violation to rule 14.4 (Controlling expression shall have essentially Boolean type)"
99 msg = "WARNING: Violation to rule 14.4 (Controlling expression shall have essentially Boolean type)"
Dreserved_names.cocci1 // Check violations for rule 5.7
47 msg = "WARNING: Violation to rule 21.2 (Should not used a reserved identifier) - {}".format(v)
66 msg = "WARNING: Violation to rule 21.2 (Should not used a reserved identifier) - {}".format(v)
88 msg = "WARNING: Violation to rule 21.2 (Should not used a reserved identifier) - {}".format(v)
Didentifier_length.cocci29 …msg="WARNING: Violation to rule 5.1 or 5.2 (Identifiers shall be distinct) %s length %d > 31" % (i…
Dfind_functions.cocci82 // but then first rule should not match statics.)
/Zephyr-latest/doc/hardware/peripherals/
Dflash.rst12 the flash memory beginning address. This rule shall be applied to
16 An exception from the rule may be applied to a vendor-specific flash
/Zephyr-latest/doc/_static/latex/
Dtitle.tex20 \color{bg-color} \rule{2cm}{1.7cm}
39 \color{bg-color} \rule{1.5cm}{1.3cm}
/Zephyr-latest/drivers/ieee802154/
Dieee802154_cc13xx_cc26xx.c342 drv_data->cmd_ieee_tx.condition.rule = in ieee802154_cc13xx_cc26xx_tx()
627 drv_data->cmd_fs.condition.rule = COND_NEVER; in ieee802154_cc13xx_cc26xx_init()
656 .condition.rule = COND_NEVER,
729 .condition.rule = COND_STOP_ON_FALSE,
754 .condition.rule = COND_NEVER,
772 .condition.rule = COND_NEVER,
794 .condition.rule = COND_NEVER,
Dieee802154_cc13xx_cc26xx_subg.c148 .condition.rule = COND_NEVER,
978 .condition.rule = COND_NEVER,
983 .condition.rule = COND_NEVER,
1016 .condition.rule = COND_NEVER,
1041 .condition.rule = COND_NEVER,
/Zephyr-latest/subsys/testsuite/ztest/
DKconfig124 This rule will call z_test_1cpu_start before each unit test and
133 This rule will fail the project if not all tests have been run.
140 This rule will reset gcov counters before running tests. This ensures
149 This rule will shuffle the order of tests and test suites.
171 This rule will repeat the tests and the test suites.
178 This rule will execute a test suite N number of times.
184 This rule will execute a test N number of times.
/Zephyr-latest/
D.gitlint52 # Whether to ignore this rule on merge commits (which typically only have a title)
59 # By specifying this rule, developers can only change the file when they explicitly reference
/Zephyr-latest/cmake/sca/eclair/ECL/
Dadopted_deviations.ecl32 …er. For the ones with internal linkage the use of the extern qualifier is a violation of rule 8.8."
42 …Chainging the generators could be dangerous and the advantages in enforcing the rule do not outwei…
/Zephyr-latest/subsys/testsuite/ztest/src/
Dztest.c314 for (struct ztest_test_rule *rule = _ztest_test_rule_list_start; in run_test_rules() local
315 rule < _ztest_test_rule_list_end; ++rule) { in run_test_rules()
316 if (is_before && rule->before_each) { in run_test_rules()
317 rule->before_each(test, data); in run_test_rules()
318 } else if (!is_before && rule->after_each) { in run_test_rules()
319 rule->after_each(test, data); in run_test_rules()
/Zephyr-latest/scripts/ci/
Dupload_test_results_es.py163 for property_name, rule in rules.items():
165 match = re.match(rule, t[property_name])
/Zephyr-latest/doc/build/dts/
Dbindings-upstream.rst26 In particular, this rule applies if:
101 this rule is if you are replicating a well-established binding from somewhere
120 actual vendor. There are some exceptions to this rule, but the practice is
135 kernel's equivalent file; this process is exempt from the previous rule.
/Zephyr-latest/tests/bsim/bluetooth/host/misc/sample_test/
DCMakeLists.txt34 # As a general rule of thumb: All functions that use `TEST_ASSERT()` are part of
/Zephyr-latest/boards/96boards/nitrogen/doc/
Dindex.rst254 To fix the permission issue, simply add the following udev rule for the
270 To fix the above error, add the udev rule shown in the previous section
/Zephyr-latest/samples/subsys/usb/cdc_acm/
DREADME.rst89 You can add or extend the udev rule for your board to inform
/Zephyr-latest/doc/services/portability/posix/implementation/
Dindex.rst40 practical, that rule should expand to include macros. In the example below, ``libposix``
/Zephyr-latest/doc/kernel/data_structures/
Drbtree.rst78 each node, either red or black, and enforcing a rule that no red child
81 that number of "extra" red nodes may be present). This rule is
/Zephyr-latest/cmake/compiler/
Dcompiler_flags_template.cmake70 # Flag for disabling strict aliasing rule in C and C++
/Zephyr-latest/cmake/linker/armlink/
Dtarget.cmake123 # rule to ensure that standard c and runtime libraries are correctly placed

123