Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyword elision not implemented: sctp #137

Closed
kbara opened this issue Mar 6, 2015 · 1 comment
Closed

Keyword elision not implemented: sctp #137

kbara opened this issue Mar 6, 2015 · 1 comment

Comments

@kbara
Copy link
Contributor

kbara commented Mar 6, 2015

The filter "sctp" compiles with tcpdump, but not with pflua.

% ./pflua-match ../tests/data/wingolog.pcap "sctp"
luajit: ../src/pf/parse.lua:290: 
Error: In expression "sctp"
                          ^
keyword elision not implemented sctp

stack traceback:
        [C]: in function 'primitive_error'
        ../src/pf/parse.lua:290: in function 'error'
        ../src/pf/parse.lua:838: in function 'parse_primitive_or_arithmetic'
        ../src/pf/parse.lua:859: in function 'parse_logical_or_arithmetic'
        ../src/pf/parse.lua:891: in function 'parse_logical'
        ../src/pf/parse.lua:899: in function 'parse'
        ../src/pf.lua:32: in function 'get_predicate'
        ./pflua-match:58: in function 'main'
        ./pflua-match:84: in main chunk
        [C]: at 0x00404bc0
% tcpdump -d "sctp"
(000) ldh      [12]
(001) jeq      #0x86dd          jt 2    jf 7
(002) ldb      [20]
(003) jeq      #0x84            jt 10   jf 4
(004) jeq      #0x2c            jt 5    jf 11
(005) ldb      [54]
(006) jeq      #0x84            jt 10   jf 11
(007) jeq      #0x800           jt 8    jf 11
(008) ldb      [23]
(009) jeq      #0x84            jt 10   jf 11
(010) ret      #65535
(011) ret      #0
@kbara
Copy link
Contributor Author

kbara commented Mar 11, 2015

Fixed in 81db9d0

@kbara kbara closed this as completed Mar 11, 2015
kbara pushed a commit that referenced this issue Mar 11, 2015
#137
 (Keyword elision not implemented: sctp)

#133
 (len == 4 doesn't parse)
kbara pushed a commit that referenced this issue Apr 10, 2015
#137
 (Keyword elision not implemented: sctp)

#133
 (len == 4 doesn't parse)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant