NAME
loopback – network link simulation |
SYNOPSIS
bind –a #X /net /net/loopbackn/[0–1] /net/loopbackn/[0–1]/data /net/loopbackn/[0–1]/ctl /net/loopbackn/[0–1]/status /net/loopbackn/[0–1]/stats |
DESCRIPTION
The loopback interface, /net/loopbackn, is a directory containing
two subdirectories, one for each end of a simulated network link.
The number n is the device number of the link, permitting multiple
links to be used on a single machine. Each directory contains files to control the associated connection, receive and send data, monitor the simulation parameters, and supply statistics. The data files for the two directories are cross–connected. Writes to one are divided into packets of at most a certain size, typically 32768 bytes, written to a flow–controlled output queue, transferred across the link, and put into an input queue where it is readable from the other data file.
Options are set by writing to the ctl file for the receiving end
of the link, and are reported in the same format by reading status.
The following options are supported.
|
SOURCE
/sys/src/9/port/devloopback.c |