summaryrefslogtreecommitdiff
path: root/accel-pppd/include/vlan_mon.h
blob: c6b2db762c83e1c99c7f35c3a1cdd48af346aea2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef __VLAN_MON_H
#define __VLAN_MON_H

typedef void (*vlan_mon_notify)(int ifindex, int vid);

void vlan_mon_register_proto(int proto, vlan_mon_notify cb);

int vlan_mon_add(int ifindex, int proto, long *mask, int len);
int vlan_mon_add_vid(int ifindex, int proto, int vid);
int vlan_mon_del(int ifindex, int proto);

int make_vlan_name(const char *pattern, const char *parent, int svid, int cvid, char *name);
int parse_vlan_mon(const char *opt, long *mask);

#endif