Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ xnsioctl(3N) — GL1 W2.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sgboot(1M)

sgbounce(1M)

xcp(1C)

xlogin(1C)

xnsd(1M)

xx(1C)

utmp(3N)

xcmd(3N)

xconnect(3N)

xnsfile(3N)

xnslib(3N)

xnswrite(3N)

XNSIOCTL(3N)  —  Silicon Graphics

NAME

xnsioctl − ioctls for XNS and Ethernet

SYNOPSIS

ioctl (nfd, cmd, arg)
int nfd, cmd;
char *arg;

DESCRIPTION

Xnsioctl.h contains macro definitions for the ioctl routines in the Ethernet Controller device driver.  These routines control the XNS protocols and the Ethernet. 

The following ioctl commands control the Ethernet. 

If cmd = NXIOBOUNCE , then this process wants to receive sgbounce packets.  If another process had previously requested this, a SIGKILL is sent to its process group, and the current process replaces it. 

If cmd = NXIORAW , the raw Ethernet output is allowed. 

If cmd = NXPHYSADDR , the physical ethernet address of the Ethernet Controler is returned into the struct physnet located at address arg. 

If cmd = NXPUTSLOT , a multicast slot is set to the struct physaddr passed as a pointer in arg.  The slot number used is equal to the minor number of the network special file on which the ioctl is done.  NXGETSLOT does the inverse. 

If cmd = NXSETRCV , receipt of multicast packets is enabled on this network file descriptor, if arg > 0.  Otherwise, receipt is turned off.  If arg > 1, then DISCARD mode is also enabled.  In DISCARD mode you will not recieve multicast packets that you transmit. 

The following ioctl commands are general in nature.  They deal with the XNS - Unix interface. 

If cmd = NXIOTEST , the number of times the network special file is open is returned into the short located at address arg. 

If cmd = NXAVAIL , the minor device number of an available network special file is returned into the short located at address arg. 

If cmd = NXSETPGRP , the process group is forced to match that of the current process. 

The following ioctl commands control the sequence packet protocol (SPP) implementation. 

If cmd = NXIOFAST the typewriter output routine will be bypassed for this channel.  cmd = NXIOSLOW causes the inverse to occur. 

If cmd = NXSOCKET , then the receive socket number is set to the short located at address arg.  Returns ENXIO if a receive socket number is already set. 

If cmd = NXSOCKWAIT , then the driver waits for a connection on the socket set up with NXSOCKET. 

If cmd = NXCONNECT , an outgoing network connection is made, using the struct xns_setup located at arg. 

If cmd = NXWRITE , a network write is done, using the pointer to an struct xnsio passed in arg.  This includes an address, a count a data type, and control bits (see Xnsioctl.h ).  NXREAD does the same thing, but for network reads.  Perform a NXBLOCKIO first to allow NXREAD to work. 

If cmd = NXBLOCKIO , block I/O is enabled.  NXBLOCKOFF does the inverse. 

FILES

Xnsioctl.hdefines the ioctl codes used by the Ethernet controller device driver
Xns.hcontains network structure definitions for the XNS protocols

SEE ALSO

sgboot(1M), sgbounce(1M), xcp(1C), xlogin(1C), xnsd(1M), xx(1C), utmp(3N), xcmd(3N), xconnect(3N), xnsfile(3N), xnslib(3N), xnswrite(3N)

Version 2.3  —  July 04, 1985

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026