can_eth_gw Gateway Module  0.1
A bidirectional CAN to Ethernet Gateway (Kernel Module)
 All Data Structures Files Functions Variables Enumerations Enumerator Macros Groups Pages
Todo List
Global ce_gw_alloc_can_frame (void)
not tested yet
Global ce_gw_alloc_canfd_frame (void)
not tested yet
Global ce_gw_can_rcv (struct sk_buff *can_skb, void *data)

check also for canfd flag not only Type and call function. You must also check then if the message then is really a canfd-frame or not.

call other translation functions. check for canfd-frame or only use canfd-frame casts.

Global ce_gw_can_to_eth (unsigned char *dest, unsigned char *source, __be16 type, struct sk_buff *can_buffer, struct net_device *dev)
not tested yet
Global ce_gw_canfd2net (struct sk_buff *eth_skb, struct sk_buff *can_skb, struct net_device *eth_dev, struct net_device *can_dev, unsigned char *mac_dst, unsigned char *mac_src)
not tested yet but its the same as ce_gw_can2net()
Global ce_gw_canfd2net_alloc (struct sk_buff *can_skb, struct net_device *eth_dev, struct net_device *can_dev, unsigned char *mac_dst, unsigned char *mac_src)
not tested yet but its the same as ce_gw_can2net_alloc()
Global ce_gw_canfd_to_eth (unsigned char *dest, unsigned char *source, __be16 type, struct sk_buff *canfd_skb, struct net_device *dev)
not tested yet
Global ce_gw_eth_rcv (struct sk_buff *eth_skb, void *data)
check for canfd-frame or only use canfd-frame casts.
Global ce_gw_eth_to_can (canid_t id, struct sk_buff *eth_buff, struct net_device *dev)
not tested yet
Global ce_gw_eth_to_canfd (canid_t id, __u8 flags, __u8 res0, __u8 res1, struct sk_buff *eth_skb, struct net_device *dev)
not tested yet
Global ce_gw_free_can_frame (struct can_frame *memory)
not tested yet
Global ce_gw_free_canfd_frame (struct canfd_frame *memory)
not tested yet
Global ce_gw_get_header_can (canid_t can_id, __u8 can_dlc, __u8 *payload)

not tested yet

Global ce_gw_net2canfd_alloc (struct sk_buff *eth_skb, struct net_device *can_dev, struct net_device *eth_dev)

not tested yet.

there might be a better way to allocted the new skb.