18#define CANFD_MAX_DLEN 64
32 uint8_t data[CANFD_MAX_DLEN];
38 wtap_can_msg_type_t type;
41 unsigned int interface_id;
44#define WTAP_SOCKETCAN_INVALID_INTERFACE_ID 0xFFFFFFFF
void * wtap_socketcan_get_private_data(wtap *wth)
Retrieves private data associated with a socketCAN capture.
Definition socketcan.c:85
void wtap_set_as_socketcan(wtap *wth, int file_type_subtype, int tsprec, void *tap_priv, void(*tap_close)(void *))
Set up a wiretap session for SOCKETCAN capture.
Definition socketcan.c:92
uint32_t wtap_socketcan_find_or_create_new_interface(wtap *wth, const char *name)
Find or create a PCAPNG interface block.
Definition socketcan.c:214
bool wtap_socketcan_gen_packet(wtap *wth, wtap_rec *rec, const wtap_can_msg_t *msg, char *module_name, int *err, char **err_info)
Generate a packet for SocketCAN.
Definition socketcan.c:109
Definition socketcan.h:30
Definition socketcan.h:35
Definition wtap_module.h:58