pfctlinput Kernel Service

Purpose

Invokes the ctlinput function for each configured protocol.

Syntax

#include <sys/types.h>
#include <sys/errno.h>
#include <sys/domain.h>

void pfctlinput ( cmd,  sa)
int cmd;
struct  sockaddr *sa;

Parameters

Item Description
cmd Specifies the command to pass on to protocols.
sa Indicates the address of a sockaddr structure that is passed to the protocols.

Description

The pfctlinput kernel service searches through the protocol switch table of each configured domain and invokes the protocol ctlinput function if defined. Both the cmd and sa parameters are passed as parameters to the protocol function.

Execution Environment

The pfctlinput kernel service can be called from either the process or interrupt environment.

Return Values

The pfctlinput service has no return values.