VIEW-OS(1)
π¦ NAME π¦
mstack β networking stack selection π
bestie this is a page from the View-OS General Commands Manual, and it's literally your group chat for picking which network stack your processes get to vibe with β¨
πΈ SYNOPSIS πΈ
mstack [-hv] [-o protocol list] stack_mountpoint command
β¨ DESCRIPTION β¨
okay so picture this: in View-OS you can have multiple networking stacks available to processes at the same time. yes, all at once, no cap π
View-OS supports the msocket(2) system call. mstack defines the default stack (for each address family) that gets used when msocket refers to a NULL pathname for its stack. π«Ά
mstack also provides backward compatibility for all the programs still using the obsolete socket(2) system call. (obsolete bestie, we said what we said π)
The stack mountpoint identifies the stack. In ViewOS it is the mountpoint where the stack was mounted (by mount(2)(8)). In fact the call:
"socket(domain,type,protocol)"
is equivalent to:
"msocket(NULL,domain,type protocol)"
mstacks changes the default stack for the desired protocol families and executes the command (by execve(2)). π
π OPTIONS π
-hβ prints themstackcommand usage π-vβ sets the verbose mode on π₯-oβ defines the list of protocols. Without a-ooption,mstackredefines the default stack for all protocols families. The list of protocols may include the a comma separated sequence of the following items:all,unix(or simplyu),ipv4(4),ipv6(6),netlink(n),packet(p),bluetooth(b),irda(i),ip(which include all ip related protocolsipv4,ipv6,netlinkandpacket),#nwhere n is the number of protocol. Each item can be prefixed by+or-to specify whether the protocol/group of protocols must be added or removed from the set. π
π§ EXAMPLES π§
mstack /dev/net/lwip ip addrlists the address managed by the stack mounted on/dev/net/lwip. πexec mstack /dev/net/null bashdisables the standard stack in a new bash (which overcomes the current one). πmstack -o ip /dev/net/lwip bashstarts a new bash which uses the stack/dev/net/lwipforipv4andipv6but not for the other protocols. βmstack -o -unix /dev/net/lwip bashstarts a new bash which uses the stack/dev/net/lwipfor all protocols butAF_UNIX. πmstack -o +ip,-ipv6 /dev/net/lwip bashstarts a new bash which uses the stack/dev/net/lwipforipv4,netlink,packetbut notipv6. π¦
π SEE ALSO π
umview(1), kmview(1), msocket(3), umnetnative(9), umnetnull(9), umnetlwipv6(9), unix(7), ip(7), ipv6(7), netlink(7), packet(7).
π AUTHORS π
View-OS is a project of the Computer Science Department, University of Bologna. Project Leader: Renzo Davoli. π
<http://www.sourceforge.net/projects/view-os>
Howto's and further information can be found on the project wiki <wiki.virtualsquare.org>. π
β¨ and that's the whole page bestie, no notes, you ate π
VIEW-OS: a process with a view β April 23, 2008 π that's the version vibe and the date stamp, mwah, bye! π¦π
π¦ where this page comes from
- debian bookworm: umview 0.8.2-3 Β· GPL-2.0-only
- ubuntu jammy: umview 0.8.2-3 Β· GPL-2.0-only
- ubuntu noble: umview 0.8.2-3.1build2 Β· GPL-2.0-only
- Copyright (c) 2007 Renzo Davoli
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms