Opened 18 years ago

Closed 16 years ago

Last modified 16 years ago

#11420 closed defect (invalid)

hping3 doesn't work on Intel

Reported by: trac.macosforge.org@… Owned by: pmq@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: markd@…
Port: hping2, hping3

Description

both the hping2 and hping2 ports are broken on intel:

beejmacbook:~ beej$ sudo hping2 -p 22 localhost
HPING localhost (lo0 127.0.0.1): NO FLAGS are set, 40 headers + 0 data bytes
[send_ip] sendto: Invalid argument
beejmacbook:~ beej$ sudo hping3 -p 22 localhost
HPING localhost (lo0 127.0.0.1): NO FLAGS are set, 40 headers + 0 data bytes
[send_ip] sendto: Invalid argument

works fine on PPC

see here for a possible fix: http://lists.apple.com/archives/macnetworkprog/2006/Jun/msg00049.html

Change History (17)

comment:1 Changed 18 years ago by pmq@…

Owner: changed from macports-dev@… to pmq@…
Summary: hping doesn't work on intelBUG: hping2 & hping3 don't work on Intel

comment:2 Changed 18 years ago by pipping@…

Milestone: Available Ports

comment:3 Changed 18 years ago by pipping@…

Milestone: Available PortsPort Bugs

comment:4 Changed 18 years ago by pmq@…

Cc: trac.macosforge.org@… pmq@… added
Status: newassigned

Just committed the fix that should make it work (on hping3 only). Sorry for the delay. Can you test if it works OK and keep me informed?

comment:5 Changed 18 years ago by markd@…

Cc: markd@… added
Resolution: fixed
Status: assignedclosed

hping3 builds fine on Intel for me. hping2 also.

comment:6 Changed 17 years ago by trac.macosforge.org@…

Resolution: fixed
Status: closedreopened

mark: the problem wasn't with building. it was buggy behavior from the binaries.

anyway, the current version of hping2 now works, but hping3 is still busted:

beejmacbook:~ beej$ port installed|grep hping|grep active
  hping2 @rc3_2 (active)
  hping3 @20051105_0 (active)
beejmacbook:~ beej$ sudo hping2 -S -p 22 localhost
HPING localhost (lo0 127.0.0.1): S set, 40 headers + 0 data bytes
len=44 ip=127.0.0.1 ttl=64 DF id=26202 sport=22 flags=SA seq=0 win=65535 rtt=0.1 ms
len=44 ip=127.0.0.1 ttl=64 DF id=11100 sport=22 flags=SA seq=1 win=65535 rtt=0.2 ms
^C
--- localhost hping statistic ---
2 packets tramitted, 2 packets received, 0% packet loss
beejmacbook:~ beej$ sudo hping3 -S -p 22 localhost
HPING localhost (lo0 127.0.0.1): S set, 40 headers + 0 data bytes
[send_ip] sendto: Invalid argument

comment:7 Changed 17 years ago by pmq@…

Summary: BUG: hping2 & hping3 don't work on Intelhping3 doesn't work on Intel

Can you try a DNS lookup, like "resolve www.macports.org"?

10.4 or 10.5?

comment:8 Changed 16 years ago by pmq@…

Resolution: worksforme
Status: reopenedclosed

I switched to OS X 10.5 on Intel and it works fine for me:

queinnec@pasiphae:~$ sudo hping3 -S -p 22 localhost
HPING localhost (lo0 127.0.0.1): S set, 40 headers + 0 data bytes
len=40 ip=127.0.0.1 ttl=64 id=10156 sport=22 flags=RA seq=0 win=0 rtt=0.1 ms
len=40 ip=127.0.0.1 ttl=64 id=63702 sport=22 flags=RA seq=1 win=0 rtt=0.1 ms
len=40 ip=127.0.0.1 ttl=64 id=23244 sport=22 flags=RA seq=2 win=0 rtt=0.2 ms
len=40 ip=127.0.0.1 ttl=64 id=31141 sport=22 flags=RA seq=3 win=0 rtt=0.2 ms
^C
--- localhost hping statistic ---
4 packets tramitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 0.1/0.1/0.2 ms

Either 10.5.x fixed the problem, or a newer Tcl, or else. Please reopen if you still have the problem.

comment:9 Changed 16 years ago by macosforge.org@…

still not working for me on santa rosa macbook with Tcl 8.5.4_0 on 10.5.4:

beejmacbook:~ beej$ sudo hping3 -S -p 22 localhost
HPING localhost (lo0 127.0.0.1): S set, 40 headers + 0 data bytes
[send_ip] sendto: Invalid argument

FYI: i can't reopen my own ticket for some reason

comment:10 Changed 16 years ago by mf2k (Frank Schima)

Cc: trac.macosforge.org@… pmq@… removed
Port: hping2 hping3 added
Priority: HighNormal
Resolution: worksforme
Status: closedreopened

Did you rebuild hping3?

sudo port uninstall hping3
sudo port install hping3

comment:11 Changed 16 years ago by mf2k (Frank Schima)

Resolution: worksforme
Status: reopenedclosed

Closing due to lack of response.

comment:12 Changed 16 years ago by macosforge.org@…

i upgraded before testing.

beejmacbook:~ beej$ port installed hping3
The following ports are currently installed:
  hping3 @20051105_0 (active)

comment:13 Changed 16 years ago by raimue (Rainer Müller)

Resolution: worksforme
Status: closedreopened

Reopening as requested in #16573.

comment:14 Changed 16 years ago by pmq@…

Are you sure you made a full clean/rebuild as mentioned before? It still works fine here.

comment:15 Changed 16 years ago by macosforge.org@…

seems to work with an install of the latest version:

beejmacbook:~ beej$ sudo hping3 -S -p 22 localhost
HPING localhost (lo0 127.0.0.1): S set, 40 headers + 0 data bytes
[send_ip] sendto: Invalid argument
beejmacbook:~ beej$ sudo port uninstall hping3
--->  Deactivating hping3 @20051105_0
--->  Uninstalling hping3 @20051105_0
beejmacbook:~ beej$ sudo port install hping3
Portfile changed since last build; discarding previous state.
--->  Fetching hping3
--->  Verifying checksum(s) for hping3
--->  Extracting hping3
--->  Applying patches to hping3
--->  Configuring hping3
--->  Building hping3
--->  Staging hping3 into destroot
--->  Installing hping3 @20051105_1
--->  Activating hping3 @20051105_1
--->  Cleaning hping3
beejmacbook:~ beej$ sudo hping3 -S -p 22 localhost
HPING localhost (lo0 127.0.0.1): S set, 40 headers + 0 data bytes
len=44 ip=127.0.0.1 ttl=64 DF id=21693 sport=22 flags=SA seq=0 win=65535 rtt=0.2 ms
<snip>

comment:16 Changed 16 years ago by pmq@…

Resolution: invalid
Status: reopenedclosed

It works because you didn't use a clean after uninstall and before install last time:

sudo port uninstall hping3
sudo port clean --all hping3
sudo port install hping3

comment:17 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.