From: hodgen@infko.uni-koblenz.de Subject: TCPIP and config.c Date: 2 Oct 1992 08:44:39 GMT
Hello all,
Last night I got the 0.98 kernel, compiled it with the tcp stuff on, reinstalled
the tcpip packed (to get the /usr/etc/inet stuff and config.c source). I had
to change all references to IP_TCP, IP_UDP and IP_ICMP in the net/tcp
directory to read IPPROTO_TCP, IPPROTO_UDP, IPPROTO_ICMP. Upon rebooting
the kernel found the card and said it had 32 pages of memory but the config
failed with the message -
socket: Protocol not supported
After about an hour and a half of grubbing around in the kernel source, include
files and addind printk's I found the problem. In config.c change the line
where it gets the handle to the socket
s = socket(AF_INET, SOCK_STREAM, PF_INET);
to read
s = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
Then it all worked! Is the above a know problem, will it be changed for the next
release? All this was done on a virgin system. The kernel sources first on the
dirve, then gcc jump 4.1, the include -> linux links and then compile so I
thought I should post and let you know that the IP stuff doesn't work "out of
the box".
Please don't interpret this as an attack, flame or winge, I'm trying to be
helpfull.
Last but not least, Many thanks to all involved in developing Linux (especially
Linus of course - our Linux machine here is called linus, so late at night I
couldn't think of anything better :-).
Bye.
-- Wayne Hodgen | hodgen@infko.uni-koblenz.de | Opinions (c) Me 1991 | Intel SX Uni Koblenz, | (..!unido!infko!hodgen) | Keeper of the Scrolls, | Just Rheinau 3-4, | Voice: +49 261 9119-645 | Defender of the Net, | say 5400 Koblenz. | Fax: +49 261 9119-499 | His name is "root". | NO!!!