next up previous contents index
Next: 11.2.13 node_sid: Obtains the Up: 11.2 oskit_security: Security Server Previous: 11.2.11 port_sid: Obtain the

11.2.12 netif_sid: Obtains SIDs for a network interface

 

SYNOPSIS

#include <oskit/flask/security.h>

OSKIT_COMDECL oskit_security_netif_sid(oskit_security_t *security, char *name, [out] oskit_security_id_t *if_sid, [out] oskit_security_id_t *msg_sid);

DESCRIPTION

The oskit_security_netif_sid function returns SIDs to use for a network interface. The value for the name parameter is typically the driver name followed by the unit number, e.g. the name eth0 would be used for the first Ethernet interface. The if_sid parameter is set to the SID to use for the interface, and the msg_sid parameter is set to the SID to use for any unlabeled messages received on the interface.

PARAMETERS

security
The security server.
name
The name of the interface.
if_sid
The interface SID.
msg_sid
The default message SID.

RETURNS

Returns 0 on success, or an error code specified in <oskit/error.h>, on error.



Utah Flux Research Group