X.25 in linux
Hai all,
I want to make two Linux systems communicating through X.25 suite. I am successful in sending data through X.25 PLP over lapb over Ethernet. (by using X25 socket API, x25route and lapb0 virtual interface)
Now, I want to communicate via lapb over serial interface (like "ttyS0") instead
of Ethernet layer.
I installed Net-tools package, then I tried with "slattach -p x25 /dev/ttyS0" but got message
Quoted 1 line
Cannot change line discipline to `x25'.
Can any one tell me from where can I get the modified version of "slattach" so that it supports X25 Async network interface or any available modules which helps me in doing this?
Thanks,
Venkat.
Signature · 2 lines
View this message in context: http://www.nabble.com/X.25-in-linux-tp14370077p14370077.html Sent from the linux-x25 mailing list archive at Nabble.com.
Quoted 1 line · On Sun, Dec 16, 2007 at 09:11:16PM -0800, venkat4p wrote:
Hai all,
Hello,
Quoted 4 lines
I want to make two Linux systems communicating through X.25 suite. I am successful in sending data through X.25 PLP over lapb over Ethernet. (by using X25 socket API, x25route and lapb0 virtual interface)
Quoted 8 lines
Now, I want to communicate via lapb over serial interface (like "ttyS0") instead of Ethernet layer.
I installed Net-tools package, then I tried with "slattach -p x25/dev/ttyS0" but got messageQuoted 1 line
Cannot change line discipline to `x25'.
Can any one tell me from where can I get the modified version of "slattach" so that it supports X25 Async network interface or any available modules which helps me in doing this?
Kernel already has module x25_asy.c which needs to be configured from WAN submenu - an EXPERIMENTAL module:
config X25_ASY
tristate "X.25 async driver (EXPERIMENTAL)"
depends on WAN && LAPB && X25
---help---
Send and receive X.25 frames over regular asynchronous serial lines such as telephone lines equipped with ordinary modems.
Experts should note that this driver doesn't currently comply with the asynchronous HDLS framing protocols in CCITT recommendation X.25.
To compile this driver as a module, choose M here: the module will be called x25_asy.
If unsure, say N.
It is not configured on in default case.
You have to make your own kernel configuration with that (and all dependencies) turned into modules. (You probably already did spin your own kernel to have X.25 in system in the first place..)
Even then the slattach might not know what "x25" is supposed to be.
Quoted 2 lines
Thanks,
Venkat.
/Matti Aarnio
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 9 lines · ven swe
Thanks for your reply Matti.
I already configured my kernel (version 2.6.22.8) with "
X25_ASY" . And I am getting the error message.I think this is because slattach is not supporting X25.
-venkat
It should be trivialish to add that support, if same thing is enough what SLIP and PPP do -- turn on the serial discipline and let driver do everything.
Current slattach man-page tells that known disciplines are:
slip, cslip, adaptive, ppp
SLIP is really trivial thing in terms of what the slattach command does. External scripts and programs then do ifconfig and other magic for the network interfaces.
You could, probably, do the required moves with e.g. few lines of perl script. (Or C)
/Matti Aarnio