#include <sys/param.h>#include <sys/socket.h>#include <sys/file.h>#include <sys/time.h>#include <sys/resource.h>#include <sys/ioctl.h>#include <sys/types.h>#include <sys/wait.h>#include <errno.h>#include <net/if.h>#include <net/route.h>#include <netinet/in.h>#include <signal.h>#include <atalk/logger.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <netdb.h>#include <fcntl.h>#include <unistd.h>#include <netatalk/at.h>#include <atalk/compat.h>#include <atalk/zip.h>#include <atalk/rtmp.h>#include <atalk/nbp.h>#include <atalk/ddp.h>#include <atalk/atp.h>#include <atalk/util.h>#include "interface.h"#include "gate.h"#include "list.h"#include "rtmp.h"#include "zip.h"#include "nbp.h"#include "atserv.h"#include "main.h"Macros | |
| #define | elements(a) |
| #define | PKTSZ 1024 |
| #define | MACCHARSET "MAC_ROMAN" |
Functions | |
| int | ifconfig (const char *iname, unsigned long cmd, struct sockaddr_at *sa) |
| int | aep_packet (struct atport *ap, struct sockaddr_at *from, char *data, int len) |
| int | readconf (char *) |
| int | getifconf (void) |
| int | writeconf (char *) |
| static void | consistency (void) |
| static void | atalkd_exit (const int i) |
| static ssize_t | sendto_iface (struct interface *iface, int sockfd, const void *buf, size_t len, const struct sockaddr_at *dest_addr) |
| static void | as_timer (int sig) |
| static void | as_debug (int sig) |
| static void | as_down (int sig) |
| int | main (int ac, char **av) |
| void | bootaddr (struct interface *iface) |
| void | setaddr (struct interface *iface, uint8_t phase, uint16_t net, uint8_t node, uint16_t first, uint16_t last) |
| void | dumpconfig (struct interface *iface) |
Variables | |
| int | rtfd |
| int | transition = 0 |
| int | stabletimer |
| int | newrtmpdata = 0 |
| static struct atserv | atserv [] |
| static int | atservNATSERV = elements(atserv) |
| struct interface * | interfaces = NULL |
| struct interface * | ciface = NULL |
| int | debug = 0 |
| static char * | configfile = NULL |
| static int | ziptimeout = 0 |
| static int | stable = 0 |
| static int | noparent = 0 |
| static int | ninterfaces |
| static int | defphase = IFACE_PHASE2 |
| static int | nfds = 0 |
| static fd_set | fds |
| static char | Packet [PKTSZ] |
| static char * | version = VERSION |
| static char * | pidfile = PATH_ATALKD_LOCK |
| #define elements | ( | a | ) |
| #define MACCHARSET "MAC_ROMAN" |
| #define PKTSZ 1024 |
|
extern |
|
static |
|
static |
|
static |
|
static |
| void bootaddr | ( | struct interface * | iface | ) |
|
static |
| void dumpconfig | ( | struct interface * | iface | ) |
| int getifconf | ( | void | ) |
| int ifconfig | ( | const char * | iname, |
| unsigned long | cmd, | ||
| struct sockaddr_at * | sa ) |
| int main | ( | int | ac, |
| char ** | av ) |
| int readconf | ( | char * | cf | ) |
|
static |
| void setaddr | ( | struct interface * | iface, |
| uint8_t | phase, | ||
| uint16_t | net, | ||
| uint8_t | node, | ||
| uint16_t | first, | ||
| uint16_t | last ) |
| int writeconf | ( | char * | cf | ) |
|
static |
| struct interface * ciface = NULL |
|
static |
| int debug = 0 |
|
static |
|
static |
| struct interface* interfaces = NULL |
| int newrtmpdata = 0 |
|
static |
|
static |
|
static |
|
static |
|
static |
| int rtfd |
|
static |
| int stabletimer |
| int transition = 0 |
|
static |
|
static |