sys/security/audit/audit_bsm_token.c
/*
 * token ID                1 byte
 * ip header		   20 bytes
 */
token ID                1 byte
ip header               20 bytes
token ID 1 byte ip header 20 bytes
token_t *
au_to_ip(struct ip *ip)
{
	token_t *t;
	u_char *dptr = NULL;
	GET_TOKEN_AREA(t, dptr, sizeof(u_char) + sizeof(struct ip));
	ADD_U_CHAR(dptr, AUT_IP);
	ADD_MEM(dptr, ip, sizeof(struct ip));
	return (t);
}
token_t * au_to_ip ( struct ip * ip ) { token_t * t ; u_char * dptr = NULL ; GET_TOKEN_AREA ( t , dptr , sizeof ( u_char ) + sizeof ( struct ip ) ) ; ADD_U_CHAR ( dptr , AUT_IP ) ; ADD_MEM ( dptr , ip , sizeof ( struct ip ) ) ; return ( t ) ; }
token ID                1 byte
 ip header               20 bytes
token ID 1 byte ip header 20 bytes
/*
	 * XXXRW: Any byte order work needed on the IP header before writing?
	 */