1
2
3
4
5
6
7 #ifndef _ATMCLIP_H
8 #define _ATMCLIP_H
9
10 #include <linux/netdevice.h>
11 #include <linux/atm.h>
12 #include <linux/atmdev.h>
13 #include <linux/atmarp.h>
14 #include <linux/spinlock.h>
15 #include <net/neighbour.h>
16
17
18 #define CLIP_VCC(vcc) ((struct clip_vcc *) ((vcc)->user_back))
19
20 struct sk_buff;
21
22 struct clip_vcc {
23 struct atm_vcc *vcc;
24 struct atmarp_entry *entry;
25
26 int xoff;
27 unsigned char encap;
28 unsigned long last_use;
29 unsigned long idle_timeout;
30 void (*old_push)(struct atm_vcc *vcc,struct sk_buff *skb);
31
32 void (*old_pop)(struct atm_vcc *vcc,struct sk_buff *skb);
33
34 struct clip_vcc *next;
35 };
36
37
38 struct atmarp_entry {
39 struct clip_vcc *vccs;
40
41 unsigned long expires;
42 struct neighbour *neigh;
43 };
44
45 #define PRIV(dev) ((struct clip_priv *) netdev_priv(dev))
46
47 struct clip_priv {
48 int number;
49 spinlock_t xoff_lock;
50 struct net_device *next;
51 };
52
53 #endif