tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: SLIP coexisting with serial data?
>> I was looking at improving if_sl.c to support encapsulating "normal"
>> serial data on the SLIP's tty as packets, [...]
> I've encountered that on a serial protocol in my Arduino work. It
> worked quite well i have to say. It worked due to a packet starting
> with an unique byte. [...]
> I don't know SLIP anymore by heart but maybe you could `invent'/use
> an IP# of 127.0.0.1 as a special case (or 0.0.0.0) to carry the
> key/terminal stuff.
Oh, that's not the problem. This is where the v6 patches have
relevance: carrying v6 involves inventing a way to tag packets with
types; I used one of them for v6, and it would be easy to use another
for serial data. The difficulty is in the kernel: SLIP works by
switching line disciplines, which makes it difficult to get normal
output processing to happen - and what I want is for that to happen and
then run the result through if_sl.c before sending it to the real
hardware.
In the light of morning, I'm not sure this will get me what I want even
if I make it work. I need to think about it more....
/~\ The ASCII Mouse
\ / Ribbon Campaign
X Against HTML mouse%rodents-montreal.org@localhost
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B
Home |
Main Index |
Thread Index |
Old Index