in reply to unsigned int in the host format and raw socket

Probably this comment is completely missing the point, but the documentation you cite says that you can happily use the dotted stringified notation for saddr and daddr. Do you really need to bother with this conversion?

Flavio
perl -ple'$_=reverse' <<<ti.xittelop@oivalf

Don't fool yourself.
  • Comment on Re: unsigned int in the host format and raw socket