in reply to Re^5: Need help with (un)pack templates
in thread Need help with (un)pack templates

Don't be confused by the 32-bit CCCC's, since an IP address is 4 8-bit numbers, not a 32-bit number.

It's actually 32 opaque bits. The dotted form is just a representation. The separation into bytes in completely arbitrary. But if you're going to display in that form, it might be useful to extract the IP as 4 bytes.

  • Comment on Re^6: Need help with (un)pack templates