diff options
Diffstat (limited to 'pysnmp')
-rw-r--r-- | pysnmp/carrier/asyncore/dgram/base.py | 2 | ||||
-rw-r--r-- | pysnmp/carrier/sockfix.py | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/pysnmp/carrier/asyncore/dgram/base.py b/pysnmp/carrier/asyncore/dgram/base.py index f6ebbbe9..95b24222 100644 --- a/pysnmp/carrier/asyncore/dgram/base.py +++ b/pysnmp/carrier/asyncore/dgram/base.py @@ -96,7 +96,7 @@ class DgramSocketTransport(AbstractSocketTransport): ) if self.socket.family == socket.AF_INET6: self.socket.setsockopt( - socket.SOL_IPV6, socket.IP_TRANSPARENT, flag + socket.SOL_IPV6, socket.IPV6_TRANSPARENT, flag ) except socket.error: diff --git a/pysnmp/carrier/sockfix.py b/pysnmp/carrier/sockfix.py index 02480bb2..fab6d1aa 100644 --- a/pysnmp/carrier/sockfix.py +++ b/pysnmp/carrier/sockfix.py @@ -14,7 +14,8 @@ SYMBOLS = { 'IP_TRANSPARENT': 19, 'SOL_IPV6': 41, 'IPV6_RECVPKTINFO': 49, - 'IPV6_PKTINFO': 50 + 'IPV6_PKTINFO': 50, + 'IPV6_TRANSPARENT': 75 } for symbol, value in SYMBOLS.items(): |