+/*
+ * Copyright: (c) 2012 Czech Technical University in Prague
+ *
+ * Authors:
+ * Radek Matějka <radek.matejka@gmail.com>
+ * Michal Sojka <sojkam1@fel.cvut.cz>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version
+ * 2 of the License, or (at your option) any later version.
+ */
+
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/kthread.h>
vec.iov_base = cf;
vec.iov_len = sizeof(*cf);
- /* FIXME: Convert endianing of cf->can_id */
err = kernel_sendmsg(udp_sock, &mh, &vec, 1, sizeof(*cf));
return err;
if (ret < 1)
break;
- /* FIXME: Convert endianing of cf.can_id */
+ cf.can_id = be32_to_cpu(cf.can_id);
cegw_can_send(can_sock, &cf);
}
if (ret < 1)
break;
+ cf.can_id = cpu_to_be32(cf.can_id);
for (i=0; i<job->udp_dstcnt; i++) {
cegw_udp_send(udp_sock, &cf, &job->udp_dst[i]);
}