SK_CHK_FILTER

Section: (9)
Updated: 09 October 2005
Index Return to Main Contents

 

NAME

sk_chk_filter - verify socket filter code  

SYNOPSIS

"SYNOPSIS"

int sk_chk_filter (struct sock_filter * filter, int flen);  

ARGUMENTS

filter
filter to verify
flen
length of filter
 

DESCRIPTION

Check the user's filter code. If we let some ugly filter code slip through kaboom! The filter must contain no references or jumps that are out of range, no illegal instructions and no backward jumps. It must end with a RET instruction

Returns 0 if the rule set is legal or a negative errno code if not.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 00:02:48 GMT, October 09, 2005