[ Previous | Next | Contents | Home | Search ]
AIX Version 4.3 Kernel and Subsystems Technical Reference, Volume 1

rtfree Kernel Service

Purpose

Frees the routing table entry.

Syntax

#include <sys/types.h>
#include <sys/errno.h>
#include <net/route.h>
int rtfree (rt)
register struct rtentry *rt;

Parameter

rt Specifies the routing table entry.

Description

The rtfree kernel service frees the entry it is passed from the routing table. If the route does not exist, the panic service is called. Otherwise, the rtfree service frees the mbuf structure that contains the route and decrements the routing reference counters.

Execution Environment

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

Return Values

The rtfree kernel service has no return values.

Example

To free a routing table entry, invoke the rtfree kernel service as follows:

rtfree(rt);

Implementation Specifics

The rtfree kernel service is part of Base Operating System (BOS) Runtime.

Related Information

The panic kernel service.

Network Kernel Services in AIX Kernel Extensions and Device Support Programming Concepts.


[ Previous | Next | Contents | Home | Search ]