]> git.ipfire.org Git - thirdparty/strongswan.git/blob - linux/include/mast.h
- import of strongswan-2.7.0
[thirdparty/strongswan.git] / linux / include / mast.h
1 struct mast_callbacks {
2 int (*packet_encap)(struct device *mast, void *context,
3 struct sk_buff *skb, int flowref);
4 int (*link_inquire)(struct device *mast, void *context);
5 };
6
7
8 struct device *mast_init (int family,
9 struct mast_callbacks *callbacks,
10 unsigned int flags,
11 unsigned int desired_unit,
12 unsigned int max_flowref,
13 void *context);
14
15 int mast_destroy(struct device *mast);
16
17 int mast_recv(struct device *mast, struct sk_buff *skb, int flowref);
18
19 /* free this skb as being useless, increment failure count. */
20 int mast_toast(struct device *mast, struct sk_buff *skb, int flowref);
21
22 int mast_linkstat (struct device *mast, int flowref,
23 int status);
24
25 int mast_setreference (struct device *mast,
26 int defaultSA);
27
28 int mast_setneighbor (struct device *mast,
29 struct sockaddr *source,
30 struct sockaddr *destination,
31 int flowref);
32
33