#include <unistd.h>#include <sys/time.h>#include <ctype.h>#include <dlfcn.h>#include <io.h>#include <arpa/inet.h>#include <stdio.h>#include "defs.h"#include "common/string.h"#include "os_time.h"
Go to the source code of this file.
Defines | |
| #define | NS_INADDRSZ 4 |
| #define | NS_IN6ADDRSZ 16 |
| #define | NS_INT16SZ 2 |
| #define | CHUNK_SIZE 512 |
Functions | |
| void | srandom (unsigned int Seed) |
| unsigned int | random (void) |
| int | getpid (void) |
| char * | win32_strerror (unsigned int ErrNo) |
| void * | dlopen (const char *Name, int Flags __attribute__((unused))) |
| int | dlclose (void *Handle) |
| void * | dlsym (void *Handle, const char *Name) |
| char * | dlerror (void) |
| static int | inet_pton4 (const char *src, unsigned char *dst) |
| static int | inet_pton6 (const char *src, unsigned char *dst) |
| int | inet_pton (int af, const char *src, void *dst) |
| static char * | inet_ntop4 (const unsigned char *src, char *dst, int size) |
| static char * | inet_ntop6 (const unsigned char *src, char *dst, int size) |
| char * | inet_ntop (int af, const void *src, char *dst, int size) |
| int | isatty (int fd) |
| int | write (int fd, const void *buf, unsigned int count) |
Variables | |
| static unsigned int | RandState |
| #define NS_IN6ADDRSZ 16 |
Definition at line 155 of file compat.c.
Referenced by inet_ntop6(), and inet_pton6().
| #define NS_INADDRSZ 4 |
Definition at line 154 of file compat.c.
Referenced by inet_pton4(), and inet_pton6().
| #define NS_INT16SZ 2 |
Definition at line 156 of file compat.c.
Referenced by inet_ntop6(), and inet_pton6().
| int dlclose | ( | void * | Handle | ) |
Definition at line 129 of file compat.c.
Referenced by olsr_internal_unload_plugin().
| char* dlerror | ( | void | ) |
Definition at line 149 of file compat.c.
References win32_strerror().
Referenced by olsr_init_plugin(), and olsr_load_legacy_plugin().

| void* dlopen | ( | const char * | Name, | |
| int Flags | __attribute__(unused) | |||
| ) |
Definition at line 116 of file compat.c.
Referenced by olsr_init_plugin().
| void* dlsym | ( | void * | Handle, | |
| const char * | Name | |||
| ) |
Definition at line 136 of file compat.c.
Referenced by olsr_load_legacy_plugin().
| char* inet_ntop | ( | int | af, | |
| const void * | src, | |||
| char * | dst, | |||
| int | size | |||
| ) |
Definition at line 416 of file compat.c.
References AF_INET6, inet_ntop4(), and inet_ntop6().
Referenced by ip4_to_string(), ip6_to_string(), ip_prefix_to_string(), ip_to_string(), netaddr_socket_to_string(), netaddr_to_prefixstring(), ObampSignalling(), olsr_sockaddr_to_string(), olsr_write_cnf_buf(), os_getsocket4(), os_ip4_tunnel(), os_ip6_tunnel(), os_recvfrom(), set_plugin_ipaddress(), sockaddr4_to_string(), and sockaddr6_to_string().

| static char* inet_ntop4 | ( | const unsigned char * | src, | |
| char * | dst, | |||
| int | size | |||
| ) | [static] |
Definition at line 322 of file compat.c.
References strscpy().
Referenced by inet_ntop(), and inet_ntop6().

| static char* inet_ntop6 | ( | const unsigned char * | src, | |
| char * | dst, | |||
| int | size | |||
| ) | [static] |
Definition at line 334 of file compat.c.
References inet_ntop4(), NS_IN6ADDRSZ, NS_INT16SZ, and strscpy().
Referenced by inet_ntop().

| int inet_pton | ( | int | af, | |
| const char * | src, | |||
| void * | dst | |||
| ) |
Definition at line 307 of file compat.c.
References AF_INET6, inet_pton4(), and inet_pton6().
Referenced by _subnetmask_to_prefixlen(), add_ipv6_addr(), allowed_hostname_or_ip_in_service(), get_ipv6_address(), GetIntInfo(), init_net(), ip_acl_plugin_parse(), looped_checks(), lq_mult_helper(), netaddr_from_string(), olsr_get_default_if_options(), parse_cfg_hna(), parse_cfg_interface(), parse_cfg_option(), set_nameservice_host(), set_nameservice_server(), set_plugin_hna(), set_plugin_ipaddress(), and yyparse().

| static int inet_pton4 | ( | const char * | src, | |
| unsigned char * | dst | |||
| ) | [static] |
Definition at line 159 of file compat.c.
References NS_INADDRSZ.
Referenced by inet_pton(), and inet_pton6().
| static int inet_pton6 | ( | const char * | src, | |
| unsigned char * | dst | |||
| ) | [static] |
Definition at line 206 of file compat.c.
References inet_pton4(), NS_IN6ADDRSZ, NS_INADDRSZ, and NS_INT16SZ.
Referenced by inet_pton().

| int isatty | ( | int | fd | ) |
Definition at line 431 of file compat.c.
Referenced by main(), and olsr_process_changes().
| unsigned int random | ( | void | ) |
Definition at line 80 of file compat.c.
References RandState.
Referenced by add_interface(), init_msg_seqno(), olsr_init_tc(), olsr_timer_start(), and olsr_timer_walk().
| void srandom | ( | unsigned int | Seed | ) |
| char * win32_strerror | ( | unsigned int | ErrNo | ) |
Definition at line 95 of file compat.c.
References strscpy().
Referenced by dlerror(), GetIntInfo(), ListInterfaces(), os_route_add_rtentry(), os_route_del_rtentry(), and os_socket_set_nonblocking().

| int write | ( | int | fd, | |
| const void * | buf, | |||
| unsigned int | count | |||
| ) |
Definition at line 463 of file compat.c.
References CHUNK_SIZE.
Referenced by add_del_route(), add_del_route6(), BmfEncapsulationPacketReceived(), daemonize_finish(), daemonize_prepare(), writen(), writeToProc(), and zebra_send_command().
1.6.3