阅读背景:

如何在C中的小端机器上比较两个ipv6地址

来源:互联网 

I am trying to compare two ipv6 addresses however want to create the code to be portable. I know that ipv6 addresses are stored in network byte order (big endian) so on a big-endian CPU I can simply use memcmp across the two in6_addr structs. But what is the easiest way to do the same thing on a little-endian machine?I am trying to compare two ipv6 addresses howev




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: