* Re: Help with X.25 tests
@ 2006-01-07 18:56 Bahri Okuroglu
0 siblings, 0 replies; 5+ messages in thread
From: Bahri Okuroglu @ 2006-01-07 18:56 UTC (permalink / raw)
To: Jean-Francois Gobin; +Cc: linux-x25
First, you need to use slattach to set the line
discipline of the port, you're interested in, to X25.
After that you'll have a network interface like
x25asy0, which you should take up and set some routes.
In the kernel, LAPB is configured as DTE by default (
http://lxr.linux.no/source/net/lapb/lapb_iface.c#L135
and http://lxr.linux.no/source/include/net/lapb.h#L58
). If you need your box to act as DCE, you either need
to change this default behavior or enable the user to
be able to change it.
I'm not an expert on these issues, but the code looks
like for testing issues as noted at the top of the
source code. For example it does not implement CRC and
does only byte stuffıng, not bit stuffing. Do you
know that Cisco can talk to it?
Good luck,
> Jean-Francois Gobin <gobin@gobinjf.be> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello all,
>
> I'm trying to setup a X.25 connection between a
> Cisco and a linux box
> through a serial port (Async /dev/ttyS0)
>
> I'have the following configuration :
>
> Cisco --Cisco Cable DCE--> Linux BOX
>
> So, for now what I'm looking for is that I can't
> manage to even have my
> interface set up in X.25.
>
> I'm trying using x25_asy, but I didn't find where to
> specify the serial
> line to use.
>
> Help! Help! Help!
>
> Regards,
> jF
>
> - ----------
> Jean-Francois Gobin - Administrateur gobinjf.be
> http://www.gobinjf.be mailto:gobin@gobinjf.be
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (GNU/Linux)
> Comment: Made with pgp4pine 1.76
>
>
iD8DBQFDwAKDkkg3QInH2uURAu00AJ0WYFFxSbaFXqLVfKTDIn/zRy4cRQCfSV/B
> Uh63S3+cgkBfbIRwHycxgLU=
> =X64R
> -----END PGP SIGNATURE-----
>
> -
> To unsubscribe from this list: send the line
> "unsubscribe linux-x25" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at
> http://vger.kernel.org/majordomo-info.html
>
>
>
>
> ---------------------------------
> Yahoo! DSL Something to write home about. Just
> $16.99/mo. or less
__________________________________________
Yahoo! DSL – Something to write home about.
Just $16.99/mo. or less.
dsl.yahoo.com
^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <20060107185036.24242.qmail@web54113.mail.yahoo.com>]
* Re: Help with X.25 tests
[not found] <20060107185036.24242.qmail@web54113.mail.yahoo.com>
@ 2006-01-08 7:45 ` Jean-Francois Gobin
2006-01-08 10:41 ` Bahri Okuroglu
0 siblings, 1 reply; 5+ messages in thread
From: Jean-Francois Gobin @ 2006-01-08 7:45 UTC (permalink / raw)
To: linux-x25
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I must miss something :
# lsmod
Module Size Used by
x25 61552 0
x25_asy 15088 0
lapb 26097 1 x25_asy
ipv6 371552 10
ohci_hcd 26428 0
usbcore 161452 3 ohci_hcd
cy82c693 6928 0
tulip 71016 0
de4x5 73904 0
crc32 5376 2 tulip,de4x5
tsdev 10216 0
evdev 12664 0
psmouse 28824 0
ide_disk 26360 0
ide_cd 56640 0
ide_core 175468 3 cy82c693,ide_disk,ide_cd
cdrom 53920 1 ide_cd
ext3 170448 3
jbd 79992 1 ext3
sd_mod 26985 9
qla1280 136448 0
scsi_mod 161000 2 sd_mod,qla1280
unix 37640 46
font 9224 0
tgafb 23632 0
cfbcopyarea 7968 1 tgafb
cfbimgblt 4712 1 tgafb
cfbfillrect 6912 1 tgafb
# slattach -s 9600 -p x25 /dev/ttyS0
Cannot change line discipline to `x25'.
On Sat, 7 Jan 2006, Bahri Okuroglu wrote:
- ----------
Jean-Francois Gobin - Administrateur gobinjf.be
http://www.gobinjf.be mailto:gobin@gobinjf.be
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Made with pgp4pine 1.76
iD8DBQFDwMMrkkg3QInH2uURAqdfAKDYaBlsPHkEt97Ulqe1DF0+06hkRgCgveTA
WnXb46KmZ1kzC+2dZlnGuZ8=
=d5dk
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Help with X.25 tests
2006-01-08 7:45 ` Jean-Francois Gobin
@ 2006-01-08 10:41 ` Bahri Okuroglu
2006-01-08 13:52 ` Jean-Francois Gobin
0 siblings, 1 reply; 5+ messages in thread
From: Bahri Okuroglu @ 2006-01-08 10:41 UTC (permalink / raw)
To: Jean-Francois Gobin, linux-x25
Possibly there is some modified slattach to support
x25_asy, but I never could find it, and I did modified
it for my own purposes.
Download the slattach code and put below in a file
(say x25asy.c) in the lib folder. Add your
x25asy_hwtype struct to the hw.c file also, and
re-build slattach.
Mine version has a bit more code, to support DCE and
DTE operations, and below code is extracted from my
code and not compiled and not tested. FYI
--------------------------------
#include "config.h"
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <linux/if.h>
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
#include <string.h>
#include <termios.h>
#include <unistd.h>
#include <linux/if_arp.h>
#include "lapb.h"
#include "support.h"
#include "pathnames.h"
#include "intl.h"
#define EXTERN
/* Set the line discipline of a terminal line. */
static int
X25_set_disc(int fd, int disc)
{
if (ioctl(fd, TIOCSETD, &disc) < 0) {
fprintf(stderr, _("X25_set_disc(%d): %s\n"), disc,
strerror(errno));
return(-errno);
}
return(0);
}
static int
do_x25(int fd)
{
if (X25_set_disc(fd, N_X25) < 0) return(-1);
return(0);
}
struct hwtype x25asy_hwtype = {
"x25asy", NULL, ARPHRD_X25, 0,
NULL, NULL, NULL, do_x25
};
---------------------------------------
--- Jean-Francois Gobin <gobin@gobinjf.be> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I must miss something :
>
> # slattach -s 9600 -p x25 /dev/ttyS0
> Cannot change line discipline to `x25'.
>
__________________________________________
Yahoo! DSL – Something to write home about.
Just $16.99/mo. or less.
dsl.yahoo.com
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Help with X.25 tests
2006-01-08 10:41 ` Bahri Okuroglu
@ 2006-01-08 13:52 ` Jean-Francois Gobin
0 siblings, 0 replies; 5+ messages in thread
From: Jean-Francois Gobin @ 2006-01-08 13:52 UTC (permalink / raw)
To: linux-x25
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Wow! Thanks for the code.
Other questions : what about xol and xot with linux ? I'm looking for some
config, but can't find anything.
jF
- ----------
Jean-Francois Gobin - Administrateur gobinjf.be
http://www.gobinjf.be mailto:gobin@gobinjf.be
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Made with pgp4pine 1.76
iD8DBQFDwRk/kkg3QInH2uURAhr8AJ0clG9UEbWGGZ3n4evyqHTTXXo+qACfflDP
iNP9guZRtmCdrqwQoFGfQGU=
=jGXl
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 5+ messages in thread
* Help with X.25 tests
@ 2006-01-07 18:03 Jean-Francois Gobin
0 siblings, 0 replies; 5+ messages in thread
From: Jean-Francois Gobin @ 2006-01-07 18:03 UTC (permalink / raw)
To: linux-x25
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello all,
I'm trying to setup a X.25 connection between a Cisco and a linux box
through a serial port (Async /dev/ttyS0)
I'have the following configuration :
Cisco --Cisco Cable DCE--> Linux BOX
So, for now what I'm looking for is that I can't manage to even have my
interface set up in X.25.
I'm trying using x25_asy, but I didn't find where to specify the serial
line to use.
Help! Help! Help!
Regards,
jF
- ----------
Jean-Francois Gobin - Administrateur gobinjf.be
http://www.gobinjf.be mailto:gobin@gobinjf.be
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Made with pgp4pine 1.76
iD8DBQFDwAKDkkg3QInH2uURAu00AJ0WYFFxSbaFXqLVfKTDIn/zRy4cRQCfSV/B
Uh63S3+cgkBfbIRwHycxgLU=
=X64R
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-01-08 13:52 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-07 18:56 Help with X.25 tests Bahri Okuroglu
[not found] <20060107185036.24242.qmail@web54113.mail.yahoo.com>
2006-01-08 7:45 ` Jean-Francois Gobin
2006-01-08 10:41 ` Bahri Okuroglu
2006-01-08 13:52 ` Jean-Francois Gobin
-- strict thread matches above, loose matches on Subject: below --
2006-01-07 18:03 Jean-Francois Gobin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox