.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "SK_CHK_FILTER" "9" "09 October 2005" "" "" .SH NAME sk_chk_filter \- verify socket filter code .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int sk_chk_filter (struct sock_filter * \fIfilter\fB, int \fIflen\fB); \fR .SH "ARGUMENTS" .TP \fB\fIfilter\fB\fR filter to verify .TP \fB\fIflen\fB\fR length of filter .SH "DESCRIPTION" .PP 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 .PP Returns 0 if the rule set is legal or a negative errno code if not.