/* Prepare first message */
copy_from_user(&msg_buff, buffer, sizeof(struct canmsg_t));
+ /* Automatic selection of extended format if "extended" set and ID>2047 */
+ if (extended) if (msg_buff.id & ~0x7ffl ) msg_buff.flags |= MSG_EXT;
/* If the output buffer is full, return immediately in case O_NONBLOCK
* has been specified or loop until space becomes available.
while (bytes_to_copy > 0) {
/* Prepare first message */
copy_from_user(&msg_buff, buffer, sizeof(struct canmsg_t));
+ /* Automatic selection of extended format if "extended" set and ID>2047 */
+ if (extended) if (msg_buff.id & ~0x7ffl ) msg_buff.flags |= MSG_EXT;
/* Get slot */
if(canque_get_inslot4id(qends, &qedge, &slot,
0, msg_buff.id, 0) < 0) break;