jeudi 1 septembre 2016

how to compare ipv6 address in c without using memcmp

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