[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Kernel and Subsystems, Volume 1

looutput Kernel Service

Purpose

Sends data through a software loopback interface.

Syntax

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


int looutput ( ifp, m0, dst)
struct ifnet *ifp;
struct mbuf *m0;
struct sockaddr *dst;

Parameters

ifp Specifies the address of an ifnet structure describing the software loopback interface.
m0 Specifies an mbuf chain containing output data.
dst Specifies the address of a sockaddr structure that specifies the destination for the data.

Description

The looutput kernel service sends data through a software loopback interface. The data in the m0 parameter is passed to the input handler of the protocol specified by the dst parameter.

Execution Environment

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

Return Values

0 Indicates that the data was successfully sent.
ENOBUFS Indicates that resource allocation failed.
EAFNOSUPPORT Indicates that the address family specified by the dst parameter is not supported.

Related Information

The loifp kernel service.

Network Kernel Services in AIX 5L Version 5.2 Kernel Extensions and Device Support Programming Concepts.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]