add_netopt Macro

Purpose

Adds a network option structure to the list of network options.

Syntax

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

add_netopt ( option_name_symbol, print_format)
option_name_symbol;
char *print_format;

Parameters

option_name_symbol Specifies the symbol name used to construct the netopt structure and default names.
print_format Specifies the string representing the print format for the network option.

Description

The add_netopt macro adds a network option to the linked list of network options. The no command can then be used to show or alter the variable's value.

The add_netopt macro has no return values.

Execution Environment

The add_netopt macro can be called from either the process or interrupt environment.

Implementation Specifics

The add_netopt macro is part of Base Operating System (BOS) Runtime.

Related Information

The no command.

The del_netopt macro.

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