[liboping] TTL of received packets (was: liboping improvement)
Florian Forster
octo at verplant.org
Fri Mar 20 17:35:39 CET 2009
Hi Vladimir,
On Fri, Mar 20, 2009 at 11:08:01AM +0300, Vladimir V. Melnikov wrote:
> This version can not build on my platform (sun solaris) - I have some
> old SunSparc "netra" as "pinger". Solaris uses alternative socket
> library for recvmsg with msg_control in msghdr structure - xnet, and I
> had another problem on my platform - recvmsg not returned any cmsghdr
> - this version trats this situation as timeout, although recvmsg
> returned payload. That situation can be fixed by replacement "family =
> -1" by "family = ph->addrfamily" in ping_receive_one. Also I've added
> workaround with empty msg_control - ttl form ipv4 can still be got
> from ip_hdr :-). Patch follow up in the attach.
sounds great :) Unfortunatly, I'm too dumb to handle those old RCS style
diffs :( Could you re-format your patch as ``unified dif''? Most systems
can create those with:
diff -u
Thanks :)
-octo
--
Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
http://verplant.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/liboping/attachments/20090320/957e0a12/attachment.pgp
More information about the liboping
mailing list