|
Monero
|
#include <stdio.h>#include <string.h>#include <syslog.h>#include <unistd.h>#include <sys/ioctl.h>#include <sys/types.h>#include <sys/socket.h>#include <net/if.h>#include <netinet/in.h>#include <arpa/inet.h>#include "config.h"#include "getifaddr.h"#include <ifaddrs.h>
Macros | |
| #define | IP(a, b, c, d) |
| #define | MSK(m) |
Functions | |
| int | getifaddr (const char *ifname, char *buf, int len, struct in_addr *addr, struct in_addr *mask) |
| int | find_ipv6_addr (const char *ifname, char *dst, int n) |
| int | addr_is_reserved (struct in_addr *addr) |
Variables | |
| struct { | |
| uint32_t address | |
| uint32_t rmask | |
| } | reserved [] |
| #define MSK | ( | m | ) |
| int addr_is_reserved | ( | struct in_addr * | addr | ) |
| int find_ipv6_addr | ( | const char * | ifname, |
| char * | dst, | ||
| int | n ) |
| int getifaddr | ( | const char * | ifname, |
| char * | buf, | ||
| int | len, | ||
| struct in_addr * | addr, | ||
| struct in_addr * | mask ) |
| uint32_t address |
| const struct { ... } reserved[] |
| uint32_t rmask |