FreeBSD/sys/netinet/sctp_auth.c
/*
 * delete a chunk from the required chunks list
 */
delete a chunk from the required chunks list
delete a chunk from the required chunks list
int
sctp_auth_delete_chunk(uint8_t chunk, sctp_auth_chklist_t * list)
{
	if (list == NULL)
		return (-1);
	if (list->chunks[chunk] == 1) {
		list->chunks[chunk] = 0;
		list->num_chunks--;
		SCTPDBG(SCTP_DEBUG_AUTH1,
		    "SCTP: deleted chunk %u (0x%02x) from Auth list\n",
		    chunk, chunk);
	}
	return (0);
}
int sctp_auth_delete_chunk ( uint8_t chunk , sctp_auth_chklist_t * list ) { if ( list == NULL ) return ( -1 ) ; if ( list -> chunks [ chunk ] == 1 ) { list -> chunks [ chunk ] = 0 ; list -> num_chunks -- ; SCTPDBG ( SCTP_DEBUG_AUTH1 , " \n " , chunk , chunk ) ; } return ( 0 ) ; }
delete a chunk from the required chunks list
delete a chunk from the required chunks list