DISC(4)
π DISC(4) π
Kernel Interfaces Manual β¨
okay bestie, pull up a chair, we're talking about disc β the software discard network interface π«Ά
πΈ NAME πΈ
disc β the software discard network interface, aka the "throw it in the void" queen π
β¨ SYNOPSIS β¨
device disc
that's it. that's the whole vibe. π
π¦ DESCRIPTION π¦
so like, the disc interface is a software discard mechanism β and honestly? iconic. it's built for performance analysis and/or software testing. it's the friend who just nods and lets you talk, no notes, no drama π
and here's the thing, no cap: just like every other network interface, the discard interface must have network addresses assigned for each address family it's gonna be used with. yes, each one. every family gets its own addy, periodt π
those addresses can be set or changed with the SIOCSIFADDR ioctl(2) β that's the little syscall you hit up when you need to change an address, iykyk π₯
okay so now the fun part π β every single disc interface gets created at runtime using interface cloning. it's giving very "build-a-bear but for network interfaces". and the easiest ways to do it?
- the
ifconfig(8)createcommand β quick, cute, does the job β - or the
cloned_interfacesvariable inrc.conf(5)β for when you want it to happen automatically at boot, main character energy π
π SEE ALSO π
π§ HISTORY π§
so the disc device lowkey appears to have been derived from the lo(4) device around the time of 4.4BSD β so it's old money, it's legacy, it's heritage π
and this very manpage was adapted from lo(4) and first appeared in FreeBSD 5.0. glow-up of the century fr fr β¨
π«Ά reminder bestie: this page came to you from Debian, dated May 25, 2002. oldie but a goodie, mwah π
π¦ where this page comes from
- debian bookworm: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- debian trixie: freebsd-manpages 12.2-2 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu jammy: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu noble: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu questing: freebsd-manpages 12.2-2
- ubuntu resolute: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu stonking: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- Copyright (c) 1983, 1991, 1993 The Regents of the University of California. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms