netdev
[Top] [All Lists]

Re: serial port-to-netdevice tap

To: "Eble, Dan" <DanE@xxxxxxxxxx>
Subject: Re: serial port-to-netdevice tap
From: Krzysztof Halasa <khc@xxxxxxxxx>
Date: Wed, 16 Jun 2004 13:55:32 +0200
Cc: "'netdev@xxxxxxxxxxx'" <netdev@xxxxxxxxxxx>
In-reply-to: <C060DFCD9697A842B3189B458524FDC205D2C9@xxxxxxxxxxxxxxxxxxxxx> (Dan Eble's message of "Tue, 15 Jun 2004 11:50:01 -0400")
References: <C060DFCD9697A842B3189B458524FDC205D2C9@xxxxxxxxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
"Eble, Dan" <DanE@xxxxxxxxxx> writes:

> A coworker of mine wants an easy way to monitor data transfer and control
> line changes on an serial port.  His first impulse was to create a /proc
> file, but I suggested a netlink socket, or even a raw net device so that he
> can take advantage of libpcap for some pretty powerful filtering.  Does
> anything like this exist already?

With character device? I don't think so. One could use a pseudo
terminal combo, though. Another option is to use two additional ports
with their RX lines connected to both TX and RX lines of the main
port. Depends on requirements.
I use a "data acquisition" card with all the async serial protocol
etc. analysis in (quite simple) software.
A "strace" (if you want to see what a process does) could be a help as
well.
-- 
Krzysztof Halasa, B*FH

<Prev in Thread] Current Thread [Next in Thread>