06.08.2013 Views

pSOSystem System Calls - Read

pSOSystem System Calls - Read

pSOSystem System Calls - Read

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

pNA+ <strong>System</strong> <strong>Calls</strong> ioctl<br />

};<br />

* transmission units */<br />

char *ifru_data; /* For private use */<br />

} ifr_ifru;<br />

#define ifr_addr ifr_ifru.ifru_addr /* Address */<br />

#define ifr_dstaddr ifr_ifru.ifru_dstaddr /* Other end of */<br />

/* p-to-p link */<br />

#define ifr_broadaddr ifr_ifru.ifru_broadaddr /*NI broadcast addr.*/<br />

#define ifr_mtu ifr_ifru.ifru_mtu /* Maximum number of<br />

* transmission units */<br />

#define ifr_data ifr_ifru.ifru_data /* NI private data */<br />

#define ifr_flags ifr_ifru.ifru_flags /* Flags */<br />

ifr_flags can contain one or more of the symbolic constants below (defined in<br />

pna.h), in the following syntax:<br />

IFF_BROADCAST | IFF_RAWMEM<br />

Symbolic Constant Description<br />

IFF_BROADCAST NI can broadcast.<br />

IFF_EXTLOOPBACK NI uses external loopback.<br />

IFF_INITDOWN Initialize an interface in the DOWN state. By default interfaces<br />

are installed in the UP state. This flag may only be<br />

specified when initially adding an interface. Note that this<br />

is not an attribute of the NI.<br />

IFF_MULTICAST NI supports multicast.<br />

IFF_NOARP NI does not have ARP.<br />

IFF_POINTTOPOINT NI is point-to-point driver.<br />

IFF_POLL pNA+ polls NI at regular intervals.<br />

IFF_RAWMEM NI passes packets as mblks.<br />

IFF_UNNUMBERED NI is an unnumbered link.<br />

IFF_UP NI is UP.<br />

Memory-Related Operations<br />

SIOCGMBSTAT Gets the statistics for mblks (memory blocks) configured<br />

in the system. A pointer to the mbstat structure is<br />

passed via the arg parameter of the ioctl() call. mbstat<br />

is defined as follows:<br />

<strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong> 4-25<br />

4

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!