#include <errno.h>#include <sys/socket.h>#include <net/if.h>#include <netinet/in.h>#include <netinet/tcp.h>#include <stdint.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <sys/ioctl.h>#include <sys/types.h>#include <atalk/util.h>Macros | |
| #define | IFACE_NUM 5 |
Functions | |
| static int | addname (char **list, int *i, const char *name) |
| static int | getifaces (const int sockfd, char ***list) |
| char ** | getifacelist (void) |
| Get interfaces from the kernel. | |
| void | freeifacelist (char **ifacelist) |
| #define IFACE_NUM 5 |
|
static |
we leave all of the ioctl's to the application
| void freeifacelist | ( | char ** | ifacelist | ) |
go through and free the interface list
| char ** getifacelist | ( | void | ) |
Get interfaces from the kernel.
|
static |