mirror of
https://github.com/SELinuxProject/setools
synced 2025-03-20 18:16:41 +00:00
PortconProtocol: Add support for SCTP portcons.
This commit is contained in:
parent
4a98b8315b
commit
1a73d75b59
setools/policyrep
@ -54,6 +54,7 @@ cdef extern from "<sys/socket.h>":
|
||||
cdef extern from "<netinet/in.h>":
|
||||
cdef int INET6_ADDRSTRLEN
|
||||
cdef int IPPROTO_DCCP
|
||||
cdef int IPPROTO_SCTP
|
||||
cdef int IPPROTO_TCP
|
||||
cdef int IPPROTO_UDP
|
||||
|
||||
|
@ -186,6 +186,7 @@ class PortconProtocol(PolicyEnum):
|
||||
tcp = IPPROTO_TCP
|
||||
udp = IPPROTO_UDP
|
||||
dccp = IPPROTO_DCCP
|
||||
sctp = IPPROTO_SCTP
|
||||
|
||||
|
||||
cdef class Portcon(Ocontext):
|
||||
|
Loading…
Reference in New Issue
Block a user