Skip to contentSkip to conversation

hvm network test fixes

PATCH Adam Wendt 2 participants 2 messages Feb 1, 2006 – Jun 6, 2019

lore
Share & tools
lore

Adam Wendt

author
#0 lore raw

Hm, hping2 doesn't appear to work on my disk image:

@%@%> hping2 -c 2 127.0.0.1
[open_sockpacket] socket(): Address family not supported by protocol [main] can't open packet socket

Maybe an issue with using the 2.4 kernel or something else?

Adam Wendt
IPCoast, Inc.

On Wed, 01 Feb 2006 12:52 , Dan Smith <[email protected]> sent:

Quoted 15 lines

AW> the hvm image doesn't appear to have support for ping -f so I'll AW> need to find another solution, any ideas?

We put hping is in the disk image for network testing, so perhaps it can be of use? It looks like you can at least specify the interval between pings to be a small number of microseconds, with -i uX.

Signature · 4 lines
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: [email protected]
#1 lore raw

AQ> Hm, hping2 doesn't appear to work on my disk image:
AQ>
AQ> @%@%> hping2 -c 2 127.0.0.1
AQ> [open_sockpacket] socket(): Address family not supported by protocol AQ> [main] can't open packet socket

It seems to work on my HVM box:

@%@%> hping2 -c 2 127.0.0.1
HPING 127.0.0.1 (lo 127.0.0.1): NO FLAGS are set, 40 headers + 0 data bytes
len=40 ip=127.0.0.1 ttl=64 DF id=0 sport=0 flags=RA seq=0 win=0 rtt=0.0 ms
len=40 ip=127.0.0.1 ttl=64 DF id=1 sport=0 flags=RA seq=1 win=0 rtt=0.0 ms

--- 127.0.0.1 hping statistic ---
2 packets tramitted, 2 packets received, 0% packet loss round-trip min/avg/max = 0.0/0.0/0.0 ms

Are you plumbing lo before attempting this? By default, lo is down and has no IP.

Signature · 4 lines
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: [email protected]