Home
last modified time | relevance | path

Searched refs:nfa (Results 1 – 25 of 46) sorted by relevance

12

/external/libnfnetlink/include/libnfnetlink/
Dlinux_nfnetlink_compat.h36 #define NFA_OK(nfa,len) ((len) > 0 && (nfa)->nfa_len >= sizeof(struct nfattr) \ argument
37 && (nfa)->nfa_len <= (len))
38 #define NFA_NEXT(nfa,attrlen) ((attrlen) -= NFA_ALIGN((nfa)->nfa_len), \ argument
39 (struct nfattr *)(((char *)(nfa)) + NFA_ALIGN((nfa)->nfa_len)))
42 #define NFA_DATA(nfa) ((void *)(((char *)(nfa)) + NFA_LENGTH(0))) argument
43 #define NFA_PAYLOAD(nfa) ((int)((nfa)->nfa_len) - NFA_LENGTH(0)) argument
Dlibnfnetlink.h57 int (*call)(struct nlmsghdr *nlh, struct nfattr *nfa[], void *data);
197 #define nfnl_parse_nested(tb, max, nfa) \ argument
198 nfnl_parse_attr((tb), (max), NFA_DATA((nfa)), NFA_PAYLOAD((nfa)))
206 extern void nfnl_build_nfa_iovec(struct iovec *iov, struct nfattr *nfa,
/external/libnl/include/linux-private/linux/netfilter/
Dnfnetlink_compat.h38 #define NFA_OK(nfa,len) ((len) > 0 && (nfa)->nfa_len >= sizeof(struct nfattr) \ argument
39 && (nfa)->nfa_len <= (len))
40 #define NFA_NEXT(nfa,attrlen) ((attrlen) -= NFA_ALIGN((nfa)->nfa_len), \ argument
41 (struct nfattr *)(((char *)(nfa)) + NFA_ALIGN((nfa)->nfa_len)))
44 #define NFA_DATA(nfa) ((void *)(((char *)(nfa)) + NFA_LENGTH(0))) argument
45 #define NFA_PAYLOAD(nfa) ((int)((nfa)->nfa_len) - NFA_LENGTH(0)) argument
/external/kernel-headers/original/uapi/linux/netfilter/
Dnfnetlink_compat.h39 #define NFA_OK(nfa,len) ((len) > 0 && (nfa)->nfa_len >= sizeof(struct nfattr) \ argument
40 && (nfa)->nfa_len <= (len))
41 #define NFA_NEXT(nfa,attrlen) ((attrlen) -= NFA_ALIGN((nfa)->nfa_len), \ argument
42 (struct nfattr *)(((char *)(nfa)) + NFA_ALIGN((nfa)->nfa_len)))
45 #define NFA_DATA(nfa) ((void *)(((char *)(nfa)) + NFA_LENGTH(0))) argument
46 #define NFA_PAYLOAD(nfa) ((int)((nfa)->nfa_len) - NFA_LENGTH(0)) argument
/external/skqp/src/sksl/lex/
DRegexNode.cpp12 std::vector<int> RegexNode::createStates(NFA* nfa, const std::vector<int>& accept) const { in createStates() argument
16 result.push_back(nfa->addState(NFAState(fPayload.fChar, accept))); in createStates()
38 result.push_back(nfa->addState(NFAState(fPayload.fBool, chars, accept))); in createStates()
42 std::vector<int> right = fChildren[1].createStates(nfa, accept); in createStates()
43 result = fChildren[0].createStates(nfa, right); in createStates()
47 result.push_back(nfa->addState(NFAState(NFAState::kDot_Kind, accept))); in createStates()
50 std::vector<int> states = fChildren[0].createStates(nfa, accept); in createStates()
52 states = fChildren[1].createStates(nfa, accept); in createStates()
59 int id = nfa->addState(NFAState(placeholder)); in createStates()
61 result = fChildren[0].createStates(nfa, next); in createStates()
[all …]
DMain.cpp166 NFA nfa; in process() local
187 nfa.addRegex(node); in process()
190 nfa.addRegex(RegexParser().parse(pattern)); in process()
194 NFAtoDFA converter(&nfa); in process()
/external/skia/src/sksl/lex/
DRegexNode.cpp12 std::vector<int> RegexNode::createStates(NFA* nfa, const std::vector<int>& accept) const { in createStates() argument
16 result.push_back(nfa->addState(NFAState(fPayload.fChar, accept))); in createStates()
38 result.push_back(nfa->addState(NFAState(fPayload.fBool, chars, accept))); in createStates()
42 std::vector<int> right = fChildren[1].createStates(nfa, accept); in createStates()
43 result = fChildren[0].createStates(nfa, right); in createStates()
47 result.push_back(nfa->addState(NFAState(NFAState::kDot_Kind, accept))); in createStates()
50 std::vector<int> states = fChildren[0].createStates(nfa, accept); in createStates()
52 states = fChildren[1].createStates(nfa, accept); in createStates()
59 int id = nfa->addState(NFAState(placeholder)); in createStates()
61 result = fChildren[0].createStates(nfa, next); in createStates()
[all …]
DMain.cpp166 NFA nfa; in process() local
187 nfa.addRegex(node); in process()
190 nfa.addRegex(RegexParser().parse(pattern)); in process()
194 NFAtoDFA converter(&nfa); in process()
DNFAtoDFA.h35 NFAtoDFA(NFA* nfa) in NFAtoDFA() argument
36 : fNFA(*nfa) {} in NFAtoDFA()
/external/libnfnetlink/src/
Dlibnfnetlink.c101 struct nfattr *nfa = NFM_NFA(NLMSG_DATA(nlh)); in nfnl_dump_packet() local
109 nfa, ((void *)nfa - (void *)nlh)); in nfnl_dump_packet()
115 while (NFA_OK(nfa, len)) { in nfnl_dump_packet()
117 nfa, NFA_TYPE(nfa), nfa->nfa_len); in nfnl_dump_packet()
118 nfa = NFA_NEXT(nfa,len); in nfnl_dump_packet()
879 struct nfattr *nfa; in nfnl_addattr_l() local
890 nfa = NLMSG_TAIL(n); in nfnl_addattr_l()
891 nfa->nfa_type = type; in nfnl_addattr_l()
892 nfa->nfa_len = len; in nfnl_addattr_l()
893 memcpy(NFA_DATA(nfa), data, alen); in nfnl_addattr_l()
[all …]
/external/libpcap/
Dpcap-netfilter-linux.c340 struct nfattr *nfa = (struct nfattr *) (buf + NLMSG_ALIGN(nlh->nlmsg_len)); in netfilter_send_config_msg() local
342 nfa->nfa_type = mynfa->nfa_type; in netfilter_send_config_msg()
343 nfa->nfa_len = NFA_LENGTH(mynfa->nfa_len); in netfilter_send_config_msg()
344 memcpy(NFA_DATA(nfa), mynfa->data, mynfa->nfa_len); in netfilter_send_config_msg()
345 nlh->nlmsg_len = NLMSG_ALIGN(nlh->nlmsg_len) + NFA_ALIGN(nfa->nfa_len); in netfilter_send_config_msg()
405 struct my_nfattr nfa; in nflog_send_config_cmd() local
409 nfa.data = &msg; in nflog_send_config_cmd()
410 nfa.nfa_type = NFULA_CFG_CMD; in nflog_send_config_cmd()
411 nfa.nfa_len = sizeof(msg); in nflog_send_config_cmd()
413 return nflog_send_config_msg(handle, family, group_id, &nfa); in nflog_send_config_cmd()
[all …]
/external/python/cpython3/Parser/
Dpgen.c35 } nfa; typedef
39 nfa *nf, node *n, int *pa, int *pb);
41 nfa *nf, node *n, int *pa, int *pb);
43 nfa *nf, node *n, int *pa, int *pb);
45 nfa *nf, node *n, int *pa, int *pb);
48 addnfastate(nfa *nf) in addnfastate()
63 addnfaarc(nfa *nf, int from, int to, int lbl) in addnfaarc()
78 static nfa *
81 nfa *nf; in newnfa()
84 nf = (nfa *)PyObject_MALLOC(sizeof(nfa)); in newnfa()
[all …]
/external/python/cpython2/Parser/
Dpgen.c35 } nfa; typedef
39 nfa *nf, node *n, int *pa, int *pb);
41 nfa *nf, node *n, int *pa, int *pb);
43 nfa *nf, node *n, int *pa, int *pb);
45 nfa *nf, node *n, int *pa, int *pb);
48 addnfastate(nfa *nf) in addnfastate()
63 addnfaarc(nfa *nf, int from, int to, int lbl) in addnfaarc()
78 static nfa *
81 nfa *nf; in newnfa()
84 nf = (nfa *)PyObject_MALLOC(sizeof(nfa)); in newnfa()
[all …]
/external/antlr/tool/src/main/java/org/antlr/tool/
DInterpreter.java224 actions.enterRule(s.nfa.grammar.getFileName(), start.enclosingRule.name); in parseEngine()
236 if ( s.getDecisionNumber()>0 && s.nfa.grammar.getNumberOfAltsForDecisionNFA(s)>1 ) { in parseEngine()
238 DFA dfa = s.nfa.grammar.getLookaheadDFA(s.getDecisionNumber()); in parseEngine()
271 if ( parseAlt > s.nfa.grammar.getNumberOfAltsForDecisionNFA(s) ) { in parseEngine()
273 alt = s.nfa.grammar.nfa.getState( s.endOfBlockStateNumber ); in parseEngine()
276 alt = s.nfa.grammar.getNFAStateForAltOfDecision(s, parseAlt); in parseEngine()
285 actions.exitRule(s.nfa.grammar.getFileName(), s.enclosingRule.name); in parseEngine()
321 actions.enterRule(s.nfa.grammar.getFileName(), s.enclosingRule.name); in parseEngine()
324 if ( !s.nfa.grammar.allDecisionDFAHaveBeenCreated() ) { in parseEngine()
325 s.nfa.grammar.createLookaheadDFAs(); in parseEngine()
[all …]
DNFAFactory.java50 NFA nfa = null; field in NFAFactory
62 public NFAFactory(NFA nfa) { in NFAFactory() argument
63 nfa.setFactory(this); in NFAFactory()
64 this.nfa = nfa; in NFAFactory()
68 NFAState n = new NFAState(nfa); in newState()
69 int state = nfa.getNewNFAStateNumber(); in newState()
71 nfa.addState(n); in newState()
89 s = nfa.getState(s.endOfBlockStateNumber); in optimizeAlternative()
129 int tokenType = nfa.grammar.getTokenType(atomAST.getText()); in build_Atom()
198 if ( nfa.grammar.type==Grammar.LEXER ) { in build_StringLiteralAtom()
[all …]
DGrammarUnreachableAltsMessage.java60 String fileName = probe.dfa.nfa.grammar.getFileName(); in toString()
75 probe.dfa.nfa.grammar.getRuleStartState(tokenName); in toString()
DGrammarNonDeterminismMessage.java64 String fileName = probe.dfa.nfa.grammar.getFileName(); in toString()
82 probe.dfa.nfa.grammar.getRuleStartState(tokenName); in toString()
/external/antlr/tool/src/main/java/org/antlr/analysis/
DLL1DFA.java56 nfa = decisionStartState.nfa; in LL1DFA()
57 nAlts = nfa.grammar.getNumberOfAltsForDecisionNFA(decisionStartState); in LL1DFA()
83 nfa = decisionStartState.nfa; in LL1DFA()
84 nAlts = nfa.grammar.getNumberOfAltsForDecisionNFA(decisionStartState); in LL1DFA()
161 nfa.grammar.getNFAStateForAltOfDecision(decisionStartState, walkAlt); in getSynPredForAlt()
174 nfa.grammar.synPredUsedInDFA(this, ctx); in getSynPredForAlt()
DNFAState.java57 public NFA nfa = null; field in NFAState
108 public NFAState(NFA nfa) { in NFAState() argument
109 this.nfa = nfa; in NFAState()
198 int nAlts = nfa.grammar.getNumberOfAltsForDecisionNFA(nfaStart); in translateDisplayAltToWalkAlt()
DDFA.java154 public NFA nfa; field in DFA
229 nfa = decisionStartState.nfa; in DFA()
230 nAlts = nfa.grammar.getNumberOfAltsForDecisionNFA(decisionStartState); in DFA()
654 Interpreter interp = new Interpreter(nfa.grammar, input);
734 !nfa.grammar.decisionsWhoseDFAsUsesSemPreds.contains(this) &&
735 !nfa.grammar.decisionsWhoseDFAsUsesSynPreds.contains(this);
746 if ( nfa.grammar.type!=Grammar.LEXER ) {
750 Rule r = nfa.grammar.getLocallyDefinedRule(Grammar.ARTIFICIAL_TOKENS_RULENAME);
765 user_k = nfa.grammar.getUserMaxLookahead(decisionNumber);
770 return nfa.grammar.getAutoBacktrackMode(decisionNumber);
[all …]
DDecisionProbe.java317 Grammar g = dfa.nfa.grammar; in getInputSequenceDisplay()
365 dfa.nfa.grammar.getNFAStateForAltOfDecision(nfaStart,a); in getNFAPathStatesForAlt()
370 NFAState altStart = dfa.nfa.grammar.getNFAStateForAltOfDecision(nfaStart,alt); in getNFAPathStatesForAlt()
427 while ( it.hasNext() && !dfa.nfa.grammar.NFAToDFAConversionExternallyAborted() ) { in issueWarnings()
444 d.dfa.nfa.grammar.getDecisionBlockAST(d.dfa.decisionNumber); in issueWarnings()
477 dfa.nfa.grammar, in issueWarnings()
479 dfa.nfa.grammar.name, in issueWarnings()
503 dfa.nfa.grammar.getDecisionBlockAST(dfa.decisionNumber); in stripWildCardAlts()
571 NFAState ruleInvocationState = dfa.nfa.getState(c.state); in computeAltToProblemMaps()
632 dfa.nfa.grammar.numNonLLStar++; in reportNonLLStarDecision()
[all …]
DNFAToDFAConverter.java84 !dfa.nfa.grammar.NFAToDFAConversionExternallyAborted() ) in convert()
87 if ( dfa.nfa.grammar.composite.watchNFAConversion ) { in convert()
156 int numAltsIncludingExitBranch = dfa.nfa.grammar in computeStartState()
278 label.toString(dfa.nfa.grammar)+"->"+t); in findNewDFAStatesAndAddDFATransitions()
477 closure(dfa.nfa.getState(c.state), in closure()
739 dfa.nfa.grammar.getNFAStateForAltOfDecision(dfa.decisionNFAStartState,walkAlt); in closure()
863 NFAState p = dfa.nfa.getState(c.state); in reach()
923 NFAState p = dfa.nfa.getState(c.state); in convertToEOTAcceptState()
1184 NFAState anyState = dfa.nfa.getState(anyConfig.state); in resolveNonDeterminisms()
1451 dfa.nfa.grammar.synPredUsedInDFA(dfa, semCtx); in tryToResolveWithSemanticPredicates()
[all …]
/external/libnetfilter_conntrack/src/
Dcallback.c32 int __callback(struct nlmsghdr *nlh, struct nfattr *nfa[], void *data) in __callback() argument
55 __parse_conntrack(nlh, nfa, ct); in __callback()
69 __parse_expect(nlh, nfa, exp); in __callback()
/external/antlr/antlr3-maven-plugin/src/main/java/org/antlr/mojo/antlr3/
DAntlr3Mojo.java108 protected boolean nfa; field in Antlr3Mojo
284 log.debug("ANTLR: nfa : " + nfa); in execute()
319 tool.setGenerate_NFA_dot(nfa); in execute()
/external/libnetfilter_conntrack/include/internal/
Dprototypes.h31 int __callback(struct nlmsghdr *nlh, struct nfattr *nfa[], void *data);
52 int __expect_callback(struct nlmsghdr *nlh, struct nfattr *nfa[], void *data);

12