hping wiki



hping iflist

The iflist subcommand returns a list of all the available interfaces (with the UP flag set), and information about every interface. Interface informations are returned as a Tcl list, that's an example:
hping3.0.0-alpha> hping iflist
{lo 16436 {127.0.0.1} {LOOPBACK}} {eth0 1500 {192.168.1.6} {}}

But this may be more clear:
hping3.0.0-alpha> foreach i [hping iflist] {puts $i}
lo 16436 {127.0.0.1} {LOOPBACK}
eth0 1500 {192.168.1.6} {}

As you can see both the interface addresses and flags are reported as Tcl lists, in order to deal with multiple-flags and addresses interfaces. This is an example:
hping3.0.0-alpha> foreach i [hping iflist] {puts $i}
lo0 33224 {127.0.0.1} {LOOPBACK}
xl0 1500 {191.224.144.21 64.238.141.219} {}

The above host has an IPv4 alias for xl0
 
Edit this page Upload file Page history - Page last update: Wed Sep 29 06:04:01 GMT 2004 by 82.49.41.92 | Your address: 54.224.164.166 | Admin