SK_FILTER_RELEASE(9) Linux Networking SK_FILTER_RELEASE(9)NAME
sk_filter_release - release a socket filter
SYNOPSIS
void sk_filter_release(struct sk_filter * fp);
ARGUMENTS
fp
filter to remove
DESCRIPTION
Remove a filter from a socket and release its resources.
COPYRIGHT Kernel Hackers Manual 2.6. July 2010 SK_FILTER_RELEASE(9)
Check Out this Related Man Page
ACCEPT_FILTER(9) BSD Kernel Developer's Manual ACCEPT_FILTER(9)NAME
accept_filter, accept_filt_add, accept_filt_del, accept_filt_generic_mod_event, accept_filt_get -- filter incoming connections
SYNOPSIS
#include <sys/types.h>
#include <sys/module.h>
#include <sys/socket.h>
#define ACCEPT_FILTER_MOD
#include <sys/socketvar.h>
int
accept_filt_add(struct accept_filter *filt);
int
accept_filt_del(char *name);
int
accept_filt_generic_mod_event(module_t mod, int event, void *data);
struct accept_filter *
accept_filt_get(char *name);
DESCRIPTION
Accept filters allow an application to request that the kernel pre-process incoming connections. An accept filter is requested via the
setsockopt(2) system call, passing in an optname of SO_ACCEPTFILTER.
IMPLEMENTATION NOTES
A module that wants to be an accept filter must provide a struct accept_filter to the system:
struct accept_filter {
char accf_name[16];
void (*accf_callback)(struct socket *so, void *arg, int waitflag);
void * (*accf_create)(struct socket *so, char *arg);
void (*accf_destroy)(struct socket *so);
SLIST_ENTRY(accept_filter) accf_next; /* next on the list */
};
The module should register it with the function accept_filt_add(), passing a pointer to a struct accept_filter, allocated with malloc(9).
The fields of struct accept_filter are as follows:
accf_name Name of the filter; this is how it will be accessed from userland.
accf_callback The callback that the kernel will do once the connection is established. It is the same as a socket upcall and will be called
when the connection is established and whenever new data arrives on the socket, unless the callback modifies the socket's
flags.
accf_create Called whenever a setsockopt(2) installs the filter onto a listening socket.
accf_destroy Called whenever the user removes the accept filter on the socket.
The accept_filt_del() function passed the same string used in accept_filter.accf_name during registration with accept_filt_add(), the kernel
will then disallow and further userland use of the filter.
The accept_filt_get() function is used internally to locate which accept filter to use via the setsockopt(2) system call.
The accept_filt_generic_mod_event() function provides a simple way to avoid duplication of code for accept filters which do not use the argu-
ment field to load and unload themselves. This function can be used in the moduledata_t struct for the DECLARE_MODULE(9) macro.
SEE ALSO setsockopt(2), accf_data(9), accf_dns(9), accf_http(9), malloc(9)HISTORY
The accept filter mechanism was introduced in FreeBSD 4.0.
AUTHORS
This manual page was written by Alfred Perlstein, Sheldon Hearn and Jeroen Ruigrok van der Werven.
The accept filter concept was pioneered by David Filo at Yahoo! and refined to be a loadable module system by Alfred Perlstein.
BSD June 25, 2000 BSD
Hi all,
I want to create a new user and grant him ONLY transfer files access to a specific directory where he can only upload and read the files. He should be restricted to this activity only.
Regards (6 Replies)
Hi everyone,
I know the following questions are noobish questions but I am asking them because I am confused about the basics of history behind UNIX and LINUX.
Ok onto business, my questions are-:
Was/Is UNIX ever an open source operating system ?
If UNIX was... (21 Replies)
Hi,
Last 2 weeks I have searched many forums and i haven't found the answer for the question:
How to get all command output to Putty title?
Needed it for other programs to know when some jobs on a server is done and is it done right or wrong. Plink stdout and stdin wasn't working, i used many... (1 Reply)
anyone have any idea how do to this with auth_attr?
I suspect if I grant him
solaris.device.:RO::Device Allocation::help=DevAllocHeader.html
that will work but I'm unsure. Just looking for a second opinion. (10 Replies)
I am looking for a stable, reliable system to replace my current Windows systems in the home. These are simple systems that I purchased from the local Big Box store.
I have heard many good things about Unix and it's various children and it sounds like a good option to me. I have worked... (2 Replies)
We have a lot of scripts using cut as :
cut -c 0-8 --works for cut (GNU coreutils) 5.97, but does not work for cut (GNU coreutils) 8.4.
Gives error -
cut: fields and positions are numbered from 1
Try `cut --help' for more information.
The position needs to start with 1 for later... (6 Replies)
I've got a problem with a proxy configuration. We have an LDAP group that lists all users who are authorised to use the proxy to FTP (usually Filezilla) out to the world, and by implication those not in the group should be denied. My users are delighted that this has been enabled and those that... (9 Replies)
hi folks,
how to using tar with exclude directory and compress it using tar.Z
i only know how to exclude dir only with this command below:
tar -cvf /varios/restore/test.tar -X excludefile.txt /jfma/test1/
how to compress it using 1 command?
Thanx
Please use CODE tags as... (6 Replies)
Hello All,
I had recently learnt a bit of Docker(which provides containerization process).
Here are some of my learning points from it.
Let us start first with very basic question:
What is Docker:
Docker is a platform for sysadmins and developers to DEPLOY, DEVELOP and RUN applications ... (7 Replies)
What is the point of this? Whenever I close my shell it appends to the history file without adding this. I have never seen it overwrite my history file.
# When the shell exits, append to the history file instead of overwriting it
shopt -s histappend (3 Replies)
Hello for all,
I am testing the behavior of a 32 bit application running on Solaris 5.10 (SPARC), and realize it reaches 4GB of memory and then crashes.
It doesn't matter the amount of used memory as application is intended to perform many transactions; rather, what I want to achieve is to... (2 Replies)