Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Dec 2002 14:33:00 +0100
From:      jeremie le-hen <ttz@epita.fr>
To:        net@freebsd.org
Subject:   hping strange behaviour
Message-ID:  <20021227133300.GA7461@carpediem.epita.fr>

next in thread | raw e-mail | index | archive | help
Hi,

I was just trying to send an ICMP address mask request to my provider default
gateway with hping from my FreeBSD 4.7-STABLE, but the latter gave me this
error message:

yoda:tataz# hping -n -I tun0 -V --icmp --dontfrag --icmp-addr 193.252.50.1
using lo0, addr: 127.0.0.1, MTU: 1500
HPING 193.252.50.1 (lo0 193.252.50.1): icmp mode set, 28 headers + 0 data bytes
[send_ip] sendto: Can't assign requested address.

This seems obious that hping doesn't use the right interface tun0 to send his
datagrams.
Note that I'm connected to Internet through a DSL connexion, using PPPoE. My
firewall rules don't care about outgoing ICMP and let them go on.

When I try to use ep0 which is not a kind of virtual interface like tun0 might
be considered as, the behaviour is exactly the same.

But when I try the exactly same command line on another FreeBSD 4.7-STABLE box
from my private network, here is the output:

z6po:tataz# hping -n -I ep0 -V --icmp --dontfrag --icmp-addr 193.252.50.1
using ep0, addr: 192.168.0.45, MTU:1500
HPING 193.252.50.1 (ep0 193.252.50.1): icmp mode set, 28 headers + 0 data bytes
^C
--- 193.252.50.1 hping statistic ---
3 packets transmitted, 0 packets received, 100% packet loss
round-trip min/avg/max = 0.0/0.0/0.0 ms


So does anyone have an idea on my problem ? Thanks in advance.

Regards,
-- 
Jeremie aka T{ata,t}Z
le-hen_j@epita.fr

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021227133300.GA7461>