*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> pfopen (3)              



NAME    [Toc]    [Back]

       pfopen - Open a packet filter file

SYNOPSIS    [Toc]    [Back]

       int pfopen(
               char *ifname,
               int flags );

LIBRARY    [Toc]    [Back]

       Standard C Library (libc.so, libc.a)

PARAMETERS    [Toc]    [Back]

       Points  to a null-terminated string containing the name of
       the interface for which the  application  is  opening  the
       packet  filter.  This  name  may  be the name of an actual
       interface on the system (for example, ln0) or it may be  a
       pseudo-interface name of the form pfn, used to specify the
       nth interface attached to the system.   For  example,  pf0
       specifies  the  first  such interface.  If ifname is NULL,
       the default interface (pf0) is used.  Has the same meaning
       as  the corresponding argument to the open(2) system call.

DESCRIPTION    [Toc]    [Back]

       The  packet  filter  (see  packetfilter(7))  provides  raw
       access  to Ethernets and similar network data link layers.
       The pfopen() function is used to open a packet filter file
       descriptor.  The  function hides various details about the
       way packet filter files are opened and named.

       The file descriptor  returned  by  pfopen()  is  otherwise
       identical to one returned by open(2).

ERRORS    [Toc]    [Back]

       The  pfopen()  function  returns a negative integer if the
       file could not be opened. This may be because of  resource
       limitations,  or  because the specified interface does not

SEE ALSO    [Toc]    [Back]

       Functions: open(2)

       Files: bpf(7), packetfilter(7)

[ Back ]
 Similar pages
Name OS Title
pf.conf OpenBSD packet filter configuration file
PPP.FILTER HP-UX PPP packet filter specification file format
ppp.Filter HP-UX PPP packet filter specification file format
ppp.filter HP-UX PPP packet filter specification file format
ipfstat FreeBSD reports on packet filter statistics and filter list
pf OpenBSD packet filter
pfil FreeBSD packet filter interface
pfil_hook_get NetBSD packet filter interface
pfil NetBSD packet filter interface
pfil_add_hook NetBSD packet filter interface
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service