All of lore.kernel.org
 help / color / mirror / Atom feed
* tcpdump equivalent for the serial port
@ 2003-09-12 13:37 Nicolae Mihalache
  2003-09-12 13:50 ` Mariano Moreyra
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Nicolae Mihalache @ 2003-09-12 13:37 UTC (permalink / raw)
  To: linux-c-programming

Hello!

I'm interested if somebody has any ideea how to write a program that is 
able to sniff the data passing through a serial port the same way 
tcpdump is able to show the data passing through the ethernet cable, 
i.e. without disturbing the application that sends/receives the data.
I've seen few programs that basically work as tunnels opening a 
pseudo-console where the application connects and writing on the other 
side to the serial device. This approach is not very useful because I 
want to be able to start/stop my sniffer without interupting the 
communication and also the application can control different settings of 
the serial port which probably will not be forwarded by the tunnel.

Thanks,
mache


^ permalink raw reply	[flat|nested] 10+ messages in thread
* tcpdump equivalent for the serial port
@ 2003-09-12 15:37 Nicolae Mihalache
  0 siblings, 0 replies; 10+ messages in thread
From: Nicolae Mihalache @ 2003-09-12 15:37 UTC (permalink / raw)
  To: Kernel Mailing List

Hello!

I'm interested if somebody has any ideea how to write a program that is able to sniff the data passing through a serial port the same way tcpdump is able to show the data passing through the ethernet cable, i.e. without disturbing the application that sends/receives the data.
I've seen few programs that basically work as tunnels opening a pseudo-console where the application connects and writing on the other side to the serial device. This approach is not very useful because I want to be able to start/stop my sniffer without interupting the communication and also the application can control different settings of the serial port which probably will not be forwarded by the tunnel.
Another sugestion was to monitor rather the application using ptrace than the serial port itself but this has the inconvenience that I only get the data when the application reads it not when it arrives.
I wonder if there is any support provided in the kernel for this.

Thanks,
mache



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2003-09-12 15:37 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-12 13:37 tcpdump equivalent for the serial port Nicolae Mihalache
2003-09-12 13:50 ` Mariano Moreyra
2003-09-12 14:01   ` Nicolae Mihalache
2003-09-12 14:08     ` Mariano Moreyra
2003-09-12 14:05 ` Jan-Benedict Glaw
2003-09-12 14:23   ` Nicolae Mihalache
2003-09-12 14:39     ` Jan-Benedict Glaw
2003-09-12 15:33       ` Nicolae Mihalache
2003-09-12 14:34 ` Jamie Le Tual
  -- strict thread matches above, loose matches on Subject: below --
2003-09-12 15:37 Nicolae Mihalache

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.