diff --git a/lib/exabgp/bgp/message/update/attribute/community/extended/traffic.py b/lib/exabgp/bgp/message/update/attribute/community/extended/traffic.py index f2e6b9d67..8014b1101 100644 --- a/lib/exabgp/bgp/message/update/attribute/community/extended/traffic.py +++ b/lib/exabgp/bgp/message/update/attribute/community/extended/traffic.py @@ -252,7 +252,7 @@ def __init__(self, ip, asn, community=None): self, community if community is not None - else pack("!BB16sH", 0x00, 0x02, socket.inet_aton(socket.AF_INET6, ip), asn), + else pack("!BB16sH", 0x00, 0x02, socket.inet_pton(socket.AF_INET6, ip), asn), ) def __str__(self):