X-Git-Url: https://rtime.felk.cvut.cz/gitweb/can-eth-gw.git/blobdiff_plain/abfc67f112d1572a972c8a321ee889102fe1ced5..7ff0c6a51a6ae306cf9094c67ad531cf0de0da49:/kernel/canethgw.h diff --git a/kernel/canethgw.h b/kernel/canethgw.h index c082fca..f15b688 100644 --- a/kernel/canethgw.h +++ b/kernel/canethgw.h @@ -47,19 +47,22 @@ struct cegw_udp_dst4 struct cegw_ioctl { __u32 can_sock; - __u32 udp_sock;; + __u32 udp_sock; __u32 udp_dstcnt; __u32 udp_addrlen; struct sockaddr_in udp_dst[0]; }; +#ifdef __KERNEL__ struct cegw_job { + struct kref refcount; struct socket* can_sock; struct socket* udp_sock; __u32 udp_dstcnt; - struct sockaddr_in* udp_dst; + struct sockaddr_in udp_dst[0]; }; +#endif #define CEGW_IOCTL_BASE 'c' #define CEGW_IOCTL_START _IOW(CEGW_IOCTL_BASE, 0, struct cegw_ioctl)