#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);
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.
- security
- The security server.
- name
- The name of the interface.
- if_sid
- The interface SID.
- msg_sid
- The default message SID.
Returns 0 on success, or an error code specified in <oskit/error.h>, on error.