SRT(4)
π SRT(4) β source-routing network interface π
okay bestie, welcome to the Kernel Interfaces Manual page for srt β yes, the manual name is folded right up in here, weβre doing this cute and complete. β¨
β¨ NAME β¨
srt β source-routing network interface. name drop complete, no cap. π
π¦ SYNOPSIS π¦
pseudo-device srt
π DESCRIPTION π
okay so the srt interface is a software interface that implements source-address-based routing. Packets get directed to the srt interface using the normal routing decision process. Then, packets queued for delivery are processed according to the rules established for the interface using the srtconfig(1) utility. periodt. π«Ά
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. iconic behavior, honestly. β¨
To be useful, the srt interface needs to be configured using srtconfig(1) which uses the associated srt character device /dev/srt#. iykyk. π
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.
π¨ bestie, heads up:read(2)andwrite(2)are literally not supported here. thesrtinterface only doesopen(2),close(2), andioctl(2). do not come for it with read/write energy. π
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:
π the extra ioctl(2) calls π
SRT_GETNRTβ The argument is a pointer to an integer, in which the number of entries in the device's routing table is returned. lowkey just βhow many routes are in there?β vibes. π¦SRT_GETRTβ The argument is the address of astruct srt_rt. The routing table entry specified by theβinxβmember is returned.SRT_SETRTβ The argument is the address of astruct srt_rt. The routing entry is placed into the device's routing table at the index specified by theβinxβmember. slay, itβs routed into place. πSRT_DELRTβ The argument is the address of astruct srt_rt. The routing entry specified by theβinxβmember is deleted from the device's routing table. (Any entries in the device's routing table with higher index values are renumbered.) the way that renumbering happens is giving cleanup main character energy. π§Ήβ¨SRT_SFLAGSβ The argument is a pointer to an integer containing any of the following flags to be set:SSF_MTULOCKβ If set, do not automatically update the interface's MTU.
SRT_GFLAGSβ The argument is a pointer to an integer in which the current flags are returned. vibe check: flags acquired. πSRT_SGFLAGSβ This call updates the flags in the same manner asSRT_SFLAGS. The original flags are returned in the integer pointed to by the argument.SRT_DEBUGβ Currently this is a no-op. not me expecting debug output and getting literally nothing. π
π SEE ALSO π
srtconfig(1), inet(4), intro(4) β go read the friends, fr fr. ππ
πΈ HISTORY πΈ
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>. iconic contributions, honestly. π
source/version: Debian Β· date: March 27, 2019 Β· manual: SRT(4) β bye bestie, mwah ππ
π¦ where this page comes from
- nixpkgs unstable: netbsd-source 11.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms