[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] slattach



Hi,

I finally solved that damned 1.16.x release SLIP problem, the slattach binary, 
to be concrete. I've got upset about non-sense error message 'cannot link to 
an interface: cannot allocate memory' so I opened qed and found the problem 
(open source rulez ;) -- I can't even believe how it worked in previous 
builds. I attach the diff.

The "funny" thing is my serial link still doesn't work -- slattach doesn't 
complain anymore but the link is dead (that means there's sl0 inet device, 
there are IPs assigned but ping to remote host stops by message: "PING 
192.168.1.2 (192.168.1.2): 56 data bytes" -- .2 is the remote host). I use 
modem2 both on my falcon and megaste, on megaste's side there's sting 
running, on the falcon's side there's freemint, 115200 Bds, everything from 
easymint 1.63.

If I use sting on falcon, I can ping each other, if I use slattach under 
freemint, no ping is possible. Is my assumption both sting and mintnet are 
compatible stacks, wrong?

I'll try another speeds / ports, we'll see. If someone got setup like this 
working, I'd like hear how..

-- 
MiKRO / Mystic Bytes
http://mikro.atari.org
--- slattach.c~	2007-06-25 21:13:30.000000000 +0200
+++ slattach.c	2007-06-25 21:13:30.000000000 +0200
@@ -122,7 +122,6 @@
 static void
 do_link (char *device, char *name)
 {
-	extern int __libc_unix_names;  /* Secret MiNTLib feature.  */
 	struct iflink ifl;
 	int sockfd;
 	long r;
@@ -134,10 +133,7 @@
 		exit (1);
 	}
 
-	if (!__libc_unix_names)
-		unx2dos (device, ifl.device);
-	else
-		strcpy (device, ifl.device);
+	strcpy (ifl.device, device);
 
 	strncpy (ifl.ifname, name, sizeof (ifl.ifname));
 	r = ioctl (sockfd, SIOCSIFLINK, &ifl);