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.

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

};<br />

* IP address for the route. */<br />

unsigned short rt_flags; /* Specifies the type of route*/<br />

unsigned short reserved; /* Reserved */<br />

unsigned long rt_netmask; /* netmask of route */<br />

long rt_ifno; /* interface number */<br />

unsigned long reserved2[2]; /* Reserved */<br />

The rt_flags element can contain one or more of the symbolic constants below<br />

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

RTF_MASK | RTF_GATEWAY<br />

Symbolic Constant Description<br />

RTF_HOST Host entry (net otherwise).<br />

RTF_GATEWAY Destination is a gateway.<br />

RTF_UP Route is usable.<br />

RTF_DYNAMIC Route is added dynamically using the ICMP Redirect message.<br />

RTF_MODIFIED Route is modified using the ICMP Redirect message.<br />

RTF_INTF Route includes intf num.<br />

RTF_MASK Route includes subnet mask.<br />

Network Node ID Operations<br />

The following operations are available for accessing the pNA+ Network Node ID. This<br />

is also known as the Router ID. The Network Node ID may be equal to any one of the<br />

IP addresses assigned to the node. To set or get the Network Node ID, arg must<br />

point to an in_addr structure containing the IP address.<br />

Operation Description<br />

SIOCSNNODEID Sets the Network Node ID.<br />

SIOCGNNODEID Gets the Network Node ID.<br />

Setting the IP TTL<br />

Each IP packet sent by pNA+ (TCP/UDP or Raw IP) is assigned a TTL value. pNA+<br />

assigns a default TTL value of 64 for outgoing UDP and TCP packets as per RFC<br />

1700. Note that this system wide default value affects all sockets. The system wide<br />

4-28 <strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong>

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

Saved successfully!

Ooh no, something went wrong!