There is a slightly newer design doc:
http://opensolaris.org/os/community/networking/files/pfhooks-design-2006-03-09.pdf

You'll find the implementation tracks it pretty well with only a few
diffs...

At this point, the best how-to documentation is in /usr/include/sys

   - neti.h
   - hook.h
   - hook_impl.h
   - any other headers that they lead you to

Also, make sure and use the excellent /usr/include/ip_compat.h. Even if you
don't have BSD or Linux porting worries, it provides a lot of insight into
mblk handling and structures.

I started with the driver template in the docs.sun tutorial and peeked at
ipfilter's MAKEFILE to figure out the appropriate kernel compiler switches.

If you have Sparc hardware, use a compiler that can produce a 64bit target.
I initially used an 32bit x86 image running in parallels on a Mac Book Pro
and switched to Sparc Ultra later with no real issues. In both cases I used
cc from SunStudio.

Fred

On 9/28/07, Cyril Plisko <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I am looking for the current Packet Filtering Hooks documentation.
> The latest document I could find [0] seems to be somewhat dated
> and doesn't include network stack, for example. Also I've read that
> PFH framework was backported to Solaris 10 and appeared in U4.
> How close the code in Nevada to S10U4 ?
>
> Thanks in advance,
>
>
> [0]
> http://opensolaris.org/os/community/networking/files/pfhooks-2006-05-10.pdf
>
> --
> Regards,
>         Cyril
> _______________________________________________
> networking-discuss mailing list
> [email protected]
>
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to