SRT(4) | Device Drivers Manual | SRT(4) |
srt
—
source-routing network interface
pseudo-device srt
The srt
interface is a software interface
that implements source-address-based routing. Packets are directed to the
srt
interface using normal routing decision process.
Packets queued for delivery are then processed according to the rules
established for the interface using the
srtconfig(1) utility.
To use an srt
device, the
administrator must first create the interface. This can be done by using the
ifconfig(8)
create
command. An
open(2) call on
/dev/srtN
will also create a network interface with a unit number the same as the
minor device number of that device if the interface doesn't exist yet.
To be useful, the srt
interface
needs to be configured using
srtconfig(1) which uses the
associated srt
character device
/dev/srt#.
The network interfaces should be named
srt0,
srt1, etc. The
srt
interface supports only the
open(2),
close(2), and
ioctl(2) operations; other
operations such as read(2) and
write(2) are not supported.
All standard network interface
ioctl(2) calls are supported by
the srt
interface. In addition, the following
ioctl(2) calls (defined in
⟨net/if_srt.h⟩) are supported on the
srt
character device:
SRT_GETNRT
SRT_GETRT
SRT_SETRT
SRT_DELRT
SRT_SFLAGS
SSF_MTULOCK
SRT_GFLAGS
SRT_SGFLAGS
SRT_SFLAGS
. The original flags are returned in the
integer pointed to by the argument.SRT_DEBUG
The srt
device was added in
NetBSD 5.0 by der Mouse
<mouse@NetBSD.org>.
This manual page was prepared by Paul Goyette
<pgoyette@NetBSD.org>.
March 27, 2019 | NetBSD 10.99 |