]> rtime.felk.cvut.cz Git - can-eth-gw.git/blob - kernel/canethgw.h
Copy IPv6 support to submodules + fixes + small enhancements
[can-eth-gw.git] / kernel / canethgw.h
1 #ifndef CANETHGW_H
2 #define CANETHGW_H
3
4 #include <linux/types.h>
5
6 struct cegw_ioctl
7 {
8         __u32 can_sock;
9         __u32 udp_sock;
10         __u32 udp_dstcnt;
11         __u32 udp_addrlen;
12         __u8 udp_dst[0];
13 };
14
15 #ifdef __KERNEL__
16 struct cegw_job
17 {
18         struct kref refcount;
19         struct socket* can_sock;
20         struct socket* udp_sock;
21         u32  udp_dstcnt;
22         u32  udp_addrlen;
23         u8   udp_dst[0];
24 };
25 #endif
26
27 #define CEGW_IOCTL_BASE 'c'
28 #define CEGW_IOCTL_START _IOW(CEGW_IOCTL_BASE, 0, struct cegw_ioctl)
29
30 #endif /* CANETHGW_H */
31