Adds a network option structure to the list of network options.
#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;
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. |
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.