Reference

sendip(1)

Send arbitrary IP packets

NAME

Usage: - Send arbitrary IP packets

SYNOPSIS

sendip [-v] [-d data] [-h] [-f datafile] [-p module] [module options] hostname

DESCRIPTION

-d data

add this data as a string to the end of the packet Data can be: rN to generate N random(ish) data bytes; 0x or 0X followed by hex digits; 0 followed by octal digits; any other stream of bytes

-s options

set socket options Valid options are: b (SO_BROADCAST) allow sending packets to broadcast addresses; i (IP_HDRINCL) (ON BY DEFAULT) include IP headers (expert use only!); 6 (IPV6_*) (ON BY DEFAULT) various options for setting ipv6 headers

-f datafile

read packet data from file

-h

print this message

-p module

load the specified module (see below)

-v

be verbose

Modules are loaded in the order the -p option appears. The headers from each module are put immediately inside the headers from the previous model in the final packet. For example, to embed bgp inside tcp inside ipv4, do sendip -p ipv4 -p tcp -p bgp ....

Modules available at compile time:

ipv4 ipv6 icmp tcp udp bgp rip ntp

-d data

add this data as a string to the end of the packet Data can be: rN to generate N random(ish) data bytes; 0x or 0X followed by hex digits; 0 followed by octal digits; any other stream of bytes

-s options

set socket options Valid options are: b (SO_BROADCAST) allow sending packets to broadcast addresses; i (IP_HDRINCL) (ON BY DEFAULT) include IP headers (expert use only!); 6 (IPV6_*) (ON BY DEFAULT) various options for setting ipv6 headers

-f datafile

read packet data from file

-h

print this message

-p module

load the specified module (see below)

-v

be verbose

Modules are loaded in the order the -p option appears. The headers from each module are put immediately inside the headers from the previous model in the final packet. For example, to embed bgp inside tcp inside ipv4, do sendip -p ipv4 -p tcp -p bgp ....

Modules available at compile time:

ipv4 ipv6 icmp tcp udp bgp rip ntp

History

-s since Debian 11 (Bullseye).

-6d until Debian 10 (Buster); -6f until Debian 10 (Buster); -6h until Debian 10 (Buster); -6l until Debian 10 (Buster); -6n until Debian 10 (Buster); -6p until Debian 10 (Buster); -6s until Debian 10 (Buster); -6t until Debian 10 (Buster); -6v until Debian 10 (Buster); -Rc until Debian 10 (Buster); -Rd until Debian 10 (Buster); -Re until Debian 10 (Buster); -Rr until Debian 10 (Buster); -Rv until Debian 10 (Buster); -bl until Debian 10 (Buster); -bm until Debian 10 (Buster); -bn until Debian 10 (Buster); -bo until Debian 10 (Buster); -boo until Debian 10 (Buster); -bt until Debian 10 (Buster); -bua until Debian 10 (Buster); -bul until Debian 10 (Buster); -bun until Debian 10 (Buster); -bus until Debian 10 (Buster); -buw until Debian 10 (Buster); -cc until Debian 10 (Buster); -cd until Debian 10 (Buster); -ct until Debian 10 (Buster); -ic until Debian 10 (Buster); -id until Debian 10 (Buster); -if until Debian 10 (Buster); -ifd until Debian 10 (Buster); -ifm until Debian 10 (Buster); -ifr until Debian 10 (Buster); -ih until Debian 10 (Buster); -ii until Debian 10 (Buster); -il until Debian 10 (Buster); -ioeol until Debian 10 (Buster); -iolsr until Debian 10 (Buster); -ionop until Debian 10 (Buster); -ionum until Debian 10 (Buster); -iorr until Debian 10 (Buster); -iosid until Debian 10 (Buster); -iossr until Debian 10 (Buster); -iots until Debian 10 (Buster); -ip until Debian 10 (Buster); -is until Debian 10 (Buster); -it until Debian 10 (Buster); -iv until Debian 10 (Buster); -iy until Debian 10 (Buster); -na until Debian 6.0 (Squeeze); -nd until Debian 6.0 (Squeeze); -ne until Debian 6.0 (Squeeze); -nf until Debian 6.0 (Squeeze); -nl until Debian 6.0 (Squeeze); -no until Debian 6.0 (Squeeze); -np until Debian 6.0 (Squeeze); -nr until Debian 6.0 (Squeeze); -ns until Debian 6.0 (Squeeze); -nt until Debian 6.0 (Squeeze); -nx until Debian 6.0 (Squeeze); -ra until Debian 10 (Buster); -rc until Debian 10 (Buster); -rd until Debian 10 (Buster); -re until Debian 10 (Buster); -rv until Debian 10 (Buster); -ta until Debian 10 (Buster); -tc until Debian 10 (Buster); -td until Debian 10 (Buster); -tfa until Debian 10 (Buster); -tfc until Debian 10 (Buster); -tfe until Debian 10 (Buster); -tff until Debian 10 (Buster); -tfp until Debian 10 (Buster); -tfr until Debian 10 (Buster); -tfs until Debian 10 (Buster); -tfu until Debian 10 (Buster); -tn until Debian 10 (Buster); -toeol until Debian 10 (Buster); -tomss until Debian 10 (Buster); -tonop until Debian 10 (Buster); -tonum until Debian 10 (Buster); -tosack until Debian 10 (Buster); -tosackok until Debian 10 (Buster); -tots until Debian 10 (Buster); -towscale until Debian 10 (Buster); -tr until Debian 10 (Buster); -ts until Debian 10 (Buster); -tt until Debian 10 (Buster); -tu until Debian 10 (Buster); -tw until Debian 10 (Buster); -uc until Debian 10 (Buster); -ud until Debian 10 (Buster); -ul until Debian 10 (Buster); -us until Debian 10 (Buster).