diff --git a/slcanpty.c b/slcanpty.c index c062a027..f485ac77 100644 --- a/slcanpty.c +++ b/slcanpty.c @@ -185,6 +185,13 @@ int pty2can(int pty, int socket, struct can_filter *fi, ptr = 1; goto rx_out; } + /* check for 'v'ersion command */ + if (cmd == 'v') { + sprintf(replybuf, "v1014\r"); + tmp = strlen(replybuf); + ptr = 1; + goto rx_out; + } /* check for serial 'N'umber command */ if (cmd == 'N') {