acnip.h

Miscellaneous routines and macros for IPv4 – and soon IPv6 – protocols

Summary
acnip.hMiscellaneous routines and macros for IPv4 – and soon IPv6 – protocols
Types
port_tMay already be defined in yout programming enironment.
ip4addr_t and groupaddr_tIPv4 address, group and mask variables are usually kept and stored in network byte order.
Macros
multicast testsIn both cases addr is in network order.
Converting dotted decimal style literals to host or networkorder IPv4 addresses.
IPv6 specific macros and typesNot yet complete

Types

port_t

May already be defined in yout programming enironment.  Otherwise defined here.

Note ports are part of UDP or TCP, not IPv4 or IPv6

ip4addr_t and groupaddr_t

IPv4 address, group and mask variables are usually kept and stored in network byte order.

Only defined if CF_NET_IPV4 is set

Macros

multicast tests

In both cases addr is in network order.

Only defined if CF_NET_IPV4 is set

is_multicast(addr)test whether addr is a multicast group address
is_multicastp(addrp)test whether the address pointed to by addrp is multicast

Converting dotted decimal style literals to host or network

order IPv4 addresses.

e.g.  DD2HIP(192,168,1,222)

DD2HIPConvert to host order
DD2NICOnvert to network order

IPv6 specific macros and types

Not yet complete

IP version 4
Close