Subject: CVS commit: src/sys/net
To: None <source-changes@NetBSD.org>
From: David Young <dyoung@netbsd.org>
List: source-changes
Date: 08/24/2007 23:38:32
Module Name:	src
Committed By:	dyoung
Date:		Fri Aug 24 23:38:32 UTC 2007

Modified Files:
	src/sys/net: if_gre.c if_gre.h

Log Message:
Overhaul gre(4), especially the GRE in UDP bits:

* Create the kernel thread in gre_clone_create() instead of trying
  to create it in gre_ioctl().  (Thanks ad@ for suggesting it, and
  pointing out that I can't kthread_create while I hold a spin
  lock.)  Run the thread always, but put it to sleep while the
  gre(4) is not in UDP mode.

* Use sockaddr_in_init().

* Move some thread state off of the stack and into the softc.

* Extract subroutines gre_do_recv(), gre_do_send(), and gre_reconf()
  from gre_thread1(), making the code more readable.


To generate a diff of this commit:
cvs rdiff -r1.101 -r1.102 src/sys/net/if_gre.c
cvs rdiff -r1.22 -r1.23 src/sys/net/if_gre.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.