__u32 dst_ifindex;
};
-#define CAN_GW_TXFLAGS_LOOPBACK 0x01
+#define CAN_GW_TXFLAGS_ECHO 0x01
#define CAN_GW_TXFLAGS_SRC_TSTAMP 0x02
/* CAN rtnetlink attribute definitions */
};
/* content of u32 gwjob.flags */
-#define CAN_TX_LOOPBACK 0x00000001
+#define CAN_TX_ECHO 0x00000001
#define CAN_TX_SRC_TSTAMP 0x00000002
/* modification functions that are invoked in the hot path in gw_rcv */
nskb->tstamp.tv64 = 0;
/* send to netdevice */
- if (can_send(nskb, gwj->flags & CAN_TX_LOOPBACK))
+ if (can_send(nskb, gwj->flags & CAN_TX_ECHO))
gwj->dropped_frames++;
else
gwj->handled_frames++;
gwj->flags = 0;
- if (r->can_txflags & CAN_GW_TXFLAGS_LOOPBACK)
- gwj->flags |= CAN_TX_LOOPBACK;
+ if (r->can_txflags & CAN_GW_TXFLAGS_ECHO)
+ gwj->flags |= CAN_TX_ECHO;
if (r->can_txflags & CAN_GW_TXFLAGS_SRC_TSTAMP)
gwj->flags |= CAN_TX_SRC_TSTAMP;
req.r.can_family = AF_CAN;
req.r.src_ifindex = if_nametoindex("vcan2");
req.r.dst_ifindex = if_nametoindex("vcan3");
- req.r.can_txflags = CAN_GW_TXFLAGS_LOOPBACK;
+ req.r.can_txflags = CAN_GW_TXFLAGS_ECHO;
/* add new attributes here */