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

Technical Reference: Kernel and Subsystems, 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);

Related Information

The panic 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 ]