#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <getopt.h>
#include "../include/ebtables_u.h"
#include <linux/netfilter_bridge/ebt_stp.h>
Macros | |
#define | STP_TYPE 'a' |
#define | STP_FLAGS 'b' |
#define | STP_ROOTPRIO 'c' |
#define | STP_ROOTADDR 'd' |
#define | STP_ROOTCOST 'e' |
#define | STP_SENDERPRIO 'f' |
#define | STP_SENDERADDR 'g' |
#define | STP_PORT 'h' |
#define | STP_MSGAGE 'i' |
#define | STP_MAXAGE 'j' |
#define | STP_HELLOTIME 'k' |
#define | STP_FWDD 'l' |
#define | STP_NUMOPS 12 |
#define | BPDU_TYPE_CONFIG 0 |
#define | BPDU_TYPE_TCN 0x80 |
#define | BPDU_TYPE_CONFIG_STRING "config" |
#define | BPDU_TYPE_TCN_STRING "tcn" |
#define | FLAG_TC 0x01 |
#define | FLAG_TC_ACK 0x80 |
#define | FLAG_TC_STRING "topology-change" |
#define | FLAG_TC_ACK_STRING "topology-change-ack" |
Functions | |
void | _init (void) |
#define BPDU_TYPE_CONFIG 0 |
#define BPDU_TYPE_CONFIG_STRING "config" |
#define BPDU_TYPE_TCN 0x80 |
#define BPDU_TYPE_TCN_STRING "tcn" |
#define FLAG_TC 0x01 |
#define FLAG_TC_ACK 0x80 |
#define FLAG_TC_ACK_STRING "topology-change-ack" |
#define FLAG_TC_STRING "topology-change" |
#define STP_FLAGS 'b' |
#define STP_FWDD 'l' |
#define STP_HELLOTIME 'k' |
#define STP_MAXAGE 'j' |
#define STP_MSGAGE 'i' |
#define STP_NUMOPS 12 |
#define STP_PORT 'h' |
#define STP_ROOTADDR 'd' |
#define STP_ROOTCOST 'e' |
#define STP_ROOTPRIO 'c' |
#define STP_SENDERADDR 'g' |
#define STP_SENDERPRIO 'f' |
#define STP_TYPE 'a' |
void _init | ( | void | ) |