]> rtime.felk.cvut.cz Git - can-eth-gw.git/blob - kernel/canethgw.h
65d9cc51b8e9dd36042e978b385918c129bf141d
[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         struct sockaddr_in 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         struct sockaddr_in udp_dst[0];
23 };
24 #endif
25
26 #define CEGW_IOCTL_BASE 'c'
27 #define CEGW_IOCTL_START _IOW(CEGW_IOCTL_BASE, 0, struct cegw_ioctl)
28
29 #endif /* CANETHGW_H */
30