3 ms·
I actually prefer them as integers personally. 4 bytes for IPv4, 16 bytes for IPv6, is more space efficient than any string representation usually.
by jsjohnst 8y ago
I actually prefer them as integers personally. 4 bytes for IPv4, 16 bytes for IPv6, is more space efficient than any string representation usually.
- rkeene2 8y ago16 bytes isn't always enough to store an IPv6 address. Depending on the requirements, you may need to store a fully scoped IPv6 address, such as fe80::1%eth0. Edit to note: I store the fully scoped IPv6 address in a database as part of my CMDB mechanism.
- jsjohnst 8y agoJust curious, but what use do you have for storing link-local addresses?