Re: Traceroute without s bit

2000-12-06 Thread Olaf Kirch
On Wed, Dec 06, 2000 at 10:35:14AM -0500, James Antill wrote: > I've just looked at it, but I'm pretty sure this is a bug in your > code. Ick. Thanks! Olaf -- Olaf Kirch | --- o --- Nous sommes du soleil we love when we play [EMAIL PROTECTED] |/ | \ sol.dhoop.naytheet.ah kin.ir

Re: Traceroute without s bit

2000-12-06 Thread Andi Kleen
On Wed, Dec 06, 2000 at 04:07:38PM +0100, Olaf Kirch wrote: > On Wed, Dec 06, 2000 at 02:09:05PM +0100, Andi Kleen wrote: > > IP_PKTINFO does not allow to set source addresses, only destination > > addresses. Source address depends on the boundage or the route. > > No. At least udp_sendmsg uses

Re: Traceroute without s bit

2000-12-06 Thread James Antill
Olaf Kirch <[EMAIL PROTECTED]> writes: > 3. There seems to be a bug somewhere in the handling of poll(). > If you observe the traceroute process with strace, you'll > notice that it starts spinning madly after receiving the > first bunch of packets (those with ttl 1). > >

Re: Traceroute without s bit

2000-12-06 Thread Olaf Kirch
On Wed, Dec 06, 2000 at 02:09:05PM +0100, Andi Kleen wrote: > IP_PKTINFO does not allow to set source addresses, only destination > addresses. Source address depends on the boundage or the route. No. At least udp_sendmsg uses the spec_dst_addr field as the source address. I added some code to m

Re: Traceroute without s bit

2000-12-06 Thread Andi Kleen
On Wed, Dec 06, 2000 at 01:50:19PM +0100, Olaf Kirch wrote: > Hi all, > > I wrote a small traceroute last night that works mostly like the > LBL one, except it doesn't need an s bit anymore :) It already existed in Alexey's iputils (tracepath). > There are three things that puzzle me, however

Traceroute without s bit

2000-12-06 Thread Olaf Kirch
Hi all, I wrote a small traceroute last night that works mostly like the LBL one, except it doesn't need an s bit anymore :) Since the source code is small, I'm attaching it to this mail. Note that it requires a 2.4 linux kernel and possibly a recent glibc (not sure of that). Most of the featu