summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES.txt2
-rw-r--r--pysnmp/carrier/asyncore/dgram/base.py2
-rw-r--r--pysnmp/carrier/sockfix.py3
3 files changed, 5 insertions, 2 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index fed8bcec..e516ad0f 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -88,6 +88,8 @@ Revision 4.4.9, released 2018-12-XX
-----------------------------------
- Made MIB loader ignoring file and directory access errors
- Fixed crash on MIB load failure in case of directory access error
+- Fixed socket transparency option (IPV6_TRANSPARENT)to make IPv6
+ transparent operation functional
Revision 4.4.8, released 2018-12-30
-----------------------------------
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():