File: mast.h

package info (click to toggle)
openswan 1%3A2.4.6%2Bdfsg.2-1.1
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 24,996 kB
  • ctags: 16,877
  • sloc: ansic: 121,112; sh: 19,524; xml: 9,699; asm: 4,422; perl: 4,087; makefile: 3,367; tcl: 713; exp: 657; yacc: 396; pascal: 328; lex: 289; sed: 265; awk: 124; lisp: 3
file content (33 lines) | stat: -rw-r--r-- 902 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
struct mast_callbacks {
  int (*packet_encap)(struct device *mast, void *context,
		      struct sk_buff *skb, int flowref);
  int (*link_inquire)(struct device *mast, void *context);
};


struct device *mast_init (int family,
			  struct mast_callbacks *callbacks,
			  unsigned int flags,
			  unsigned int desired_unit,
			  unsigned int max_flowref,
			  void *context);

int mast_destroy(struct device *mast);

int mast_recv(struct device *mast, struct sk_buff *skb, int flowref);

/* free this skb as being useless, increment failure count. */
int mast_toast(struct device *mast, struct sk_buff *skb, int flowref);

int mast_linkstat (struct device *mast, int flowref,
		   int status);

int mast_setreference (struct device *mast,
		       int defaultSA);

int mast_setneighbor (struct device *mast,
		      struct sockaddr *source,
		      struct sockaddr *destination,
		      int flowref);