Adds an address family to the Address Family domain switch table.
#include <sys/types.h> #include <sys/errno.h> #include <sys/domain.h> int add_domain_af ( domain) struct domain *domain;
Item | Description |
---|---|
domain | Specifies the domain of the address family. |
The add_domain_af kernel service adds an address family domain to the Address Family domain switch table.
The add_domain_af kernel service can be called from either the process or interrupt environment.
Item | Description |
---|---|
0 | Indicates that the address family was successfully added. |
EEXIST | Indicates that the address family was already added. |
EINVAL | Indicates that the address family number to be added is out of range. |
To add an address family to the Address Family domain switch table, invoke the add_domain_af kernel service as follows:
add_domain_af(&inetdomain);
In this example, the family to be added is inetdomain.