Purpose of this Driver?
Quoted 6 lines · [email protected] writes:
I would recommend a generalized WAN interface that is capable of being configured for SDLC Loop (primary & secondary), all variants of bisync and transparent modes. I have clients that do all of these, including a very bizarre 13 bit bisync. And practically every variation is used either to carry IP or to communicate with a proprietary legacy protocol application.
There is no problem with that. However, things in Linux get implemented usually because users require them. For now, users want PPP, Frame Relay, Cisco HDLC.
Quoted 4 lines
Quoted 2 lines
Plus there are different CRCs or no CRC (FCS) at all. In fact, we're using "idle flags" version only (?).
Why? It would be trivial to add Mark Idle support.
Of course. But nobody just wanted it.
Quoted 6 lines
Is there a functional specification somewhere that outlines the goals of the project? I have only just started to follow this discussion because I included a synchronous HDLC flag framing and bit inserting-deleting character driver as well as synchronous TTY terminals in the SAB8253X ASLX driver that I am in the process of releasing.
No, there is no specification. You can get the idea by browsing hdlc*.c and include/linux/hdlc.h file (using a modern kernel + my hdlc patch).
Quoted 8 lines
If FR and PPP are to be supported, are LAP, LAPB, LAPD to be supported? How about X.25 Packet Layer, CCITT 1976, 1980, 1984, 1988 and BX.25 variants. How about PADs and V.120?
Obviously, it could take man decades to implement all this stuff completely. But the presence of hooks for other people to add such support in later would be great.
The kernel source is open, anyone can add the support. No special hooks seem necessary. For now, it can do FR, PPP (via syncppp.c), Cisco, and X.25 is done using Linux X.25 + LAPB stack.
Quoted 4 lines
I would recommend that a generic WAN interface be able to interface to the Linux network layer and the TTY driver and include some sort of getmsg/putmsg-like application interface.
It seems unrelated. Of course the HDLC code interfaces with the network code. I'd stay away from tty as sync serial devices are rarely used for TTY-alike communications, and no tty drivers exist for most of such cards. Obviously, particular driver can support tty mode if needed, or new "protocol" can be implemented which does exactly that.
Signature · 2 lines
Krzysztof Halasa Network Administrator