home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / linux / 16517 < prev    next >
Encoding:
Internet Message Format  |  1992-11-12  |  4.4 KB

  1. Path: sparky!uunet!mcsun!ub4b!news.cs.kuleuven.ac.be!blekul11!alijku11!k111114
  2. Organization: Johannes Kepler University Linz - Computing Center
  3. Date: Thursday, 12 Nov 1992 05:36:30 CET
  4. From: <K111114@ALIJKU11.BITNET>
  5. Message-ID: <92317.053630K111114@ALIJKU11.BITNET>
  6. Newsgroups: comp.os.linux
  7. Subject: tcp/ip & wd8003 card: Solution
  8. Lines: 84
  9.  
  10. finally I've got linux to work with my funny configuration, that is,
  11. a serial line (com2) AND the wd-card sharing the same irq (3).
  12. a) I have disabled the serial lines. instead of
  13.  tty0s 0x2e8 irq 3   (or whatsoever)
  14.    now a :
  15.  serial: rs_init disabled.
  16.  appears at boot-time.
  17.  I've changed this in kernel/chr_drv/serial.c
  18.  also, it's usefull to set #define NR_PORTS to 1 if u don't want the com2,
  19.  but still the com1 ... am I wrong ? for the machine here, I've set NR_PORTS 0
  20. I dunno if the serials can be enabled, but i will surely try it out.
  21.  
  22. b) now to the confusing thing which really got it running.
  23.   I've been debugging the kernel for days, and couldn't find any error :-)
  24.   I've been hacking on device structures until finally ... i found that
  25.   wd8003_init is NEVER called. This flag is not set from by the kernel, but
  26.   by the interface configuration program !!! ARGH! I've been looking in the
  27.   wrong file. WHENEVER you specify the -d flag in /usr/etc/inet/config.c,
  28.   ipc.up is set to 0. And, (methinks in net/tcp/ip.c ?) never calls
  29.   dev->open(dev), when ipc.up = 0. So I just altered config.c, where the
  30.   case 'd' set's ipc.up. That got it working. It still is slow, and takes a
  31.   lot of time till the connection is established (so there still is something
  32.   fishy), but once you are in, it is quite fast ! Well, I don't know if
  33.   wd8003_open should be called somewhere else than from ifconfig ? Anyway, it
  34.   is not called ... i've monitored it (using printk).
  35.  
  36. c) I'm not sure of this are bugs, or if this is right ...
  37.    when monitoring we.c, i found that even after you have killed inetd,
  38.    still IRQ3s are generated. Should there be a wd8003_close somewhere ?
  39.    also, I get a lot's of "packet meant for someone else", but I'm sure that
  40.    the destination adresses shown are not within our sub-subnet's range ...
  41.    sample:
  42.    saddr = 29044e8c, daddr = 1e034e8c looks _perfectly_ right, since
  43.            140.78.4.41  (PC)  140.78.3.30 is the SunSparc I'm on.
  44.    but:
  45.    saddr = 62754e8c, daddr = ff754e8c doesn't look like it should be sent to
  46.                                       sent to our subnet. (which is 140.78.4.0)
  47.    Someone (?) is doing a broadcast, and the broadcastmsg reaches our subnet???
  48.    Gonna write some code to look at the _data_ contained in there :-)
  49.    more fun is:
  50.    saddr = 2684e8c, daddr = ffff4e9c ... someone is broadcasting to all the
  51.    whole uni-net ?! Wonder what's _that_ is ...
  52.  
  53.    Either our uni-net is totally misconfigured (which I would believe
  54.    immediately), or we.c is fishy (which might be), or I'm just an ignorant
  55.    not knowing what these broadcasts mean (which is very possible, too :-)
  56. The ip-header for these packets looks like:
  57.    ihl=5, version=4, tos=0, tot_len=88,
  58.    id=ac6e, ttl=255, prot=17, check=e948.
  59.  
  60.    What is prot=17 please ? (I think I understand the rest...)
  61.    i.e., doing a "ping 140.78.4.41" shows the following ip-header:
  62.    ihl=5, version=4, ....
  63.    ................  prot=1  (for ping)
  64.   (gonna look it up in "internetworking with tcp/ip" anyway :)
  65.  
  66.    Next thing, I get 5 IRQ3 in a row, whithout an ip-header being built ?
  67.    what does that mean ?
  68.  
  69.    please let me add another word about the long login-time ...
  70.  
  71.    On the Sun I type                 On the Pc appears:
  72.    telnet 140.78.4.41                ip-build-header, type=6
  73.                                      ip-header, prot=17
  74.  
  75.    Connected to 140.78.4.41
  76.    Escape character is '^]'
  77.  
  78.   now, the whole thing hangs ... I don't get a login prompt ! But the
  79.   connection actually IS up, because every time I
  80.  
  81.     hit any key                      ip-build-header, type=6
  82.                                      ip-header, prot=17         are displayed.
  83.  
  84.    also, some unprocessed irq3s are generated.
  85.    Then, after a while, the "login:" appears, as many times as I have hit
  86.    the enter-key before when "Connected" has been displayed.
  87.  
  88.    Last not least, please anyone give me a pointer where I can get an ftpd :-)
  89.  
  90.    and: anyone knows if the ne2000 card is register-compatible to the wd80xx ?
  91.  
  92.  When you read this line now, I wanna thank you for your patience :-)
  93.  Herp ( happy like a child about tcp/ip )
  94.