DragonFly BSD

CVS log for src/sys/net/ip6fw/ip6_fw.c

[BACK] Up to [DragonFly] / src / sys / net / ip6fw

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.19: download - view: text, markup, annotated - select for diffs
Fri Mar 7 11:34:20 2008 UTC (6 years, 7 months ago) by sephe
Branches: MAIN
CVS tags: HEAD, DragonFly_RELEASE_2_0_Slip, DragonFly_RELEASE_2_0, DragonFly_Preview
Diff to: previous 1.18: preferred, unified
Changes since revision 1.18: +4 -2 lines
Parallelize ifnet.if_addrhead accessing by duplicating the list itself
on each CPU, each list element points to ifaddr:
- Add SI_SUB_PRE_DRIVERS before SI_SUB_DRIVERS, so action could be taken
  before drivers' initialization (mainly before NIC driver's if_attach())
- Move netisr_init() to the FIRST of SI_SUB_PRE_DRIVERS, so that
  netmsg_service_port_init() could be called in earlier stage of system
  initialization.
- Create one thread on each CPU to propagate changes to ifnet.if_addrhead.
  Their thread ports are registered with netmsg_service_port_init() for
  port syncing operation.
- Change to ifnet.if_addrhead begins in netisr0, i.e. serial of changes
  to ifnet.if_addrhead are serialized by netisr0
- ifaddr's refcnt is moved to its list elements, i.e. per-CPU refcnt.
  They are initialized to 1 instead of 0.
- A magic field is added to ifaddr list element to make sure that IFAREF
  and IFAFREE are called on valid ifaddr list element.  This field is
  initialized to a magic value and is wiped out once the list element's
  refcnt drops to 0
- To close the gap between testing and freeing, once the ifaddr list
  element's refcnt drops to 0, ifa_portfn(0) (a thread's port on CPU0) is
  poked to check whether ifaddr is referenced on other CPUs, if not, then
  ifaddr is freed on ifa_portfn(0)

Reviewed-by: dillon@ (earlier version)

Revision 1.18: download - view: text, markup, annotated - select for diffs
Fri Dec 22 23:44:56 2006 UTC (7 years, 10 months ago) by swildner
Branches: MAIN
CVS tags: DragonFly_RELEASE_1_8_Slip, DragonFly_RELEASE_1_8, DragonFly_RELEASE_1_12_Slip, DragonFly_RELEASE_1_12, DragonFly_RELEASE_1_10_Slip, DragonFly_RELEASE_1_10
Diff to: previous 1.17: preferred, unified
Changes since revision 1.17: +8 -8 lines
Rename printf -> kprintf in sys/ and add some defines where necessary
(files which are used in userland, too).

Revision 1.17: download - view: text, markup, annotated - select for diffs
Wed Dec 20 18:14:42 2006 UTC (7 years, 10 months ago) by dillon
Branches: MAIN
Diff to: previous 1.16: preferred, unified
Changes since revision 1.16: +20 -20 lines
Rename sprintf  -> ksprintf
Rename snprintf -> knsprintf

Make allowances for source files that are compiled for both userland and
the kernel.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Wed Dec 13 21:58:52 2006 UTC (7 years, 10 months ago) by dillon
Branches: MAIN
Diff to: previous 1.15: preferred, unified
Changes since revision 1.15: +1 -1 lines
rename sscanf -> ksscanf
rename vsscanf -> kvsscanf
rename fnmatch -> kfnmatch
rename qsort -> kqsort

Revision 1.15: download - view: text, markup, annotated - select for diffs
Tue Sep 5 00:55:47 2006 UTC (8 years, 1 month ago) by dillon
Branches: MAIN
Diff to: previous 1.14: preferred, unified
Changes since revision 1.14: +10 -10 lines
Rename malloc->kmalloc, free->kfree, and realloc->krealloc.  Pass 1

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sat Jan 14 11:05:18 2006 UTC (8 years, 9 months ago) by swildner
Branches: MAIN
CVS tags: DragonFly_RELEASE_1_6_Slip, DragonFly_RELEASE_1_6
Diff to: previous 1.13: preferred, unified
Changes since revision 1.13: +6 -6 lines
* Remove (void) casts for discarded return values.

* Put function types on separate lines.

* Ansify function definitions.

In-collaboration-with: Alexey Slynko <slynko@tronet.ru>

Revision 1.13: download - view: text, markup, annotated - select for diffs
Wed Jun 15 17:12:24 2005 UTC (9 years, 4 months ago) by joerg
Branches: MAIN
CVS tags: DragonFly_RELEASE_1_4_Slip, DragonFly_RELEASE_1_4
Diff to: previous 1.12: preferred, unified
Changes since revision 1.12: +16 -20 lines
Convert to critical sections.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Thu Feb 17 13:59:59 2005 UTC (9 years, 8 months ago) by joerg
Branches: MAIN
CVS tags: DragonFly_Stable, DragonFly_RELEASE_1_2_Slip, DragonFly_RELEASE_1_2
Diff to: previous 1.11: preferred, unified
Changes since revision 1.11: +1 -1 lines
GCC supports two pseudo variables to get the function name, __FUNCTION__
and __func__. The latter is C99, prefer that.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue Dec 28 22:20:53 2004 UTC (9 years, 10 months ago) by hsu
Branches: MAIN
Diff to: previous 1.10: preferred, unified
Changes since revision 1.10: +2 -4 lines
FreeBSD PR:  kern/54874
  ip6fw does not recognize ESP packets correctly when the packets are specified
  as protocol 50 (or "ESP") by the ip6fw command.  For example, even if the
  following line is installed:

  add pass esp from any to any

  The kernel does not apply this rule to IPv6 ESP packets.  Instead, we need
  to specify like this:

  add pass all from any to any ipv6options esp

Submitted by:  Hiroki Sato <hrs@allbsd.org>
Obtained from:  FreeBSD rev 1.2.2.10 commit by ume@freebsd.org from
		submisssion by JINMEI Tatuya <jinmei@shuttle.wide.toshiba.co.jp>

Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon Aug 2 13:22:33 2004 UTC (10 years, 3 months ago) by joerg
Branches: MAIN
CVS tags: DragonFly_Snap29Sep2004, DragonFly_Snap13Sep2004
Diff to: previous 1.9: preferred, unified
Changes since revision 1.9: +5 -7 lines
Change (almost) all references to tqh_first and tqe_next and tqe_prev
to the correct TAILQ macros. Exceptions are contrib/ipfilter, which will
be handled separately, and dev/misc/labpc, which makes some very wiered
things and therefore needs much more care.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Fri Jul 23 14:14:30 2004 UTC (10 years, 3 months ago) by joerg
Branches: MAIN
Diff to: previous 1.8: preferred, unified
Changes since revision 1.8: +2 -2 lines
Remove usage of NTOHS / NTOHL / HTONS / HTONL.

Discussed-with: hmp

Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed Jun 2 14:42:58 2004 UTC (10 years, 5 months ago) by eirikn
Branches: MAIN
CVS tags: DragonFly_1_0_REL, DragonFly_1_0_RC1, DragonFly_1_0A_REL
Diff to: previous 1.7: preferred, unified
Changes since revision 1.7: +4 -4 lines
Change mbug allocation flags from M_ to MB_ to avoid confusion with malloc
flags.

Requested by: Jeffrey Hsu

Revision 1.7: download - view: text, markup, annotated - select for diffs
Thu Apr 22 04:22:00 2004 UTC (10 years, 6 months ago) by dillon
Branches: MAIN
Diff to: previous 1.6: preferred, unified
Changes since revision 1.6: +2 -8 lines
M_NOWAIT -> M_WAITOK or M_INTWAIT conversions.  There is a whole lot of net
code that is improperly using M_NOWAIT.  Also remove now unneeded NULL checks
since malloc will panic rather then return NULL when M_NULLOK is not set.

Use M_INTWAIT|M_NULLOK in some cases (such as route table allocation) in
order to allow malloc to return NULL when the limit for the malloc type
is reached.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Tue Jan 6 03:17:26 2004 UTC (10 years, 9 months ago) by dillon
Branches: MAIN
Diff to: previous 1.5: preferred, unified
Changes since revision 1.5: +9 -6 lines
if_xname support Part 2/2: Convert remaining netif devices and implement full
support for if_xname.  Restructure struct ifnet in net/if_var.h, pulling in
a few minor additional changes from current including making if_dunit an int,
and making if_flags an int.

Submitted-by: Max Laier <max@love2party.net>

Revision 1.5: download - view: text, markup, annotated - select for diffs
Tue Aug 26 20:49:48 2003 UTC (11 years, 2 months ago) by rob
Branches: MAIN
Diff to: previous 1.4: preferred, unified
Changes since revision 1.4: +16 -16 lines
__P() removal

Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Aug 7 21:17:29 2003 UTC (11 years, 2 months ago) by dillon
Branches: MAIN
Diff to: previous 1.3: preferred, unified
Changes since revision 1.3: +1 -1 lines
kernel tree reorganization stage 1: Major cvs repository work (not logged as
commits) plus a major reworking of the #include's to accomodate the
relocations.

    * CVS repository files manually moved.  Old directories left intact
      and empty (temporary).

    * Reorganize all filesystems into vfs/, most devices into dev/,
      sub-divide devices by function.

    * Begin to move device-specific architecture files to the device
      subdirs rather then throwing them all into, e.g. i386/include

    * Reorganize files related to system busses, placing the related code
      in a new bus/ directory.  Also move cam to bus/cam though this may
      not have been the best idea in retrospect.

    * Reorganize emulation code and place it in a new emulation/ directory.

    * Remove the -I- compiler option in order to allow #include file
      localization, rename all config generated X.h files to use_X.h to
      clean up the conflicts.

    * Remove /usr/src/include (or /usr/include) dependancies during the
      kernel build, beyond what is normally needed to compile helper
      programs.

    * Make config create 'machine' softlinks for architecture specific
      directories outside of the standard <arch>/include.

    * Bump the config rev.

    WARNING! after this commit /usr/include and /usr/src/sys/compile/*
    should be regenerated from scratch.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue Jul 29 12:51:30 2003 UTC (11 years, 3 months ago) by hmp
Branches: MAIN
Diff to: previous 1.2: preferred, unified
Changes since revision 1.2: +3 -3 lines
Kernel Police:

	- Fix Mbuf/Malloc flag misuse.
	- Remove redundant memset() redifiniton (ng_l2tp.c)

Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Jun 17 04:28:52 2003 UTC (11 years, 4 months ago) by dillon
Branches: MAIN
CVS tags: PRE_MP
Diff to: previous 1.1: preferred, unified
Changes since revision 1.1: +1 -0 lines
Add the DragonFly cvs id and perform general cleanups on cvs/rcs/sccs ids.  Most
ids have been removed from !lint sections and moved into comment sections.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Tue Jun 17 02:55:36 2003 UTC (11 years, 4 months ago) by dillon
Branches: MAIN
CVS tags: FREEBSD_4_FORK
import from FreeBSD RELENG_4 1.2.2.9

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options