diff options
author | Charles-François Natali <neologix@free.fr> | 2011-10-06 17:47:44 (GMT) |
---|---|---|
committer | Charles-François Natali <neologix@free.fr> | 2011-10-06 17:47:44 (GMT) |
commit | 47413c117145c3da7cdb0ded5c05d0d540a26a4a (patch) | |
tree | 8b216bb9a929129d5a9a457c3e0943f551d7b4a4 /Modules/socketmodule.h | |
parent | 90c30e87be7df19604c920ee24b6888afa91a093 (diff) | |
download | cpython-47413c117145c3da7cdb0ded5c05d0d540a26a4a.zip cpython-47413c117145c3da7cdb0ded5c05d0d540a26a4a.tar.gz cpython-47413c117145c3da7cdb0ded5c05d0d540a26a4a.tar.bz2 |
Issue #10141: socket: add SocketCAN (PF_CAN) support. Initial patch by Matthias
Fuchs, updated by Tiago Gonçalves.
Diffstat (limited to 'Modules/socketmodule.h')
-rw-r--r-- | Modules/socketmodule.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Modules/socketmodule.h b/Modules/socketmodule.h index db44fd3..13e33d5 100644 --- a/Modules/socketmodule.h +++ b/Modules/socketmodule.h @@ -72,6 +72,14 @@ typedef int socklen_t; # include <linux/tipc.h> #endif +#ifdef HAVE_LINUX_CAN_H +#include <linux/can.h> +#endif + +#ifdef HAVE_LINUX_CAN_RAW_H +#include <linux/can/raw.h> +#endif + #ifndef Py__SOCKET_H #define Py__SOCKET_H #ifdef __cplusplus @@ -126,6 +134,9 @@ typedef union sock_addr { #ifdef HAVE_NETPACKET_PACKET_H struct sockaddr_ll ll; #endif +#ifdef HAVE_LINUX_CAN_H + struct sockaddr_can can; +#endif } sock_addr_t; /* The object holding a socket. It holds some extra information, |