raw_input Kernel Service

Purpose

Builds a raw_header structure for a packet and sends both to the raw protocol handler.

Syntax

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

void raw_input (m0, proto, src, dst)
struct  mbuf * m0;
struct  sockproto * proto;
struct  sockaddr * src;
struct  sockaddr * dst;
  

Parameters

Item Description
m0 Specifies the address of an mbuf structure containing input data.
proto Specifies the protocol definition of data.
src Identifies the sockaddr structure indicating where data is from.
dst Identifies the sockaddr structure indicating the destination of the data.

Description

The raw_input kernel service accepts an input packet, builds a raw_header structure (as defined in the /usr/include/net/raw_cb.h file), and passes both on to the raw protocol input handler.

Execution Environment

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

Return Values

The raw_input service has no return values.