home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / sun / hardware / 6519 < prev    next >
Encoding:
Internet Message Format  |  1992-12-26  |  2.0 KB

  1. Xref: sparky comp.sys.sun.hardware:6519 comp.sys.sun.misc:6010 alt.sys.sun:3526 comp.sys.sun.wanted:2092 comp.unix.solaris:439
  2. Path: sparky!uunet!munnari.oz.au!yoyo.aarnet.edu.au!myall.awadi.com.au!flash.pax.tpa.com.au!britt!dclunie
  3. From: dclunie@pax.tpa.com.au (David Clunie)
  4. Newsgroups: comp.sys.sun.hardware,comp.sys.sun.misc,alt.sys.sun,comp.unix.sun,comp.sys.sun.wanted,comp.unix.solaris
  5. Subject: Need to patch ip_input.o - help wanted
  6. Date: 26 Dec 1992 09:38:37 GMT
  7. Organization: Her Master's Voice
  8. Lines: 32
  9. Distribution: world
  10. Message-ID: <1hh96uINNk9k@flash.pax.tpa.com.au>
  11. Reply-To: dclunie@pax.tpa.com.au
  12. NNTP-Posting-Host: britt.pax.tpa.com.au
  13.  
  14. I am trying to implement some ip packet filtering on a sparc running OS4.1.2
  15. that is used as a sort of gateway.
  16.  
  17. I was referred to a program called "screend" that Jeffrey Mogul implemented for
  18. Ultrix many years ago, that has a simple filter in the kernel that shunts packets
  19. out to a user process for decisions.
  20.  
  21. It works by intercepting calls to ip_forward() that occur in ip_intr(), and
  22. selectively passing on packets to the real ip_forward().
  23.  
  24. My problem is that I don't have a source license for SunOS and so:
  25.  
  26. 1. I need to check that the arguments to ip_forward() are the same as in the BSD
  27. derived Ultrix.
  28.  
  29. 2. If I can't get some kind soul with a source license to send me a copy of
  30. that one module (ip_input.c) (anyone at Sun listening ? want to send me one
  31. module from an obsolete os ? :) actually two, I need if.c as well), then
  32.  
  33. How does one patch in a new routine into a precompiled module ? I know how
  34. to use adb to find the call, but I am not sure how to patch in a reference to
  35. an alternative routine in another module, and add that reference to the symbol
  36. table and relocation information in the precompiled ip_input.c.
  37.  
  38. Any hints would be gratefully appreciated. This is just a one-of but it would be
  39. nice to get it working.
  40.  
  41. Could you cc any replies to me via email ? My news is a bit retarded at the
  42. moment :( 
  43.  
  44. Thanks ... david
  45.  
  46.