traceroute: rewrite. Do not emit raw IP packets, instead send UDP or ICMP
authorDenis Vlasenko <vda.linux@googlemail.com>
Sat, 24 Jan 2009 20:14:24 +0000 (20:14 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Sat, 24 Jan 2009 20:14:24 +0000 (20:14 -0000)
commit766c10c386f5f4c6e01fa2d2797f52809db25ef4
tree75319f2d0d5a7744e2b2eace30fda23ca5a72e7e
parentfa65a3d78f32a305239494b8dc0f8ef14f83465d
traceroute: rewrite. Do not emit raw IP packets, instead send UDP or ICMP
 packets and rely on the kernel to form IP headers, select source IP
 and interface. Doing it in traceroute wasn't working too good,
 and was bloating it.

function                                             old     new   delta
freehostinfo                                          29       -     -29
setsin                                                30       -     -30
in_cksum                                              57       -     -57
gethostinfo                                          165       -    -165
ifaddrlist                                           364       -    -364
traceroute_main                                     3713    2951    -762
------------------------------------------------------------------------------
(add/remove: 0/5 grow/shrink: 0/1 up/down: 0/-1407)         Total: -1407 bytes
networking/traceroute.c