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

Item Description
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.