man pages license/see also updates
[vde.git] / vde-2 / fstp.h
blob98d9b188fecc972bc048ae1a3bc8dfe7e75a38aa
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 int fstnewvlan(int vlan);
17 int fstremovevlan(int vlan);
18 void fstsetnumports (int val);
19 void fst_in_bpdu(int port, struct packet *p, int len, int vlan, int tagged);
20 void fstaddport(int vlan,int port,int tagged);
21 void fstdelport(int vlan,int port);
22 int fstflag(int op, int f);
23 void fst_init(int initnumports);
24 #endif
25 #endif