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> setsockopt<br />

IP_DROP_MEMBERSHIP_INTF Similar to IP_DROP_MEMBERSHIP above. The<br />

optval is a pointer to the structure<br />

ip_mreq_intf (defined in ). The only<br />

difference is that the interface is defined using<br />

the interface number. If the interface number is<br />

specified as -1 then pNA+ will select the interface<br />

based upon the routing table. This option is useful<br />

for unnumbered links because the IP address<br />

of the interface is not enough to identify the interface.<br />

The structure below is defined in and<br />

used with the IP_DROP_MEMBERSHIP_INTF<br />

option.<br />

struct ip_mreq_intf {<br />

struct in_addr imrif_mcastaddr;<br />

/* IP multicast address of group */<br />

long imrif_ifno;<br />

/* local interface number */<br />

};<br />

IP_HDRINCL Specifies that the IP header will be included in the<br />

output packets. The following fields will be set by<br />

pNA+ if they are set to 0 in the included IP<br />

header: IP identification number and IP source<br />

address. The fragmentation offset and checksum<br />

fields are always computed by pNA+. The rest of<br />

the IP header fields must be set appropriately.<br />

IP_MULTICAST_IF Specifies the outgoing interface for multicast<br />

packets. optval is a pointer to struct in_addr.<br />

If set to INADDR_ANY then the routing table will<br />

be used to select an appropriate interface.<br />

IP_MULTICAST_INTF Specifies the outgoing interface for multicast<br />

packets. The outgoing interface is defined by its<br />

interface number. The optval is a pointer to a<br />

long. If set to -1 then the routing table will be<br />

used to select an appropriate interface. This option<br />

is useful for unnumbered links because the<br />

IP address of the interface is not enough to identify<br />

the interface.<br />

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

4

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

Saved successfully!

Ooh no, something went wrong!