PortconProtocol: Add support for SCTP portcons.

This commit is contained in:
Chris PeBenito 2018-03-21 14:22:00 -04:00
parent 4a98b8315b
commit 1a73d75b59
2 changed files with 2 additions and 0 deletions

View File

@ -54,6 +54,7 @@ cdef extern from "<sys/socket.h>":
cdef extern from "<netinet/in.h>": cdef extern from "<netinet/in.h>":
cdef int INET6_ADDRSTRLEN cdef int INET6_ADDRSTRLEN
cdef int IPPROTO_DCCP cdef int IPPROTO_DCCP
cdef int IPPROTO_SCTP
cdef int IPPROTO_TCP cdef int IPPROTO_TCP
cdef int IPPROTO_UDP cdef int IPPROTO_UDP

View File

@ -186,6 +186,7 @@ class PortconProtocol(PolicyEnum):
tcp = IPPROTO_TCP tcp = IPPROTO_TCP
udp = IPPROTO_UDP udp = IPPROTO_UDP
dccp = IPPROTO_DCCP dccp = IPPROTO_DCCP
sctp = IPPROTO_SCTP
cdef class Portcon(Ocontext): cdef class Portcon(Ocontext):