[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] PATCH: nse on Linux routing Bug/Problem
Excuses if you receive this email twice, I get the impression the first
version did not reach the mailing list.
If it did..... I am very sorry,
Ruud Schramp
> -----Original Message-----
> From: Schramp, R.
> Sent: vrijdag 26 januari 2001 17:49
> To: 'ns-users@isi.edu'
> Subject: PATCH: nse on Linux routing Bug/Problem
>
> Hello All,
>
> I had some problems getting the packets sent by the nse.
>
> Using the pingdemo script, I found that the packets were captured by pcap,
> but didn't get sent by the raw socket: For some reason the packets were
> sent to the loopback device and never got to the Ethernet LAN. Altering
> settings like ip_forwarding didn't matter, also the routing table looked
> OK.
>
> I finaly got things working by using the "sendto" funtion instead of the
> "send" function. Now the packets are sent to the ethernet port. I only
> patched the portions of ip, not for udp or tcp.
>
> There still is a problem that linux now sends the packets to the default
> gateway (ethernet hardware address) althoug the destination IP number is
> in the local segment. This unfortunatly leads to ICMP_REDIRECTS on the
> local segment. I would hope the routing kernel of linux to put in the
> right hardware adress.
>
> Questions to the group/author of the nse portion. Is it feasible to roll a
> complete patch as described into the source (so there must still be some
> work for the other net_ip classes)
> Does someone have any suggestions on how to het on with this
> ICMP_REDIRECTS.
>
> Greetings,
>
> Ruud Schramp
>
> <<diff>>
>
> Log og the pings:
> Reply from 139.63.197.188: bytes=32 time=10ms TTL=31
> Reply from 139.63.197.188: bytes=32 time=10ms TTL=31
> Reply from 139.63.197.188: bytes=32 time=10ms TTL=31
> Reply from 139.63.197.188: bytes=32 time=10ms TTL=31
> Reply from 139.63.197.188: bytes=32 time=10ms TTL=31
> Reply from 139.63.197.188: bytes=32 time=10ms TTL=31
> Reply from 139.63.197.188: bytes=32 time=10ms TTL=31
> Reply from 139.63.197.188: bytes=32 time=4006ms TTL=31
> Reply from 139.63.197.188: bytes=32 time=4016ms TTL=31
> Reply from 139.63.197.188: bytes=32 time=2514ms TTL=31
> Reply from 139.63.197.188: bytes=32 time=1011ms TTL=31
> Reply from 139.63.197.188: bytes=32 time=1011ms TTL=31
> Reply from 139.63.197.188: bytes=32 time=1012ms TTL=31
> Reply from 139.63.197.188: bytes=32 time=1021ms TTL=31
> Reply from 139.63.197.188: bytes=32 time=1012ms TTL=31
> Reply from 139.63.197.188: bytes=32 time=1011ms TTL=31
> Reply from 139.63.197.188: bytes=32 time=1012ms TTL=31
> Reply from 139.63.197.188: bytes=32 time=1011ms TTL=31
> Reply from 139.63.197.188: bytes=32 time=1012ms TTL=31
> Reply from 139.63.197.188: bytes=32 time=210ms TTL=31
> Reply from 139.63.197.188: bytes=32 time=210ms TTL=31
> Reply from 139.63.197.188: bytes=32 time=210ms TTL=31
> Reply from 139.63.197.188: bytes=32 time=210ms TTL=31
>
>
>
diff