SK_ATTACH_FILTER

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

 

NAME

sk_attach_filter - attach a socket filter  

SYNOPSIS

"SYNOPSIS"

int sk_attach_filter (struct sock_fprog * fprog, struct sock * sk);  

ARGUMENTS

fprog
the filter program
sk
the socket to use
 

DESCRIPTION

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.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

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