Go to the source code of this file.
|
| #define | _NETSIM_IP_LEN 50 |
| |
| #define | _NETSIM_BIN_IP_LEN 130 |
| |
| #define | MAX_TTL 255 |
| |
| #define | IP_COMPARE6(ip1, ip2) |
| |
| #define | IP_COMPARE4(ip1, ip2) (ip1->int_ip[0]==ip2->int_ip[0]?0:1) |
| |
| #define | IP_COMPARE(ip1, ip2) |
| |
| #define | IP_TO_STR(ip, ipstr) ((ip)?(strcpy((ipstr),((ip)->str_ip))):strcpy(ipstr,"0.0.0.0")) |
| |
| #define | STR_TO_IP4(ipstr) STR_TO_IP(ipstr,4) |
| |
| #define | STR_TO_IP6(ipstr) STR_TO_IP(ipstr,6) |
| |
| #define | IP_IS_IN_SAME_NETWORK_IPV4(ip1, ip2, subnet) IP_IS_IN_SAME_NETWORK(ip1,ip2,subnet,0) |
| |
| #define | IP_IS_IN_SAME_NETWORK_IPV6(ip1, ip2, prefix) IP_IS_IN_SAME_NETWORK(ip1,ip2,NULL,prefix) |
| |
| #define | IP_NETWORK_ADDRESS_IPV4(ip, subnet) IP_NETWORK_ADDRESS(ip,subnet,0) |
| |
| #define | IP_NETWORK_ADDRESS_IPV6(ip, prefix) IP_NETWORK_ADDRESS(ip,NULL,prefix) |
| |
|
| NETSIM_IPAddress | STR_TO_IP (char *ipStr, int type) |
| |
| NETSIM_IPAddress | IP_COPY (NETSIM_IPAddress ip) |
| |
| void | IP_FREE (NETSIM_IPAddress ip) |
| |
| NETSIM_IPAddress | IP_COPY_FORCE (NETSIM_IPAddress ip) |
| |
| void | IP_FREE_FORCE (NETSIM_IPAddress ip) |
| |
| void | IP_TO_BINARY (NETSIM_IPAddress ip, char *binary) |
| |
| unsigned int | IP_ADD_TO_LIST (NETSIM_IPAddress **pipList, unsigned int *count, const NETSIM_IPAddress ip) |
| |
| unsigned int | IP_REMOVE_FROM_LIST (NETSIM_IPAddress *pipList, unsigned int *count, const NETSIM_IPAddress ip) |
| |
| int | IP_CHECK_IN_LIST (const NETSIM_IPAddress *ipList, unsigned int count, const NETSIM_IPAddress ip) |
| |
| int | IP_IS_IN_SAME_NETWORK (NETSIM_IPAddress ip1, NETSIM_IPAddress ip2, NETSIM_IPAddress subnet, unsigned int prefix_len) |
| |
| NETSIM_IPAddress | IP_NETWORK_ADDRESS (NETSIM_IPAddress ip, NETSIM_IPAddress subnet, unsigned int prefix_len) |
| |
| NETSIM_IPAddress | GET_BROADCAST_IP (int type) |
| |
| int | IP_FREE_ALL () |
| |
| int | IP_VALIDATE_ALL_IP () |
| |
| int | STR_GET_IP_TYPE (char *ip) |
| |
| bool | isBroadcastIP (NETSIM_IPAddress ip) |
| |
| bool | isMulticastIP (NETSIM_IPAddress ip) |
| |
| bool | isValidIPAddress (char *ip) |
| |
| int | IP_find_match_length (NETSIM_IPAddress ip1, NETSIM_IPAddress ip2) |
| |
◆ _NETSIM_BIN_IP_LEN
| #define _NETSIM_BIN_IP_LEN 130 |
◆ _NETSIM_IP_LEN
| #define _NETSIM_IP_LEN 50 |
◆ IP_COMPARE
| #define IP_COMPARE |
( |
|
ip1, |
|
|
|
ip2 |
|
) |
| |
Value: ((ip1)->type==(ip2)->type \
:1)
#define IP_COMPARE6(ip1, ip2)
#define IP_COMPARE4(ip1, ip2)
Definition at line 67 of file IP_Addressing.h.
◆ IP_COMPARE4
| #define IP_COMPARE4 |
( |
|
ip1, |
|
|
|
ip2 |
|
) |
| (ip1->int_ip[0]==ip2->int_ip[0]?0:1) |
◆ IP_COMPARE6
| #define IP_COMPARE6 |
( |
|
ip1, |
|
|
|
ip2 |
|
) |
| |
Value: (ip1->int_ip[0]==ip2->int_ip[0] \
?(ip1->int_ip[1]==ip2->int_ip[1] \
?(ip1->int_ip[2]==ip2->int_ip[2] \
?(ip1->int_ip[3]==ip2->int_ip[3]?0:1) :1) :1) :1)
Definition at line 60 of file IP_Addressing.h.
◆ IP_IS_IN_SAME_NETWORK_IPV4
◆ IP_IS_IN_SAME_NETWORK_IPV6
◆ IP_NETWORK_ADDRESS_IPV4
◆ IP_NETWORK_ADDRESS_IPV6
◆ IP_TO_STR
| #define IP_TO_STR |
( |
|
ip, |
|
|
|
ipstr |
|
) |
| ((ip)?(strcpy((ipstr),((ip)->str_ip))):strcpy(ipstr,"0.0.0.0")) |
◆ MAX_TTL
◆ STR_TO_IP4
| #define STR_TO_IP4 |
( |
|
ipstr | ) |
STR_TO_IP(ipstr,4) |
◆ STR_TO_IP6
| #define STR_TO_IP6 |
( |
|
ipstr | ) |
STR_TO_IP(ipstr,6) |
◆ NETSIM_IPAddress
◆ GET_BROADCAST_IP()
◆ IP_ADD_TO_LIST()
◆ IP_CHECK_IN_LIST()
◆ IP_COPY()
◆ IP_COPY_FORCE()
◆ IP_find_match_length()
◆ IP_FREE()
◆ IP_FREE_ALL()
◆ IP_FREE_FORCE()
◆ IP_IS_IN_SAME_NETWORK()
◆ IP_NETWORK_ADDRESS()
◆ IP_REMOVE_FROM_LIST()
◆ IP_TO_BINARY()
◆ IP_VALIDATE_ALL_IP()
| int IP_VALIDATE_ALL_IP |
( |
| ) |
|
Very costly function. Use only for debugging
◆ isBroadcastIP()
◆ isMulticastIP()
◆ isValidIPAddress()
| bool isValidIPAddress |
( |
char * |
ip | ) |
|
◆ STR_GET_IP_TYPE()
| int STR_GET_IP_TYPE |
( |
char * |
ip | ) |
|
◆ STR_TO_IP()