Concept |  Packet |  Mapper |  Network |  Procotol language |  Utilities |  Launching |  FAQ 

packetName send ?-interface if?
size of the packet
  Send the packet to the network using the given interface. If no interface is given, the default interface associated with the packet is used.

packetName receive/capture ?-interface if? ?-filter text? ?-timeout t? ?-background? ?-getpacket? ?-waitpacket?
size of the packet
  Try to capture a packet on the network waiting maximout of t milliseconds and using a filter if specified (the filter is based on pcap, so see the man page of tcpdump for the syntax).

You can choose the interface used for the capture.

The options -backgournd, -getpacket and -waitpacket can be used to do asynchronous capture. Set the filter using the -backgournd mode, then use either -getpacket to get a bufferized packet (no timeout, returns directly) or -waitpacket to wait for a packet (using optionnally a timeout).

packetName timestamp
timestamp
  Returns the timestamp of a capture packet or 0 if the packet has not been captured.

packetName interface ?value?
interface
  Query or set the interface associated with a packet. This interface is used when resolving addresses (ethernet or IP).

device interfaces
list if interfaces
  Returns a list of all the interfaces attached to the host.

device defaultinterface ?interface?
interface
  Query or set the default interface to use when creating packets. addresses (ethernet or IP).

device ethernet ?interface?
device ip ?interface?
device netmask ?interface?
device mtu ?interface?
ethernet address
IP address
network mask
MTU
  Returns some info about the ethernet and IP addresses, netmask and MTU of the host running GASP.

device arp ?-interface if? IPaddress
ethernet address
  Return the ARP address for the IP address. This is done by sending an ARP request to the network (via interface if) and waiting/analyzing the reply.

device resolvetimeout ?t?
t
  Query or set the resolve timeout used when trying to resolve an IP address to a fully qualified name.


Copyright © 2000 Laurent Riesterer.
Last modified on Oct 2, 2000.