home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / bsd / 4052 < prev    next >
Encoding:
Text File  |  1992-08-12  |  1.5 KB  |  63 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!psgrain!percy!percival.rain.com!nerd
  3. From: nerd@percival.rain.com (Michael Galassi)
  4. Subject: PATCH for Routing Problem on two wd8003e with 386BSD
  5. Message-ID: <1992Aug12.204238.5143@percy.rain.com>
  6. Sender: news@percy.rain.com (News maintainer)
  7. Nntp-Posting-Host: percival.rain.com
  8. Organization: Percy's mach, Portland, OR
  9. References: <1992Aug6.215319.30440@davidsys.com>
  10. Date: Wed, 12 Aug 1992 20:42:38 GMT
  11. Lines: 50
  12.  
  13. sung@davidsys.com writes:
  14.  
  15. >I could route packets from wd8003e to 3c503 interface card.
  16. >However I couldn't route packets from wd8003e to another
  17. >wd8003e card. 
  18. >I've looked thru "/usr/src/sys/i386/isa/if_we.c".
  19. >The code was all right for the multiple WD cards.
  20.  
  21. NOT!  the fix to if_we.c is at the end of this post.
  22.  
  23. >I've tried also "gated" instead of "routed".
  24.  
  25. running gated is a good idea but irelevant to the problem at hand.
  26.  
  27. >Please help.
  28.  
  29. OK, OK...
  30.  
  31. This patch is quite trivial but I don't understand why the error was
  32. made in the first place.  I intended to test this further before
  33. posting it but if others have the same problem...
  34.  
  35. --- cut here ---
  36. 83d82
  37. < #include "i386/isa/iomacr.h"
  38. 300c299
  39. < static Bdry[NWE];    /* Need one of these per device -mng 920811 */
  40. ---
  41. > static Bdry;
  42. 324c323
  43. <     Bdry[unit] = 0;
  44. ---
  45. > Bdry = 0;
  46. 432a432,433
  47. >     unit =0;
  48. >  
  49. 518,519c519,520
  50. <     if(Bdry[unit])
  51. <         bnry =Bdry[unit];
  52. ---
  53. > if(Bdry)
  54. >     bnry =Bdry;
  55. 563c564
  56. <     Bdry[unit] = bnry;
  57. ---
  58. > Bdry = bnry;
  59.  
  60. --- cut here too ---
  61. -- 
  62. Michael Galassi -- nerd@percival.rain.com
  63.