Adds an IPv4 address to the list of IPv4 addresses of a NIC on the node’s network.
DWORD lncNicAddr4Add(
LPCTSTR szNode,
DWORD dwNic,
LPCTSTR szAddr,
LPCTSTR szMask);
Parameters
szNode
- (in) the name of the local node.
dwNic
- (in) the number of the NIC.
szAddr
- (in) the IPv4 address in the notation “a.b.c.d” where a, b, c, d are values between 0 and 255
szMask
- (in) the net mask in the same notation as the address.
Return values
Zero for success or an error code on failure.
Errors
LNCE_PAR_NFND
- the parameter number is invalid
LNCE_BADVAL
- the format of szAddr or szMask is incorrect.
LNCE_EXIST
- the address already exists for this NIC
LNCE_READERR
- there is a problem reading the configuration file
LNCE_SECTION_NFND
- there is no NIC with the number dwNic.
Requirements
Versions |
Defined in |
Include |
Link to |
INtime 5.2 |
intime/nt/include/lnc.h |
lnc.h |
lnc.lib |
See Also