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[0];
-};
-#endif
-
#define CEGW_IOCTL_BASE 'c'
#define CEGW_IOCTL_START _IOW(CEGW_IOCTL_BASE, 0, struct cegw_ioctl)
#endif /* CANETHGW_H */
-
MODULE_LICENSE("GPL");
+struct cegw_job
+{
+ struct kref refcount;
+ struct socket* can_sock;
+ struct socket* udp_sock;
+ __u32 udp_dstcnt;
+ struct sockaddr_in udp_dst[0];
+};
+
static int cegw_udp2can(void *data);
static int cegw_udp_send(struct socket *udp_sock, struct can_frame *cf,
struct sockaddr_in* addr);