Help with X.25 tests
A message that is not in the archive (sent off-list or not yet received): [email protected]
-----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:[email protected]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Made with pgp4pine 1.76
iD8DBQFDwMMrkkg3QInH2uURAqdfAKDYaBlsPHkEt97Ulqe1DF0+06hkRgCgveTA WnXb46KmZ1kzC+2dZlnGuZ8=
=d5dk
-----END PGP SIGNATURE-----
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 intX25_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 intdo_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
};
---------------------------------------
Quoted 8 lines · --- Jean-Francois Gobin
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1I 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
-----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:[email protected]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Made with pgp4pine 1.76
iD8DBQFDwRk/kkg3QInH2uURAhr8AJ0clG9UEbWGGZ3n4evyqHTTXXo+qACfflDP iNP9guZRtmCdrqwQoFGfQGU=
=jGXl
-----END PGP SIGNATURE-----