I have two ipv6 address stored in structure struct in6_addr
. I would like to find which one is smaller without using memcmp
. Is there a better way to compare ipv6 addresses?
struct in6_addr {
unsigned char s6_addr[16]; /* IPv6 address */
};
Aucun commentaire:
Enregistrer un commentaire