#include <stdlib.h>#include <string.h>#include <errno.h>#include <atalk/logger.h>#include <sys/types.h>#include <sys/param.h>#include <sys/socket.h>#include <sys/ioctl.h>#include <net/if.h>#include <net/route.h>#include <netatalk/at.h>#include <atalk/ddp.h>#include <atalk/atp.h>#include <atalk/rtmp.h>#include "interface.h"#include "gate.h"#include "rtmp.h"#include "zip.h"#include "list.h"#include "atserv.h"#include "route.h"#include "main.h"Functions | |
| void | rtmp_delzonemap (struct rtmptab *rtmp) |
| static int | rtmp_config (struct rtmp_head *rh, struct interface *iface) |
| static void | rtmp_delinuse (struct rtmptab *rtmp) |
| static void | rtmp_addinuse (struct rtmptab *rtmp) |
| Add rtmp to the per-interface in-use table. | |
| static int | rtmp_copyzones (struct rtmptab *to, struct rtmptab *from) |
| Change the zone mapping to replace "from" with "to". | |
| void | rtmp_free (struct rtmptab *rtmp) |
| int | rtmp_replace (struct rtmptab **replace_ptr) |
| Find a replacement for the structure pointed to by "replace_ptr". | |
| static int | rtmp_new (struct rtmptab *rtmp) |
| int | rtmp_packet (struct atport *ap, struct sockaddr_at *from, char *data, int len) |
| int | rtmp_request (struct interface *iface) |
| int | looproute (struct interface *iface, unsigned int cmd) |
| int | gateroute (unsigned int command, struct rtmptab *rtmp) |
| struct rtmptab * | newrt (const struct interface *iface) |
Variables | |
| int | debug |
| int gateroute | ( | unsigned int | command, |
| struct rtmptab * | rtmp ) |
| int looproute | ( | struct interface * | iface, |
| unsigned int | cmd ) |
|
static |
Add rtmp to the per-interface in-use table.
Complete configuration for phase 1 interface using RTMP information.
Change the zone mapping to replace "from" with "to".
|
static |
Delete rtmp from the per-interface in-use table, remove all zone references, and remove the route from the kernel.
| void rtmp_delzonemap | ( | struct rtmptab * | rtmp | ) |
| void rtmp_free | ( | struct rtmptab * | rtmp | ) |
Remove rtmp from the in-use table and the per-gate table. Free any associated space.
|
static |
| int rtmp_packet | ( | struct atport * | ap, |
| struct sockaddr_at * | from, | ||
| char * | data, | ||
| int | len ) |
| int rtmp_replace | ( | struct rtmptab ** | replace_ptr | ) |
Find a replacement for the structure pointed to by "replace_ptr".
| int rtmp_request | ( | struct interface * | iface | ) |
|
extern |