mstack

Langue: en

Version: April 23, 2008 (debian - 07/07/09)

Section: 1 (Commandes utilisateur)

NAME

mstack - networking stack selection

SYNOPSIS

mstack [-u46npbihv] [-f num,num#] stack_mountpoint command
 

DESCRIPTION

In View-OS multiple networking stacks are available to processes at the same time. View-OS supports the msocket(2) system call. mstack defines the default stack (for each address family) that is used when msocket refers to a NULL pathname for its stack. mstack provides also a backward compatibility for all the programs using the obsolete socket(2) system call. 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)" 4
is equivalent to:
"msocket(NULL,domain,type protocol)" 4
mstacks changes the default stack for the desired protocol families and executes the command (by execve(2)).  

OPTIONS

-h
prints the mstack command usage
-v
sets the verbose mode on
-u
redefines the protocol stack for AF_UNIX unix(7)
-4
redefines the protocol stack for AF_INET, i.e. ipv4 ip(7)
-6
redefines the protocol stack for AF_INET6, i.e. ipv6 ipv6(7)
-n
redefines the protocol stack for AF_NETLINK netlink(7)
-p
redefines the protocol stack for AF_PACKET packet(7)
-b
redefines the protocol stack for AF_BLUETOOTH
-i
redefines the protocol stack for AF_IRDA
-f num,num...
redefines the protocol stack for the listed protocols (list of numeric tags).

EXAMPLES

mstack /dev/net/lwip ip addr

lists the address managed by the stack mounted on /dev/net/lwip.
exec mstack /dev/net/null bash

disables the standard stack in a new bash (which overcomes the current one).

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>.