.\" 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_ATTACH_FILTER" "9" "09 October 2005" "" ""
.SH NAME
sk_attach_filter \- attach a socket filter
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int sk_attach_filter (struct sock_fprog * \fIfprog\fB, struct sock * \fIsk\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIfprog\fB\fR
the filter program
.TP
\fB\fIsk\fB\fR
the socket to use
.SH "DESCRIPTION"
.PP
Attach the user's filter code. We first run some sanity checks on
it to make sure it does not explode on us later. If an error
occurs or there is insufficient memory for the filter a negative
errno code is returned. On success the return is zero.