home *** CD-ROM | disk | FTP | other *** search
- 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
- Path: sparky!uunet!munnari.oz.au!yoyo.aarnet.edu.au!myall.awadi.com.au!flash.pax.tpa.com.au!britt!dclunie
- From: dclunie@pax.tpa.com.au (David Clunie)
- Newsgroups: comp.sys.sun.hardware,comp.sys.sun.misc,alt.sys.sun,comp.unix.sun,comp.sys.sun.wanted,comp.unix.solaris
- Subject: Need to patch ip_input.o - help wanted
- Date: 26 Dec 1992 09:38:37 GMT
- Organization: Her Master's Voice
- Lines: 32
- Distribution: world
- Message-ID: <1hh96uINNk9k@flash.pax.tpa.com.au>
- Reply-To: dclunie@pax.tpa.com.au
- NNTP-Posting-Host: britt.pax.tpa.com.au
-
- I am trying to implement some ip packet filtering on a sparc running OS4.1.2
- that is used as a sort of gateway.
-
- I was referred to a program called "screend" that Jeffrey Mogul implemented for
- Ultrix many years ago, that has a simple filter in the kernel that shunts packets
- out to a user process for decisions.
-
- It works by intercepting calls to ip_forward() that occur in ip_intr(), and
- selectively passing on packets to the real ip_forward().
-
- My problem is that I don't have a source license for SunOS and so:
-
- 1. I need to check that the arguments to ip_forward() are the same as in the BSD
- derived Ultrix.
-
- 2. If I can't get some kind soul with a source license to send me a copy of
- that one module (ip_input.c) (anyone at Sun listening ? want to send me one
- module from an obsolete os ? :) actually two, I need if.c as well), then
-
- How does one patch in a new routine into a precompiled module ? I know how
- to use adb to find the call, but I am not sure how to patch in a reference to
- an alternative routine in another module, and add that reference to the symbol
- table and relocation information in the precompiled ip_input.c.
-
- Any hints would be gratefully appreciated. This is just a one-of but it would be
- nice to get it working.
-
- Could you cc any replies to me via email ? My news is a bit retarded at the
- moment :(
-
- Thanks ... david
-
-