Query: sk_attach_filter
OS: suse
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
SK_ATTACH_FILTER(9) Linux Networking SK_ATTACH_FILTER(9)NAMEsk_attach_filter - attach a socket filterSYNOPSISint sk_attach_filter(struct sock_fprog * fprog, struct sock * sk);ARGUMENTSfprog the filter program sk the socket to useDESCRIPTIONAttach 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.COPYRIGHTKernel Hackers Manual 2.6. July 2010 SK_ATTACH_FILTER(9)