]>
git.ipfire.org Git - thirdparty/strongswan.git/blob - 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
);
8 struct device
*mast_init (int family
,
9 struct mast_callbacks
*callbacks
,
11 unsigned int desired_unit
,
12 unsigned int max_flowref
,
15 int mast_destroy(struct device
*mast
);
17 int mast_recv(struct device
*mast
, struct sk_buff
*skb
, int flowref
);
19 /* free this skb as being useless, increment failure count. */
20 int mast_toast(struct device
*mast
, struct sk_buff
*skb
, int flowref
);
22 int mast_linkstat (struct device
*mast
, int flowref
,
25 int mast_setreference (struct device
*mast
,
28 int mast_setneighbor (struct device
*mast
,
29 struct sockaddr
*source
,
30 struct sockaddr
*destination
,