Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2022-06-18 | feat(ipconverter): add a tool to convert IPv4 to int and vice-versa | Franck Cuny | 4 | -0/+120 | |
It's sometimes useful to store IPv4 addresses as an integer. This tool helps with the conversion, and also does the reverse conversion. ``` % go run . int2ip 3232235521 3232235521 192.168.0.1 % go run . ip2int 192.168.0.1 192.168.0.1 3232235521 ``` Change-Id: Ic1e44057bca3539b4c183d387c635f69f5bf3f36 Re |