sys/security/audit/audit_bsm_token.c
/*
 * token ID                1 byte
 * port IP address         2 bytes
 */
token ID                1 byte
port IP address         2 bytes
token ID 1 byte port IP address 2 bytes
token_t *
au_to_iport(u_int16_t iport)
{
	token_t *t;
	u_char *dptr = NULL;
	GET_TOKEN_AREA(t, dptr, sizeof(u_char) + sizeof(u_int16_t));
	ADD_U_CHAR(dptr, AUT_IPORT);
	ADD_U_INT16(dptr, iport);
	return (t);
}
token_t * au_to_iport ( u_int16_t iport ) { token_t * t ; u_char * dptr = NULL ; GET_TOKEN_AREA ( t , dptr , sizeof ( u_char ) + sizeof ( u_int16_t ) ) ; ADD_U_CHAR ( dptr , AUT_IPORT ) ; ADD_U_INT16 ( dptr , iport ) ; return ( t ) ; }
token ID                1 byte
 port IP address         2 bytes
token ID 1 byte port IP address 2 bytes