tagging vde-2 version 2.3.2
[vde.git] / 2.3.2 / src / vde_switch / fstp.h
blobc0a1643ddffdc94f09585163972f3fd0d7fc2829
1 /* Copyright 2005 Renzo Davoli VDE-2
2 * Some minor remain from uml_switch Copyright 2002 Yon Uriarte and Jeff Dike
3 * Licensed under the GPLv2
4 */
6 #ifndef _FSTP_H
7 #define _FSTP_H
8 #include "port.h"
10 #ifdef FSTP
11 #define FSTP_TAG 0x1
13 extern unsigned char bpduaddrp[];
14 #define ISBPDU(P) (memcmp((P)->header.dest,bpduaddrp,ETH_ALEN)==0)
16 void fstpshutdown(void);
17 int fstnewvlan(int vlan);
18 int fstremovevlan(int vlan);
19 void fstsetnumports (int val);
20 void fst_in_bpdu(int port, struct packet *p, int len, int vlan, int tagged);
21 void fstaddport(int vlan,int port,int tagged);
22 void fstdelport(int vlan,int port);
23 int fstflag(int op, int f);
24 void fst_init(int initnumports);
25 #endif
26 #endif