Re: Unexpected behavior after altering inetsw[] switch table

2006-06-11 Thread Shaun Colley
Hi Max & group, > As you can see in netinet/in_proto.c, tcp does not use pr_output, but > calls > tcp_output() directly where needed. Depending on what you want to achive > it > might be enough to hack up tcp_usr_send() and replace tcp_usrreqs.pru_send > instead. Replaceing tcp_output() is not e

Unexpected behavior after altering inetsw[] switch table

2006-06-10 Thread Shaun Colley
Hi list. My system is: --- FreeBSD 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov 3 09:36:13 UTC 2005 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386 --- I'm writing a kernel module whose job is to modify the inetsw[] switch table for the IPPROTO_TCP protocol. The pr_output hook for TCP