diff options
author | Ilya Etingof <etingof@gmail.com> | 2019-01-10 23:27:07 +0100 |
---|---|---|
committer | Ilya Etingof <etingof@gmail.com> | 2019-02-07 09:39:17 +0100 |
commit | 7be540c41fa096370a0799c6a76990aa15cbf608 (patch) | |
tree | 4fb5eb6551419e0d2ad2abe30b03896dc5954ee9 /pysnmp/carrier/sockmsg.py | |
parent | 7e3c6b20ff3f976df63a8adefb0bab15ca25f253 (diff) | |
download | pysnmp-git-7be540c41fa096370a0799c6a76990aa15cbf608.tar.gz |
Add `IPV6_V6ONLY` IPV6 socket option
SO says this is required for proper UDP socket multi-homing.
Diffstat (limited to 'pysnmp/carrier/sockmsg.py')
-rw-r--r-- | pysnmp/carrier/sockmsg.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pysnmp/carrier/sockmsg.py b/pysnmp/carrier/sockmsg.py index 0b21233b..97273306 100644 --- a/pysnmp/carrier/sockmsg.py +++ b/pysnmp/carrier/sockmsg.py @@ -92,7 +92,7 @@ else: debug.logger & debug.flagIO and debug.logger( 'recvfrom: received %d octets from %s to %s; ' - 'iov blob %r' % (len(data), _from, _to, ancdata)) + 'iov blob %s' % (len(data), _from, _to, debug.hexdump(ancdata))) return data, addressType(_from).setLocalAddress(_to) @@ -120,7 +120,7 @@ else: ancdata = [(socket.SOL_IPV6, socket.IPV6_PKTINFO, memoryview(_f).tobytes())] debug.logger & debug.flagIO and debug.logger( - 'sendto: sending %d octets to %s; iov blob %r' % (len(data), _to, ancdata)) + 'sendto: sending %d octets to %s; iov blob %s' % (len(data), _to, debug.hexdump(ancdata))) return s.sendmsg([_data], ancdata, 0, _to) |