romana / multi-ping

Python library to monitor one or many IP addresses via ICMP echo (ping) requests

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IPv6 support

mwiget opened this issue · comments

I needed basic IPv6 support and ended up enhancing your module: https://github.com/mwiget/multi-ping/tree/inet6

Is this something of interest and would it need to be configurable to avoid unintentional name resolution to IPv6? If yes, I'd be happy to start a pull request for further discussion.

My use case btw is in network automation, where I check a list of next hop IPv4 and IPv6 addresses before adding routes. I don't need DNS support, but had to replace gethostbyname() with an IPv6 capable alternative (getaddrinfo()).

Hello, and thank you for taking an interest in multi-ping.

Yes, I'd love to see a PR for this!

Cool. I'll need a few days to clean/test this further, then create a pull request eventually.