SingingCat 0
application
route_command.h
1#ifndef __ROUTE_COMMAND_H
2#define __ROUTE_COMMAND_H
3#include "main-header.h"
4
5typedef struct route {
6 byte used; // non zero if this route is used
7 byte match_device; //the device on which it must be received
8 byte out_device; //the device via to send it
9 long target; // target match for this route (which it applies to) (0=ANY)
10 long source; // source match for this route (which it applies to) (0=ANY)
11 long sendto; // the next device to send to
12} _route;
13void routing_command_debug(byte b);
14void routing_command_init();
15void route_command(struct command *com); /* set/remove a route */
16struct route *get_configured_route(struct command *com); /* get a pre-configured route to a target */
17void print_forwarding_table();
18#endif