Skip to content

Commit

Permalink
socket: IPPROTO_L2TP not supported on github since its on linux 6.5
Browse files Browse the repository at this point in the history
  • Loading branch information
YoSTEALTH committed Mar 15, 2024
1 parent 5e46798 commit 90db4e2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/liburing/lib/socket.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,8 @@ cdef extern from '<netinet/in.h>' nogil:
__IPPROTO_ENCAP 'IPPROTO_ENCAP' # Encapsulation Header
__IPPROTO_PIM 'IPPROTO_PIM' # Protocol Independent Multicast
__IPPROTO_COMP 'IPPROTO_COMP' # Compression Header Protocol
__IPPROTO_L2TP 'IPPROTO_L2TP' # Layer 2 Tunnelling Protocol
# note: not supported
# __IPPROTO_L2TP 'IPPROTO_L2TP' # Layer 2 Tunnelling Protocol
__IPPROTO_SCTP 'IPPROTO_SCTP' # Stream Control Transport Protocol
__IPPROTO_UDPLITE 'IPPROTO_UDPLITE' # UDP-Lite (RFC 3828)
__IPPROTO_MPLS 'IPPROTO_MPLS' # MPLS in IP (RFC 4023)
Expand Down
3 changes: 2 additions & 1 deletion src/liburing/socket.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,8 @@ cpdef enum SocketProto:
IPPROTO_ENCAP = __IPPROTO_ENCAP
IPPROTO_PIM = __IPPROTO_PIM
IPPROTO_COMP = __IPPROTO_COMP
IPPROTO_L2TP = __IPPROTO_L2TP
# note: not supported
# IPPROTO_L2TP = __IPPROTO_L2TP
IPPROTO_SCTP = __IPPROTO_SCTP
IPPROTO_UDPLITE = __IPPROTO_UDPLITE
IPPROTO_MPLS = __IPPROTO_MPLS
Expand Down
3 changes: 2 additions & 1 deletion test/socket/socket_define_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ def test_socket_define():
assert liburing.IPPROTO_ENCAP == 98
assert liburing.IPPROTO_PIM == 103
assert liburing.IPPROTO_COMP == 108
assert liburing.IPPROTO_L2TP == 115
# note: not supported
# assert liburing.IPPROTO_L2TP == 115
assert liburing.IPPROTO_SCTP == 132
assert liburing.IPPROTO_UDPLITE == 136
assert liburing.IPPROTO_MPLS == 137
Expand Down

0 comments on commit 90db4e2

Please sign in to comment.