GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
SENDIP(1) FSF SENDIP(1)

sendip - Send arbitrary IP packets

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

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
read packet data from file
print this message
load the specified module (see below)
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 previos model in the final packet. For example, to embed bgp inside tcp inside ipv4, do sendip -p ipv4 -p tcp -p bgp ....

ipv4 ipv6 icmp tcp udp bgp rip ntp

BGP Marker field (format is <hex byte>:<hex byte>:...)
Default: FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF
Packet length
Default: Correct
Message Type (1 OPEN, 2 UPDATE, 3 NOTIFICATION, 4 KEEPALIVE
Default: 4 (KEEPALIVE)
Open message. Format is <version>:<AS number>:<Hold time>:<BGP Identifier>:<Options length>
(Any parameter can be omitted to get the default)
Optional OPEN parameter. Format is <Type>:<Length>:<Value> - value is in hex bytes separated by :s
Default: Length may be omitted to get correct value
Withdrawn routes length
Default: Correct
Withdrawn route. Format is x.x.x.x/n:<bytes for prefix>
Default: Bytes field may be omitted to use the correct number
Attributes length
Default: Correct
Attribute. Format is <flags>:<type>:<length length (1 or 2):<length>:<data>
Default: The length fields may be omitted to use the correct value
NLRI Prefix. Format is as for -buw
Default: As for -buw
Notification. Format is <code>:<subcode>:<data>
Default: Data may be omitted for no data

ICMP message type
Default: ICMP_ECHO (8), or ICMP6_ECHO_REQUEST (128) if embedded in an IPv6 packet
ICMP code
Default: 0
ICMP checksum
Default: Correct

Source IP address (see README)
Default: 127.0.0.1
Desitnation IP address
Default: Correct
IP header length (see README)
Default: Correct
IP version (you almost definately don't want to change this)
Default: 4
IP type of service
Default: 0
Total IP packet length (see README)
Default: Correct
IP packet ID (see README)
Default: Random
IP reservced flag (see README)
Default: 0 (options are 0,1,r)
IP don't fragment flag (see README)
Default: 0 (options are 0,1,r)
IP more fragments flag (see README)
Default: 0 (options are 0,1,r)
IP fragment offset
Default: 0
IP time to live
Default: 255
IP protcol
Default: 0, or set by underlying protocol
IP checksum (see README)
Default: Correct
IP option as string of hex bytes (length is always correct)
Default: (no options)
IP option: end of list
IP option: no-op
IP option: record route. Format: pointer:addr1:addr2:...
IP option: timestamp. Format: pointer:overflow:flag:(ip1:)ts1:(ip2:)ts2:...
IP option: loose source route. Format: pointer:addr1:addr2:...
IP option: stream identifier
IP option: strict source route. Format: pointer:addr1:addr2:...

-6f x
IPv6 flow ID
Default: 32
-6t x
IPv6 traffic class
Default: 0
-6l x
IPv6 payload length
Default: Correct
-6n x
IPv6 next header
Default: IPPROTO_NONE
-6h x
IPv6 hop limit
Default: 32
-6v x
IP version (you probably don't want to change this
-6p x
IPv6 priority
Default: 0
-6s x
IPv6 source address
Default: ::1
-6d x
IPv6 destination address
Default: Correct

NTP Leap Indicator
Default: 00 (no warning)
NTP status
Default: 0 (clock operating OK)
NTP type
Default: 0 (unspecified)
NTP precision
Default: 0
NTP estimated error
Default: 0.0
NTP estimated drift rate
Default: 0.0
NTP reference clock ID (string or IP or number)
Default: 0
NTP reference timestamp
Default: 0.0
NTP originate timestamp
Default: 0.0
NTP arrival (receive) timestamp
Default: 0.0
NTP xmit (transmit) timestamp
Default: 0.0

RIP version
Default: 2
RIP command (1=request, 2=response, 3=traceon (obsolete), 4=traceoff (obsolete), 5=poll (undocumented), 6=poll entry (undocumented)
Default: 1
Add a RIP entry. Format is: Address family:route tag:address:subnet mask:next hop:metric
Default: 2:0:0.0.0.0:255.255.255.0:0.0.0.0:16, any option my be left out to use the default
RIP authenticat packet, argument is the password; do not use any other RIP options on this RIP header
RIP default request - get router's entire routing table; do not use any other RIP options on this RIP header

RIPng version
Default: 1
RIPng command (1=request, 2=response)
Default: 1
RIPng reserved field (should be 0)
Default: 0
Add a RIPng entry. Format is: Address/route tag/address/len/metric
Default: ::/0/128/1, any option my be left out to use the default
RIPng default request - get router's entire routing table; do not use any other RIPng options on this RIPng header

TCP source port
Default: 0
TCP destination port
Default: 0
TCP sequence number
Default: Random
TCP ack number
Default: 0
TCP data offset
Default: Correct
TCP header reserved field EXCLUDING ECN and CWR bits
Default: 0
TCP ECN bit (rfc2481)
Default: 0 (options are 0,1,r)
TCP CWR bit (rfc2481)
Default: 0 (options are 0,1,r)
TCP URG bit
Default: 0, or 1 if -tu specified (options are 0,1,r)
TCP ACK bit
Default: 0, or 1 if -ta specified (options are 0,1,r)
TCP PSH bit
Default: 0 (options are 0,1,r)
TCP RST bit
Default: 0 (options are 0,1,r)
TCP SYN bit
Default: 1 (options are 0,1,r)
TCP FIN bit
Default: 0 (options are 0,1,r)
TCP window size
Default: 65535
TCP checksum
Default: Correct
TCP urgent pointer
Default: 0
TCP option as string of hex bytes (length is always correct)
Default: (no options)
TCP option: end of list
TCP option: no op
TCP option: maximum segment size
TCP option: window scale (rfc1323)
TCP option: allow selective ack (rfc2018)
TCP option: selective ack (rfc2018), format is l_edge1:r_edge1,l_edge2:r_edge2...
TCP option: timestamp (rfc1323), format is tsval:tsecr

UDP source port
Default: 0
UDP destination port
Default: 0
UDP packet legnth
Default: Correct
UDP checksum
Default: Correct
July 2025 sendip 2.5

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.