c - ether_addr_octet in host order byte -


i convert struct ether_addr (ether_addr_octet) integer host byte order representation. ideas?

ntohl(eth->ether_addr_octet) 

not working, because ether_addr_octet char array.

regards

i'm not sure semantics of going be. ether 48bit, , largest ntoh* 32bit values. suppose can create 64bit value parsing char array, , calling ntohl() twice...


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -