The NetBSD Project

CVS log for src/sys/netinet/udp_usrreq.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / netinet

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.194 / (download) - annotate - [select for diffs], Tue Feb 25 18:30:12 2014 UTC (8 weeks ago) by pooka
Branch: MAIN
CVS Tags: tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, HEAD
Changes since 1.193: +3 -7 lines
Diff to previous 1.193 (colored) to selected 1.112 (colored)

Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.

Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.

Revision 1.193 / (download) - annotate - [select for diffs], Sat Jan 4 14:18:12 2014 UTC (3 months, 2 weeks ago) by pooka
Branch: MAIN
Changes since 1.192: +3 -3 lines
Diff to previous 1.192 (colored) to selected 1.112 (colored)

IPv6 UDP uses the IPv4 pcb tables, and therefore the stats, so need
to create the percpu UDPv4 counters even in a v6-only system.

Revision 1.192 / (download) - annotate - [select for diffs], Thu Jan 2 18:29:01 2014 UTC (3 months, 2 weeks ago) by pooka
Branch: MAIN
Changes since 1.191: +23 -11 lines
Diff to previous 1.191 (colored) to selected 1.112 (colored)

Allow kernels compiled with INET+INET6 to be booted as IPv4-only or IPv6-only.

Revision 1.191 / (download) - annotate - [select for diffs], Sat Nov 23 14:20:21 2013 UTC (4 months, 4 weeks ago) by christos
Branch: MAIN
Changes since 1.190: +4 -4 lines
Diff to previous 1.190 (colored) to selected 1.112 (colored)

convert from CIRCLEQ to TAILQ.

Revision 1.190.2.4 / (download) - annotate - [select for diffs], Thu Oct 17 23:52:18 2013 UTC (6 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.190.2.3: +31 -52 lines
Diff to previous 1.190.2.3 (colored) to branchpoint 1.190 (colored) next main 1.191 (colored) to selected 1.112 (colored)

Eliminate some of the splsoftnet() calls, misc clean up.

Revision 1.190.2.3 / (download) - annotate - [select for diffs], Mon Sep 23 00:57:53 2013 UTC (6 months, 4 weeks ago) by rmind
Branch: rmind-smpnet
Changes since 1.190.2.2: +58 -71 lines
Diff to previous 1.190.2.2 (colored) to branchpoint 1.190 (colored) to selected 1.112 (colored)

- Add some initial locking to the IPv4 PCB.
- Rename inpcb_lookup_*() routines to be more accurate and add comments.
- Add some comments about connection life-cycle WRT socket layer.

Revision 1.190.2.2 / (download) - annotate - [select for diffs], Wed Aug 28 15:21:48 2013 UTC (7 months, 3 weeks ago) by rmind
Branch: rmind-smpnet
Changes since 1.190.2.1: +69 -34 lines
Diff to previous 1.190.2.1 (colored) to branchpoint 1.190 (colored) to selected 1.112 (colored)

Checkpoint work in progress:
- Initial split of the protocol user-request method into the following
  methods: pr_attach, pr_detach and pr_generic for old the pr_usrreq.
- Adjust socreate(9) and sonewconn(9) to call pr_attach without the
  socket lock held (as a preparation for the locking scheme adjustment).
- Adjust all pr_attach routines to assert that PCB is not set.
- Sprinkle various comments, document some routines and their locking.
- Remove M_PCB, replace with kmem(9).
- Fix few bugs spotted on the way.

Revision 1.190.2.1 / (download) - annotate - [select for diffs], Wed Jul 17 03:16:31 2013 UTC (9 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.190: +185 -529 lines
Diff to previous 1.190 (colored) to selected 1.112 (colored)

Checkpoint work in progress:
- Move PCB structures under __INPCB_PRIVATE, adjust most of the callers
  and thus make IPv4 PCB structures mostly opaque.  Any volunteers for
  merging in6pcb with inpcb (see rpaulo-netinet-merge-pcb branch)?
- Move various global vars to the modules where they belong, make them static.
- Some preliminary work for IPv4 PCB locking scheme.
- Make raw IP code mostly MP-safe.  Simplify some of it.
- Rework "fast" IP forwarding (ipflow) code to be mostly MP-safe.  It should
  run from a software interrupt, rather than hard.
- Rework tun(4) pseudo interface to be MP-safe.
- Work towards making some other interfaces more strict.

Revision 1.187.2.1 / (download) - annotate - [select for diffs], Sun Jun 23 06:20:25 2013 UTC (10 months ago) by tls
Branch: tls-maxphys
Changes since 1.187: +29 -28 lines
Diff to previous 1.187 (colored) next main 1.188 (colored) to selected 1.112 (colored)

resync from head

Revision 1.190 / (download) - annotate - [select for diffs], Wed Jun 5 19:01:26 2013 UTC (10 months, 2 weeks ago) by christos
Branch: MAIN
CVS Tags: tls-maxphys-base, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Branch point for: rmind-smpnet
Changes since 1.189: +10 -10 lines
Diff to previous 1.189 (colored) to selected 1.112 (colored)

IPSEC has not come in two speeds for a long time now (IPSEC == kame,
FAST_IPSEC). Make everything refer to IPSEC to avoid confusion.

Revision 1.189 / (download) - annotate - [select for diffs], Wed Jun 5 00:48:32 2013 UTC (10 months, 2 weeks ago) by christos
Branch: MAIN
Changes since 1.188: +7 -3 lines
Diff to previous 1.188 (colored) to selected 1.112 (colored)

conditionalize the net traversal code on FAST_IPSEC to make rump build.

Revision 1.188 / (download) - annotate - [select for diffs], Tue Jun 4 22:47:37 2013 UTC (10 months, 2 weeks ago) by christos
Branch: MAIN
Changes since 1.187: +22 -25 lines
Diff to previous 1.187 (colored) to selected 1.112 (colored)

PR/47886: Dr. Wolfgang Stukenbrock: IPSEC_NAT_T enabled kernels may access
outdated pointers and pass ESP data to UPD-sockets.
While here, simplify the code and remove the IPSEC_NAT_T option; always
compile nat-traversal in so that it does not bitrot.

Revision 1.183.2.2 / (download) - annotate - [select for diffs], Tue Oct 30 17:22:47 2012 UTC (17 months, 3 weeks ago) by yamt
Branch: yamt-pagecache
Changes since 1.183.2.1: +2 -33 lines
Diff to previous 1.183.2.1 (colored) to branchpoint 1.183 (colored) next main 1.184 (colored) to selected 1.112 (colored)

sync with head

Revision 1.187 / (download) - annotate - [select for diffs], Fri Jun 22 14:54:35 2012 UTC (22 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-maxphys
Changes since 1.186: +2 -33 lines
Diff to previous 1.186 (colored) to selected 1.112 (colored)

PR/46602: Move the rfc6056 port randomization to the IP layer.

Revision 1.183.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:41 2012 UTC (2 years ago) by yamt
Branch: yamt-pagecache
Changes since 1.183: +5 -12 lines
Diff to previous 1.183 (colored) to selected 1.112 (colored)

sync with head

Revision 1.183.6.2 / (download) - annotate - [select for diffs], Thu Apr 5 21:33:44 2012 UTC (2 years ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.183.6.1: +4 -11 lines
Diff to previous 1.183.6.1 (colored) to branchpoint 1.183 (colored) next main 1.184 (colored) to selected 1.112 (colored)

sync to latest -current.

Revision 1.186 / (download) - annotate - [select for diffs], Thu Mar 22 20:34:39 2012 UTC (2 years, 1 month ago) by drochner
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base10
Changes since 1.185: +4 -11 lines
Diff to previous 1.185 (colored) to selected 1.112 (colored)

remove KAME IPSEC, replaced by FAST_IPSEC

Revision 1.183.6.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:35:41 2012 UTC (2 years, 2 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.183: +7 -7 lines
Diff to previous 1.183 (colored) to selected 1.112 (colored)

merge to -current.

Revision 1.185 / (download) - annotate - [select for diffs], Mon Jan 9 22:26:44 2012 UTC (2 years, 3 months ago) by liamjfoy
Branch: MAIN
CVS Tags: netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2
Changes since 1.184: +3 -3 lines
Diff to previous 1.184 (colored) to selected 1.112 (colored)

minor typo fix

Revision 1.184 / (download) - annotate - [select for diffs], Mon Dec 19 11:59:57 2011 UTC (2 years, 4 months ago) by drochner
Branch: MAIN
Changes since 1.183: +6 -6 lines
Diff to previous 1.183 (colored) to selected 1.112 (colored)

rename the IPSEC in-kernel CPP variable and config(8) option to
KAME_IPSEC, and make IPSEC define it so that existing kernel
config files work as before
Now the default can be easily be changed to FAST_IPSEC just by
setting the IPSEC alias to FAST_IPSEC.

Revision 1.183 / (download) - annotate - [select for diffs], Sat Sep 24 17:18:17 2011 UTC (2 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.182: +33 -3 lines
Diff to previous 1.182 (colored) to selected 1.112 (colored)

Add inet4 part of the rfc6056 code contributed by Vlad Balan as part of
Google SoC-2011

Revision 1.182 / (download) - annotate - [select for diffs], Sun Jul 17 20:54:53 2011 UTC (2 years, 9 months ago) by joerg
Branch: MAIN
Changes since 1.181: +2 -4 lines
Diff to previous 1.181 (colored) to selected 1.112 (colored)

Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.

Revision 1.181 / (download) - annotate - [select for diffs], Sun Jul 3 09:03:32 2011 UTC (2 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.180: +3 -2 lines
Diff to previous 1.180 (colored) to selected 1.112 (colored)

avoid an uninitialised variable warning.  this one seems a false
positive, but since it's for some hacky workaround code anyway...

Revision 1.179.6.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:09:57 2011 UTC (2 years, 10 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.179: +5 -4 lines
Diff to previous 1.179 (colored) next main 1.180 (colored) to selected 1.112 (colored)

Sync with HEAD.

Revision 1.179.4.1 / (download) - annotate - [select for diffs], Tue May 31 03:05:08 2011 UTC (2 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.179: +5 -4 lines
Diff to previous 1.179 (colored) next main 1.180 (colored) to selected 1.112 (colored)

sync with head

Revision 1.180 / (download) - annotate - [select for diffs], Tue May 3 18:28:45 2011 UTC (2 years, 11 months ago) by dyoung
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp
Changes since 1.179: +5 -4 lines
Diff to previous 1.179 (colored) to selected 1.112 (colored)

Reduces the resources demanded by TCP sessions in TIME_WAIT-state using
methods called Vestigial Time-Wait (VTW) and Maximum Segment Lifetime
Truncation (MSLT).

MSLT and VTW were contributed by Coyote Point Systems, Inc.

Even after a TCP session enters the TIME_WAIT state, its corresponding
socket and protocol control blocks (PCBs) stick around until the TCP
Maximum Segment Lifetime (MSL) expires.  On a host whose workload
necessarily creates and closes down many TCP sockets, the sockets & PCBs
for TCP sessions in TIME_WAIT state amount to many megabytes of dead
weight in RAM.

Maximum Segment Lifetimes Truncation (MSLT) assigns each TCP session to
a class based on the nearness of the peer.  Corresponding to each class
is an MSL, and a session uses the MSL of its class.  The classes are
loopback (local host equals remote host), local (local host and remote
host are on the same link/subnet), and remote (local host and remote
host communicate via one or more gateways).  Classes corresponding to
nearer peers have lower MSLs by default: 2 seconds for loopback, 10
seconds for local, 60 seconds for remote.  Loopback and local sessions
expire more quickly when MSLT is used.

Vestigial Time-Wait (VTW) replaces a TIME_WAIT session's PCB/socket
dead weight with a compact representation of the session, called a
"vestigial PCB".  VTW data structures are designed to be very fast and
memory-efficient: for fast insertion and lookup of vestigial PCBs,
the PCBs are stored in a hash table that is designed to minimize the
number of cacheline visits per lookup/insertion.  The memory both
for vestigial PCBs and for elements of the PCB hashtable come from
fixed-size pools, and linked data structures exploit this to conserve
memory by representing references with a narrow index/offset from the
start of a pool instead of a pointer.  When space for new vestigial PCBs
runs out, VTW makes room by discarding old vestigial PCBs, oldest first.
VTW cooperates with MSLT.

It may help to think of VTW as a "FIN cache" by analogy to the SYN
cache.

A 2.8-GHz Pentium 4 running a test workload that creates TIME_WAIT
sessions as fast as it can is approximately 17% idle when VTW is active
versus 0% idle when VTW is inactive.  It has 103 megabytes more free RAM
when VTW is active (approximately 64k vestigial PCBs are created) than
when it is inactive.

Revision 1.171.2.4 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:29 2010 UTC (4 years, 1 month ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.171.2.3: +8 -3 lines
Diff to previous 1.171.2.3 (colored) to branchpoint 1.171 (colored) next main 1.172 (colored) to selected 1.112 (colored)

sync with head

Revision 1.179 / (download) - annotate - [select for diffs], Wed Sep 16 15:23:05 2009 UTC (4 years, 7 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, matt-premerge-20091211, matt-mips64-premerge-20101231, jym-xensuspend-nbase, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: rmind-uvmplock, jruoho-x86intr
Changes since 1.178: +8 -3 lines
Diff to previous 1.178 (colored) to selected 1.112 (colored)

Replace a large number of link set based sysctl node creations with
calls from subsystem constructors.  Benefits both future kernel
modules and rump.

no change to sysctl nodes on i386/MONOLITHIC & build tested i386/ALL

Revision 1.171.2.3 / (download) - annotate - [select for diffs], Wed Aug 19 18:48:25 2009 UTC (4 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.171.2.2: +8 -2 lines
Diff to previous 1.171.2.2 (colored) to branchpoint 1.171 (colored) to selected 1.112 (colored)

sync with head.

Revision 1.174.2.2 / (download) - annotate - [select for diffs], Thu Jul 23 23:32:48 2009 UTC (4 years, 9 months ago) by jym
Branch: jym-xensuspend
Changes since 1.174.2.1: +8 -2 lines
Diff to previous 1.174.2.1 (colored) to branchpoint 1.174 (colored) next main 1.175 (colored) to selected 1.112 (colored)

Sync with HEAD.

Revision 1.178 / (download) - annotate - [select for diffs], Sun Jul 19 23:17:33 2009 UTC (4 years, 9 months ago) by minskim
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, jymxensuspend-base
Changes since 1.177: +8 -2 lines
Diff to previous 1.177 (colored) to selected 1.112 (colored)

Enable IP_MINTTL option for SOCK_DGRAM sockets.

Revision 1.174.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:22:28 2009 UTC (4 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.174: +8 -8 lines
Diff to previous 1.174 (colored) to selected 1.112 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.171.2.2 / (download) - annotate - [select for diffs], Mon May 4 08:14:18 2009 UTC (4 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.171.2.1: +30 -25 lines
Diff to previous 1.171.2.1 (colored) to branchpoint 1.171 (colored) to selected 1.112 (colored)

sync with head.

Revision 1.173.2.2 / (download) - annotate - [select for diffs], Tue Apr 28 07:37:23 2009 UTC (4 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.173.2.1: +8 -8 lines
Diff to previous 1.173.2.1 (colored) to branchpoint 1.173 (colored) next main 1.174 (colored) to selected 1.112 (colored)

Sync with HEAD.

Revision 1.177 / (download) - annotate - [select for diffs], Sat Apr 18 14:58:05 2009 UTC (5 years ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jym-xensuspend-base
Changes since 1.176: +4 -4 lines
Diff to previous 1.176 (colored) to selected 1.112 (colored)

Remove extra whitespace added by a stupid tool.
XXX: more in src/sys/arch

Revision 1.176 / (download) - annotate - [select for diffs], Wed Mar 18 17:06:52 2009 UTC (5 years, 1 month ago) by cegger
Branch: MAIN
Changes since 1.175: +4 -4 lines
Diff to previous 1.175 (colored) to selected 1.112 (colored)

bcopy -> memcpy

Revision 1.175 / (download) - annotate - [select for diffs], Wed Mar 18 16:00:22 2009 UTC (5 years, 1 month ago) by cegger
Branch: MAIN
Changes since 1.174: +6 -6 lines
Diff to previous 1.174 (colored) to selected 1.112 (colored)

bzero -> memset

Revision 1.173.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:20:13 2009 UTC (5 years, 3 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.173: +14 -3 lines
Diff to previous 1.173 (colored) to selected 1.112 (colored)

Sync with HEAD.

Revision 1.174 / (download) - annotate - [select for diffs], Mon Jan 19 02:27:57 2009 UTC (5 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: nick-hppapmap-base2
Branch point for: jym-xensuspend
Changes since 1.173: +14 -3 lines
Diff to previous 1.173 (colored) to selected 1.112 (colored)

Provide compatibility to the old timeval SCM_TIMESTAMP messages.

Revision 1.172.6.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:17:46 2008 UTC (5 years, 6 months ago) by haad
Branch: haad-dm
Changes since 1.172: +12 -18 lines
Diff to previous 1.172 (colored) next main 1.173 (colored) to selected 1.112 (colored)

Sync with HEAD.

Revision 1.163.14.2 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:58 2008 UTC (5 years, 6 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.163.14.1: +10 -16 lines
Diff to previous 1.163.14.1 (colored) to branchpoint 1.163 (colored) next main 1.164 (colored) to selected 1.112 (colored)

Sync with HEAD.

Revision 1.172.2.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:37:01 2008 UTC (5 years, 7 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.172: +12 -18 lines
Diff to previous 1.172 (colored) next main 1.173 (colored) to selected 1.112 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.173 / (download) - annotate - [select for diffs], Wed Aug 6 15:01:23 2008 UTC (5 years, 8 months ago) by plunky
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap
Changes since 1.172: +12 -18 lines
Diff to previous 1.172 (colored) to selected 1.112 (colored)

Convert socket options code to use a sockopt structure
instead of laying everything into an mbuf.

approved by core

Revision 1.163.14.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:25 2008 UTC (5 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.163: +62 -30 lines
Diff to previous 1.163 (colored) to selected 1.112 (colored)

Sync with HEAD.

Revision 1.168.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:30 2008 UTC (5 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.168: +20 -34 lines
Diff to previous 1.168 (colored) next main 1.169 (colored) to selected 1.112 (colored)

sync with head.

Revision 1.171.2.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:42 2008 UTC (5 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.171: +3 -8 lines
Diff to previous 1.171 (colored) to selected 1.112 (colored)

sync with head.

Revision 1.172 / (download) - annotate - [select for diffs], Sun May 4 07:22:14 2008 UTC (5 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa, haad-dm
Changes since 1.171: +3 -8 lines
Diff to previous 1.171 (colored) to selected 1.112 (colored)

Simplify the interface to netstat_sysctl() and allocate space for
the collated counters using kmem_alloc().

PR kern/38577

Revision 1.171 / (download) - annotate - [select for diffs], Sat Apr 26 08:13:59 2008 UTC (5 years, 11 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Changes since 1.170: +7 -2 lines
Diff to previous 1.170 (colored) to selected 1.112 (colored)

udp_init: don't forget to allocate udp6stat_percpu.

Revision 1.170 / (download) - annotate - [select for diffs], Thu Apr 24 11:38:38 2008 UTC (6 years ago) by ad
Branch: MAIN
Changes since 1.169: +7 -3 lines
Diff to previous 1.169 (colored) to selected 1.112 (colored)

Merge the socket locking patch:

- Socket layer becomes MP safe.
- Unix protocols become MP safe.
- Allows protocol processing interrupts to safely block on locks.
- Fixes a number of race conditions.

With much feedback from matt@ and plunky@.

Revision 1.169 / (download) - annotate - [select for diffs], Wed Apr 23 06:09:05 2008 UTC (6 years ago) by thorpej
Branch: MAIN
Changes since 1.168: +14 -32 lines
Diff to previous 1.168 (colored) to selected 1.112 (colored)

Make IPSEC and FAST_IPSEC stats per-cpu.  Use <net/net_stats.h> and
netstat_sysctl().

Revision 1.168 / (download) - annotate - [select for diffs], Tue Apr 15 04:43:25 2008 UTC (6 years ago) by thorpej
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base
Branch point for: yamt-pf42
Changes since 1.167: +11 -10 lines
Diff to previous 1.167 (colored) to selected 1.112 (colored)

Make udp6 stats per-cpu.

Revision 1.167 / (download) - annotate - [select for diffs], Tue Apr 15 03:57:04 2008 UTC (6 years ago) by thorpej
Branch: MAIN
Changes since 1.166: +4 -3 lines
Diff to previous 1.166 (colored) to selected 1.112 (colored)

Make ip6 and icmp6 stats per-cpu.

Revision 1.166 / (download) - annotate - [select for diffs], Sat Apr 12 05:58:22 2008 UTC (6 years ago) by thorpej
Branch: MAIN
Changes since 1.165: +58 -15 lines
Diff to previous 1.165 (colored) to selected 1.112 (colored)

Make IP, TCP, UDP, and ICMP statistics per-CPU.  The stats are collated
when the user requests them via sysctl.

Revision 1.165 / (download) - annotate - [select for diffs], Tue Apr 8 23:37:43 2008 UTC (6 years ago) by thorpej
Branch: MAIN
Changes since 1.164: +3 -3 lines
Diff to previous 1.164 (colored) to selected 1.112 (colored)

Change IPv6 stats from a structure to an array of uint64_t's.

Note: This is ABI-compatible with the old ip6stat structure; old netstat
binaries will continue to work properly.

Revision 1.164 / (download) - annotate - [select for diffs], Sun Apr 6 20:17:27 2008 UTC (6 years ago) by thorpej
Branch: MAIN
Changes since 1.163: +16 -15 lines
Diff to previous 1.163 (colored) to selected 1.112 (colored)

Change UDP stats from a structure to an array of uint64_t's.

Note: This is ABI-compatible with the old icmpstat structure; old netstat
binaries will continue to work properly.

Revision 1.160.8.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:57:31 2008 UTC (6 years, 3 months ago) by matt
Branch: matt-armv6
Changes since 1.160.8.1: +3 -3 lines
Diff to previous 1.160.8.1 (colored) to branchpoint 1.160 (colored) next main 1.161 (colored) to selected 1.112 (colored)

sync with HEAD

Revision 1.162.6.1 / (download) - annotate - [select for diffs], Sat Dec 8 18:21:14 2007 UTC (6 years, 4 months ago) by mjf
Branch: mjf-devfs
Changes since 1.162: +3 -3 lines
Diff to previous 1.162 (colored) next main 1.163 (colored) to selected 1.112 (colored)

Sync with HEAD.

Revision 1.138.2.5 / (download) - annotate - [select for diffs], Fri Dec 7 17:34:33 2007 UTC (6 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.138.2.4: +3 -3 lines
Diff to previous 1.138.2.4 (colored) next main 1.139 (colored) to selected 1.112 (colored)

sync with head

Revision 1.160.6.2 / (download) - annotate - [select for diffs], Mon Dec 3 16:15:11 2007 UTC (6 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.160.6.1: +3 -3 lines
Diff to previous 1.160.6.1 (colored) to branchpoint 1.160 (colored) next main 1.161 (colored) to selected 1.112 (colored)

Sync with HEAD.

Revision 1.163 / (download) - annotate - [select for diffs], Tue Nov 27 22:45:30 2007 UTC (6 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jmcneill-pm-base, hpcarm-cleanup-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, ad-socklock-base1
Branch point for: mjf-devfs2
Changes since 1.162: +3 -3 lines
Diff to previous 1.162 (colored) to selected 1.112 (colored)

require that the options argument is the right size, not that it is greater
or equal to the requested size. Suggested by Matt Thomas.

Revision 1.160.8.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:33:54 2007 UTC (6 years, 5 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.160: +6 -6 lines
Diff to previous 1.160 (colored) to selected 1.112 (colored)

sync with HEAD

Revision 1.158.2.3 / (download) - annotate - [select for diffs], Tue Oct 9 13:44:52 2007 UTC (6 years, 6 months ago) by ad
Branch: vmlocking
Changes since 1.158.2.2: +6 -6 lines
Diff to previous 1.158.2.2 (colored) to branchpoint 1.158 (colored) next main 1.159 (colored) to selected 1.112 (colored)

Sync with head.

Revision 1.160.6.1 / (download) - annotate - [select for diffs], Mon Sep 3 16:49:07 2007 UTC (6 years, 7 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.160: +6 -6 lines
Diff to previous 1.160 (colored) to selected 1.112 (colored)

Sync with HEAD.

Revision 1.138.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:43:13 2007 UTC (6 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.138.2.3: +16 -24 lines
Diff to previous 1.138.2.3 (colored) to selected 1.112 (colored)

sync with head.

Revision 1.160.2.1 / (download) - annotate - [select for diffs], Mon Sep 3 10:23:47 2007 UTC (6 years, 7 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.160: +6 -6 lines
Diff to previous 1.160 (colored) next main 1.161 (colored) to selected 1.112 (colored)

Sync with HEAD.

Revision 1.162 / (download) - annotate - [select for diffs], Sun Sep 2 07:18:55 2007 UTC (6 years, 7 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, nick-csl-alignment-base5, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs
Changes since 1.161: +6 -6 lines
Diff to previous 1.161 (colored) to selected 1.112 (colored)

m_copym(..., 0, M_COPYALL, ...) -> m_copypacket(..., ...).

Revision 1.161 / (download) - annotate - [select for diffs], Sun Sep 2 03:12:23 2007 UTC (6 years, 7 months ago) by dyoung
Branch: MAIN
Changes since 1.160: +6 -6 lines
Diff to previous 1.160 (colored) to selected 1.112 (colored)

m_copy() was deprecated, apparently, long ago.  m_copy(...) ->
m_copym(..., M_DONTWAIT).

Revision 1.158.2.2 / (download) - annotate - [select for diffs], Sun Jul 15 13:27:59 2007 UTC (6 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.158.2.1: +3 -3 lines
Diff to previous 1.158.2.1 (colored) to branchpoint 1.158 (colored) to selected 1.112 (colored)

Sync with head.

Revision 1.158.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:11:30 2007 UTC (6 years, 9 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.158: +5 -13 lines
Diff to previous 1.158 (colored) next main 1.159 (colored) to selected 1.112 (colored)

Sync with head.

Revision 1.160 / (download) - annotate - [select for diffs], Wed Jun 27 20:38:32 2007 UTC (6 years, 9 months ago) by degroote
Branch: MAIN
CVS Tags: nick-csl-alignment-base, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: nick-csl-alignment, matt-armv6, jmcneill-pm
Changes since 1.159: +3 -3 lines
Diff to previous 1.159 (colored) to selected 1.112 (colored)

Add support for options IPSEC_NAT_T (RFC 3947 and 3948) for fast_ipsec(4).

No objection on tech-net@

Revision 1.158.2.1 / (download) - annotate - [select for diffs], Fri Jun 8 14:17:48 2007 UTC (6 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.158: +4 -12 lines
Diff to previous 1.158 (colored) to selected 1.112 (colored)

Sync with head.

Revision 1.156.4.3 / (download) - annotate - [select for diffs], Thu May 17 13:41:51 2007 UTC (6 years, 11 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.156.4.2: +4 -12 lines
Diff to previous 1.156.4.2 (colored) to branchpoint 1.156 (colored) next main 1.157 (colored) to selected 1.112 (colored)

sync with head.

Revision 1.159 / (download) - annotate - [select for diffs], Sat May 12 02:03:15 2007 UTC (6 years, 11 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-idlelwp-base8
Changes since 1.158: +4 -12 lines
Diff to previous 1.158 (colored) to selected 1.112 (colored)

Use sockaddr_in_init().

Revision 1.156.4.2 / (download) - annotate - [select for diffs], Mon Mar 12 05:59:40 2007 UTC (7 years, 1 month ago) by rmind
Branch: yamt-idlelwp
Changes since 1.156.4.1: +9 -9 lines
Diff to previous 1.156.4.1 (colored) to branchpoint 1.156 (colored) to selected 1.112 (colored)

Sync with HEAD.

Revision 1.158 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:22 2007 UTC (7 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.157: +9 -9 lines
Diff to previous 1.157 (colored) to selected 1.112 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.156.4.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:54:57 2007 UTC (7 years, 1 month ago) by yamt
Branch: yamt-idlelwp
Changes since 1.156: +5 -5 lines
Diff to previous 1.156 (colored) to selected 1.112 (colored)

- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.138.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:11:46 2007 UTC (7 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.138.2.2: +5 -5 lines
Diff to previous 1.138.2.2 (colored) to selected 1.112 (colored)

sync with head.

Revision 1.157 / (download) - annotate - [select for diffs], Sat Feb 17 22:34:12 2007 UTC (7 years, 2 months ago) by dyoung
Branch: MAIN
CVS Tags: ad-audiomp-base, ad-audiomp
Changes since 1.156: +5 -5 lines
Diff to previous 1.156 (colored) to selected 1.112 (colored)

KNF: de-__P, bzero -> memset, bcmp -> memcmp.  Remove extraneous
   parentheses in return statements.

Cosmetic: don't open-code TAILQ_FOREACH().

Cosmetic: change types of variables to avoid oodles of casts: in
   in6_src.c, avoid casts by changing several route_in6 pointers
   to struct route pointers.  Remove unnecessary casts to caddr_t
   elsewhere.

Pave the way for eliminating address family-specific route caches:
   soon, struct route will not embed a sockaddr, but it will hold
   a reference to an external sockaddr, instead.  We will set the
   destination sockaddr using rtcache_setdst().  (I created a stub
   for it, but it isn't used anywhere, yet.)  rtcache_free() will
   free the sockaddr.  I have extracted from rtcache_free() a helper
   subroutine, rtcache_clear().  rtcache_clear() will "forget" a
   cached route, but it will not forget the destination by releasing
   the sockaddr.  I use rtcache_clear() instead of rtcache_free()
   in rtcache_update(), because rtcache_update() is not supposed
   to forget the destination.

Constify:

   1 Introduce const accessor for route->ro_dst, rtcache_getdst().

   2 Constify the 'dst' argument to ifnet->if_output().  This
     led me to constify a lot of code called by output routines.

   3 Constify the sockaddr argument to protosw->pr_ctlinput.  This
     led me to constify a lot of code called by ctlinput routines.

   4 Introduce const macros for converting from a generic sockaddr
     to family-specific sockaddrs, e.g., sockaddr_in: satocsin6,
     satocsin, et cetera.

Revision 1.138.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:34 2006 UTC (7 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.138.2.1: +20 -31 lines
Diff to previous 1.138.2.1 (colored) to selected 1.112 (colored)

sync with head.

Revision 1.148.6.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:19:11 2006 UTC (7 years, 4 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.148.6.1: +10 -18 lines
Diff to previous 1.148.6.1 (colored) to branchpoint 1.148 (colored) next main 1.149 (colored) to selected 1.112 (colored)

sync with head.

Revision 1.148.4.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:37 2006 UTC (7 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.148: +16 -25 lines
Diff to previous 1.148 (colored) next main 1.149 (colored) to selected 1.112 (colored)

Sync with head.

Revision 1.156 / (download) - annotate - [select for diffs], Tue Nov 14 12:05:55 2006 UTC (7 years, 5 months ago) by rpaulo
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm
Branch point for: yamt-idlelwp
Changes since 1.155: +2 -6 lines
Diff to previous 1.155 (colored) to selected 1.112 (colored)

Remove ifndef COMPAT_42. No objections in tech-net.

Revision 1.155 / (download) - annotate - [select for diffs], Fri Nov 10 13:02:32 2006 UTC (7 years, 5 months ago) by yamt
Branch: MAIN
Changes since 1.154: +5 -2 lines
Diff to previous 1.154 (colored) to selected 1.112 (colored)

udp_ctloutput: plug a memory leak.

Revision 1.154 / (download) - annotate - [select for diffs], Fri Nov 10 13:01:55 2006 UTC (7 years, 5 months ago) by yamt
Branch: MAIN
Changes since 1.153: +4 -4 lines
Diff to previous 1.153 (colored) to selected 1.112 (colored)

remove some __unused in function parameters.

Revision 1.153 / (download) - annotate - [select for diffs], Fri Nov 10 13:00:23 2006 UTC (7 years, 5 months ago) by yamt
Branch: MAIN
Changes since 1.152: +3 -7 lines
Diff to previous 1.152 (colored) to selected 1.112 (colored)

udp_ctloutput: remove unnecessary goto and break.

Revision 1.152 / (download) - annotate - [select for diffs], Fri Nov 10 12:59:59 2006 UTC (7 years, 5 months ago) by yamt
Branch: MAIN
Changes since 1.151: +4 -7 lines
Diff to previous 1.151 (colored) to selected 1.112 (colored)

udp_ctloutput: ansify.

Revision 1.148.6.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:29 2006 UTC (7 years, 6 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.148: +11 -12 lines
Diff to previous 1.148 (colored) to selected 1.112 (colored)

sync with head

Revision 1.151 / (download) - annotate - [select for diffs], Thu Oct 12 01:32:38 2006 UTC (7 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.150: +5 -8 lines
Diff to previous 1.150 (colored) to selected 1.112 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.150 / (download) - annotate - [select for diffs], Tue Oct 10 21:49:15 2006 UTC (7 years, 6 months ago) by dogcow
Branch: MAIN
Changes since 1.149: +5 -5 lines
Diff to previous 1.149 (colored) to selected 1.112 (colored)

change the MOWNER_INIT define to take two args; fix extant struct mowner
decls to use it. Makes options MBUFTRACE compile again and not whinge about
missing structure declarations. (Also makes initialization consistent.)

Revision 1.149 / (download) - annotate - [select for diffs], Thu Oct 5 17:35:19 2006 UTC (7 years, 6 months ago) by tls
Branch: MAIN
Changes since 1.148: +5 -3 lines
Diff to previous 1.148 (colored) to selected 1.112 (colored)

Protect calls to pool_put/pool_get that may occur in interrupt context
with spl used to protect other allocations and frees, or datastructure
element insertion and removal, in adjacent code.

It is almost unquestionably the case that some of the spl()/splx() calls
added here are superfluous, but it really seems wrong to see:

	s=splfoo();
	/* frob data structure */
	splx(s);
	pool_put(x);

and if we think we need to protect the first operation, then it is hard
to see why we should not think we need to protect the next.  "Better
safe than sorry".

It is also almost unquestionably the case that I missed some pool
gets/puts from interrupt context with my strategy for finding these
calls; use of PR_NOWAIT is a strong hint that a pool may be used from
interrupt context but many callers in the kernel pass a "can wait/can't
wait" flag down such that my searches might not have found them.  One
notable area that needs to be looked at is pf.

See also:

http://mail-index.netbsd.org/tech-kern/2006/07/19/0003.html
http://mail-index.netbsd.org/tech-kern/2006/07/19/0009.html

Revision 1.146.2.3 / (download) - annotate - [select for diffs], Sat Sep 9 02:58:47 2006 UTC (7 years, 7 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.146.2.2: +12 -13 lines
Diff to previous 1.146.2.2 (colored) next main 1.147 (colored) to selected 1.112 (colored)

sync with head

Revision 1.147.2.1 / (download) - annotate - [select for diffs], Fri Aug 11 15:46:33 2006 UTC (7 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.147: +6 -8 lines
Diff to previous 1.147 (colored) next main 1.148 (colored) to selected 1.112 (colored)

sync with head

Revision 1.148 / (download) - annotate - [select for diffs], Sun Jul 23 22:06:13 2006 UTC (7 years, 9 months ago) by ad
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, rpaulo-netinet-merge-pcb-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.147: +6 -8 lines
Diff to previous 1.147 (colored) to selected 1.112 (colored)

Use the LWP cached credentials where sane.

Revision 1.138.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:11:02 2006 UTC (7 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.138: +124 -40 lines
Diff to previous 1.138 (colored) to selected 1.112 (colored)

sync with head.

Revision 1.146.4.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:40:11 2006 UTC (8 years ago) by simonb
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.146: +8 -7 lines
Diff to previous 1.146 (colored) next main 1.147 (colored) to selected 1.112 (colored)

Sync with head.

Revision 1.145.2.2 / (download) - annotate - [select for diffs], Wed Mar 1 09:28:47 2006 UTC (8 years, 1 month ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.145.2.1: +8 -7 lines
Diff to previous 1.145.2.1 (colored) next main 1.146 (colored) to selected 1.112 (colored)

sync with head.

Revision 1.147 / (download) - annotate - [select for diffs], Thu Feb 23 01:35:19 2006 UTC (8 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, simonb-timecounters-base, peter-altq-base, peter-altq, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base, chap-midi
Branch point for: yamt-pdpolicy
Changes since 1.146: +8 -7 lines
Diff to previous 1.146 (colored) to selected 1.112 (colored)

Handle IPSEC_NAT_T in the FAST_IPSEC case.
XXX: need to fix the FAST_IPSEC code now.

Revision 1.146.2.2 / (download) - annotate - [select for diffs], Tue Feb 7 04:51:49 2006 UTC (8 years, 2 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.146.2.1: +21 -25 lines
Diff to previous 1.146.2.1 (colored) to selected 1.112 (colored)

in6pcb -> inpcb.

Revision 1.146.2.1 / (download) - annotate - [select for diffs], Sun Feb 5 03:09:11 2006 UTC (8 years, 2 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.146: +2 -3 lines
Diff to previous 1.146 (colored) to selected 1.112 (colored)

<netinet6/in6_pcb.h> went away. Bye!

Revision 1.145.2.1 / (download) - annotate - [select for diffs], Wed Feb 1 14:52:41 2006 UTC (8 years, 2 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.145: +20 -16 lines
Diff to previous 1.145 (colored) to selected 1.112 (colored)

sync with head.

Revision 1.146 / (download) - annotate - [select for diffs], Sat Jan 21 00:15:36 2006 UTC (8 years, 3 months ago) by rpaulo
Branch: MAIN
Branch point for: simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.145: +20 -16 lines
Diff to previous 1.145 (colored) to selected 1.112 (colored)

Better support of IPv6 scoped addresses.

- most of the kernel code will not care about the actual encoding of
  scope zone IDs and won't touch "s6_addr16[1]" directly.
- similarly, most of the kernel code will not care about link-local
  scoped addresses as a special case.
- scope boundary check will be stricter.  For example, the current
  *BSD code allows a packet with src=::1 and dst=(some global IPv6
  address) to be sent outside of the node, if the application do:
    s = socket(AF_INET6);
    bind(s, "::1");
    sendto(s, some_global_IPv6_addr);
  This is clearly wrong, since ::1 is only meaningful within a single
  node, but the current implementation of the *BSD kernel cannot
  reject this attempt.
- and, while there, don't try to remove the ff02::/32 interface route
  entry in in6_ifdetach() as it's already gone.

This also includes some level of support for the standard source
address selection algorithm defined in RFC3484, which will be
completed on in the future.

From the KAME project via JINMEI Tatuya.
Approved by core@.

Revision 1.134.2.6 / (download) - annotate - [select for diffs], Thu Dec 29 16:10:18 2005 UTC (8 years, 3 months ago) by riz
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1
Changes since 1.134.2.5: +34 -13 lines
Diff to previous 1.134.2.5 (colored) to branchpoint 1.134 (colored) next main 1.135 (colored) to selected 1.112 (colored)

Pull up following revision(s) (requested by manu in ticket #1052):
	sys/netinet/udp_usrreq.c: revision 1.144
Fix a bug in ESP over UDP: because udp4_espinudp() called m_pullup, it
could modify the struct mbuf and calling functions (udp_input() and
udp4_realinput()) would have used a garbled local copy of the pointer.
The fix is not perfect. udp4_espinudp() should use m_pulldown()...

Revision 1.145 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:58 2005 UTC (8 years, 4 months ago) by christos
Branch: MAIN
Branch point for: yamt-uio_vmspace
Changes since 1.144: +5 -3 lines
Diff to previous 1.144 (colored) to selected 1.112 (colored)

merge ktrace-lwp.

Revision 1.103.2.11 / (download) - annotate - [select for diffs], Sun Dec 11 10:29:25 2005 UTC (8 years, 4 months ago) by christos
Branch: ktrace-lwp
Changes since 1.103.2.10: +36 -15 lines
Diff to previous 1.103.2.10 (colored) next main 1.104 (colored) to selected 1.112 (colored)

Sync with head.

Revision 1.144 / (download) - annotate - [select for diffs], Fri Dec 9 15:36:34 2005 UTC (8 years, 4 months ago) by manu
Branch: MAIN
CVS Tags: ktrace-lwp-base
Changes since 1.143: +34 -13 lines
Diff to previous 1.143 (colored) to selected 1.112 (colored)

Fix a bug in ESP over UDP: because udp4_espinudp() called m_pullup, it
could modify the struct mbuf and calling functions (udp_input() and
udp4_realinput()) would have used a garbled local copy of the pointer.

The fix is not perfect. udp4_espinudp() should use m_pulldown()...

Revision 1.142.6.1 / (download) - annotate - [select for diffs], Tue Nov 22 16:08:21 2005 UTC (8 years, 5 months ago) by yamt
Branch: yamt-readahead
Changes since 1.142: +4 -4 lines
Diff to previous 1.142 (colored) next main 1.143 (colored) to selected 1.112 (colored)

sync with head.

Revision 1.143 / (download) - annotate - [select for diffs], Tue Nov 15 18:39:46 2005 UTC (8 years, 5 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-readahead-base3, yamt-readahead-base2
Changes since 1.142: +4 -4 lines
Diff to previous 1.142 (colored) to selected 1.112 (colored)

Pass the current process structure to in_pcbconnect() so that it can
pass it to in_pcbbind() so that can allocate a low numbered port
if setsockopt() has been used to set IP_PORTRANGE to IP_PORTRANGE_LOW.
While there, fail in_pcbconnect() if the in_pcbbind() fails - rather
than sending the request out from a port of zero.
This has been largely broken since the socket option was added in 1998.

Revision 1.103.2.10 / (download) - annotate - [select for diffs], Thu Nov 10 14:11:08 2005 UTC (8 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.103.2.9: +90 -15 lines
Diff to previous 1.103.2.9 (colored) to selected 1.112 (colored)

Sync with HEAD. Here we go again...

Revision 1.134.2.5 / (download) - annotate - [select for diffs], Thu Sep 8 21:10:24 2005 UTC (8 years, 7 months ago) by tron
Branch: netbsd-3
CVS Tags: netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0
Changes since 1.134.2.4: +2 -2 lines
Diff to previous 1.134.2.4 (colored) to branchpoint 1.134 (colored) to selected 1.112 (colored)

Pull up following revision(s) (requested by kleink in ticket #744):
	sys/netinet/udp_usrreq.c: revision 1.142
udp4_espinudp(): don't assume that the Non-ESP marker (or UDP payload)
is aligned on a 64-bit boundary.

Revision 1.142 / (download) - annotate - [select for diffs], Sat Sep 3 18:01:07 2005 UTC (8 years, 7 months ago) by kleink
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base, thorpej-vnode-attr-base, thorpej-vnode-attr
Branch point for: yamt-readahead
Changes since 1.141: +4 -4 lines
Diff to previous 1.141 (colored) to selected 1.112 (colored)

udp4_espinudp(): don't assume that the Non-ESP marker (or UDP payload)
is aligned on a 64-bit boundary.

Revision 1.141 / (download) - annotate - [select for diffs], Wed Aug 10 13:06:49 2005 UTC (8 years, 8 months ago) by yamt
Branch: MAIN
Changes since 1.140: +3 -2 lines
Diff to previous 1.140 (colored) to selected 1.112 (colored)

move {tcp,udp}_do_loopback_cksum back to tcp/udp
so that they can be referenced by ipv6.

Revision 1.140 / (download) - annotate - [select for diffs], Wed Aug 10 13:05:17 2005 UTC (8 years, 8 months ago) by yamt
Branch: MAIN
Changes since 1.139: +53 -5 lines
Diff to previous 1.139 (colored) to selected 1.112 (colored)

device independent part of ipv6 rx checksum offloading.

Revision 1.139 / (download) - annotate - [select for diffs], Fri Aug 5 09:21:26 2005 UTC (8 years, 8 months ago) by elad
Branch: MAIN
Changes since 1.138: +9 -2 lines
Diff to previous 1.138 (colored) to selected 1.112 (colored)

Add sysctls for IP, ICMP, TCP, and UDP statistics.

Revision 1.134.2.4 / (download) - annotate - [select for diffs], Fri May 6 08:40:21 2005 UTC (8 years, 11 months ago) by tron
Branch: netbsd-3
Changes since 1.134.2.3: +1 -9 lines
Diff to previous 1.134.2.3 (colored) to branchpoint 1.134 (colored) to selected 1.112 (colored)

Pull up revision 1.135 (requested by yamt in ticket #251):
fix problems related to loopback interface checksum omission.  PR/29971.
- for ipv4, defer decision to ip layer as h/w checksum offloading does
  so that it can check the actual interface the packet is going to.
- for ipv6, disable it.
  (maybe will be revisited when it implements h/w checksum offloading.)
ok'ed by Jason Thorpe.

Revision 1.134.2.3 / (download) - annotate - [select for diffs], Sun May 1 11:03:37 2005 UTC (8 years, 11 months ago) by tron
Branch: netbsd-3
Changes since 1.134.2.2: +3 -2 lines
Diff to previous 1.134.2.2 (colored) to branchpoint 1.134 (colored) to selected 1.112 (colored)

Pull up revision 1.138 (requested by manu in ticket #216):
Fix memory leak

Revision 1.138 / (download) - annotate - [select for diffs], Fri Apr 29 13:06:23 2005 UTC (8 years, 11 months ago) by manu
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.137: +3 -2 lines
Diff to previous 1.137 (colored) to selected 1.112 (colored)

Fix memory leak

Revision 1.129.2.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:34 2005 UTC (8 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.129: +263 -11 lines
Diff to previous 1.129 (colored) next main 1.130 (colored) to selected 1.112 (colored)

sync with -current

Revision 1.134.2.2 / (download) - annotate - [select for diffs], Thu Apr 28 10:53:40 2005 UTC (8 years, 11 months ago) by tron
Branch: netbsd-3
Changes since 1.134.2.1: +7 -4 lines
Diff to previous 1.134.2.1 (colored) to branchpoint 1.134 (colored) to selected 1.112 (colored)

Pull up revision 1.137 (requested by manu in ticket #203):
Don't sleep when handling ESP over UDP packets.

Revision 1.134.2.1 / (download) - annotate - [select for diffs], Thu Apr 28 10:49:13 2005 UTC (8 years, 11 months ago) by tron
Branch: netbsd-3
Changes since 1.134: +25 -2 lines
Diff to previous 1.134 (colored) to selected 1.112 (colored)

Pull up revision 1.136 (requested by man in ticket #201):
Enhance IPSEC_NAT_T so that it can work with multiple machines behind
the same NAT.

Revision 1.137 / (download) - annotate - [select for diffs], Mon Apr 25 20:37:06 2005 UTC (8 years, 11 months ago) by manu
Branch: MAIN
CVS Tags: kent-audio2-base
Changes since 1.136: +7 -4 lines
Diff to previous 1.136 (colored) to selected 1.112 (colored)

Don't sleep when handling ESP over UDP packets.

Revision 1.136 / (download) - annotate - [select for diffs], Sat Apr 23 14:05:28 2005 UTC (9 years ago) by manu
Branch: MAIN
Changes since 1.135: +25 -2 lines
Diff to previous 1.135 (colored) to selected 1.112 (colored)

Enhance IPSEC_NAT_T so that it can work with multiple machines behind the
same NAT.

Revision 1.135 / (download) - annotate - [select for diffs], Mon Apr 18 21:50:25 2005 UTC (9 years ago) by yamt
Branch: MAIN
Changes since 1.134: +3 -11 lines
Diff to previous 1.134 (colored) to selected 1.112 (colored)

fix problems related to loopback interface checksum omission.  PR/29971.

- for ipv4, defer decision to ip layer as h/w checksum offloading does
  so that it can check the actual interface the packet is going to.
- for ipv6, disable it.
  (maybe will be revisited when it implements h/w checksum offloading.)

ok'ed by Jason Thorpe.

Revision 1.103.2.9 / (download) - annotate - [select for diffs], Fri Apr 1 14:31:50 2005 UTC (9 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.103.2.8: +9 -2 lines
Diff to previous 1.103.2.8 (colored) to selected 1.112 (colored)

Sync with HEAD.

Revision 1.129.4.2 / (download) - annotate - [select for diffs], Sat Mar 19 08:36:38 2005 UTC (9 years, 1 month ago) by yamt
Branch: yamt-km
Changes since 1.129.4.1: +24 -17 lines
Diff to previous 1.129.4.1 (colored) to branchpoint 1.129 (colored) next main 1.130 (colored) to selected 1.112 (colored)

sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.134 / (download) - annotate - [select for diffs], Fri Mar 11 06:16:16 2005 UTC (9 years, 1 month ago) by atatat
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base
Branch point for: netbsd-3
Changes since 1.133: +3 -3 lines
Diff to previous 1.133 (colored) to selected 1.112 (colored)

Revert the change that made kern.file2 and net.*.*.pcblist into nodes
instead of structs.  It had other deleterious side-effects that are
rather nasty.  Another solution must be found.

Revision 1.133 / (download) - annotate - [select for diffs], Thu Mar 10 05:43:26 2005 UTC (9 years, 1 month ago) by atatat
Branch: MAIN
Changes since 1.132: +3 -3 lines
Diff to previous 1.132 (colored) to selected 1.112 (colored)

Change types of kern.file2 and net.*.*.pcblist to NODE

Revision 1.132 / (download) - annotate - [select for diffs], Wed Mar 9 05:07:19 2005 UTC (9 years, 1 month ago) by atatat
Branch: MAIN
Changes since 1.131: +9 -2 lines
Diff to previous 1.131 (colored) to selected 1.112 (colored)

Add the following nodes to the sysctl tree:

	net.local.stream.pcblist
	net.local.dgram.pcblist
	net.inet.tcp.pcblist
	net.inet.udp.pcblist
	net.inet.raw.pcblist
	net.inet6.tcp6.pcblist
	net.inet6.udp6.pcblist
	net.inet6.raw6.pcblist

which allow retrieval of the pcbs in use for those protocols.  The
struct involved is 32/64 bit clean and incorporates parts of struct
inpcb, struct unpcb, a bit of struct tcpcb, and two socket addresses.

Revision 1.103.2.8 / (download) - annotate - [select for diffs], Fri Mar 4 16:53:30 2005 UTC (9 years, 1 month ago) by skrll
Branch: ktrace-lwp
Changes since 1.103.2.7: +17 -17 lines
Diff to previous 1.103.2.7 (colored) to selected 1.112 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.131 / (download) - annotate - [select for diffs], Sat Feb 26 22:45:12 2005 UTC (9 years, 1 month ago) by perry
Branch: MAIN
Changes since 1.130: +17 -17 lines
Diff to previous 1.130 (colored) to selected 1.112 (colored)

nuke trailing whitespace

Revision 1.103.2.7 / (download) - annotate - [select for diffs], Tue Feb 15 21:33:40 2005 UTC (9 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.103.2.6: +229 -2 lines
Diff to previous 1.103.2.6 (colored) to selected 1.112 (colored)

Sync with HEAD.

Revision 1.129.4.1 / (download) - annotate - [select for diffs], Sat Feb 12 18:17:54 2005 UTC (9 years, 2 months ago) by yamt
Branch: yamt-km
Changes since 1.129: +229 -2 lines
Diff to previous 1.129 (colored) to selected 1.112 (colored)

sync with head.

Revision 1.130 / (download) - annotate - [select for diffs], Sat Feb 12 12:31:07 2005 UTC (9 years, 2 months ago) by manu
Branch: MAIN
CVS Tags: yamt-km-base2, matt-timespec
Changes since 1.129: +229 -2 lines
Diff to previous 1.129 (colored) to selected 1.112 (colored)

Add support for IPsec Network Address Translator traversal (NAT-T), as
described by RFC 3947 and 3948.

Revision 1.103.2.6 / (download) - annotate - [select for diffs], Mon Jan 17 19:32:54 2005 UTC (9 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.103.2.5: +126 -56 lines
Diff to previous 1.103.2.5 (colored) to selected 1.112 (colored)

Sync with HEAD.

Revision 1.129 / (download) - annotate - [select for diffs], Tue Dec 21 05:51:32 2004 UTC (9 years, 4 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-km-base, kent-audio1-beforemerge
Branch point for: yamt-km, kent-audio2
Changes since 1.128: +125 -54 lines
Diff to previous 1.128 (colored) to selected 1.112 (colored)

factor out receive side tcp/udp checksum handling code so that they
can be used by eg. packet filters.

reviewed by Christos Zoulas on tech-net@.
(slightly tweaked since then to make tcp and udp similar.)

Revision 1.128 / (download) - annotate - [select for diffs], Sun Dec 19 06:42:24 2004 UTC (9 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.127: +3 -3 lines
Diff to previous 1.127 (colored) to selected 1.112 (colored)

yamt's changes seem to fix all the checksumming issues. Turn the loopback
checksums back off so we can make sure that everything works.

Revision 1.127 / (download) - annotate - [select for diffs], Sat Dec 18 15:31:26 2004 UTC (9 years, 4 months ago) by yamt
Branch: MAIN
Changes since 1.126: +4 -5 lines
Diff to previous 1.126 (colored) to selected 1.112 (colored)

udp6_input: correct loopback test.

Revision 1.103.2.5 / (download) - annotate - [select for diffs], Sat Dec 18 09:33:06 2004 UTC (9 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.103.2.4: +46 -16 lines
Diff to previous 1.103.2.4 (colored) to selected 1.112 (colored)

Sync with HEAD.

Revision 1.126 / (download) - annotate - [select for diffs], Fri Dec 17 22:54:52 2004 UTC (9 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.125: +3 -3 lines
Diff to previous 1.125 (colored) to selected 1.112 (colored)

Turn checksumming on loopback back on until we fix the bugs in it.
Connect over tcp on the loopback is broken:

  4729 amq      0.000007 CALL  connect(4,0x804f2a0,0x1c)
  4729 amq      75.007420 RET   connect -1 errno 60 Connection timed out

Revision 1.125 / (download) - annotate - [select for diffs], Wed Dec 15 04:25:20 2004 UTC (9 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.124: +46 -16 lines
Diff to previous 1.124 (colored) to selected 1.112 (colored)

Don't perform checksums on loopback interfaces.  They can be reenabled with
the net.inet.*.do_loopback_cksum sysctl.

Approved by: groo

Revision 1.103.2.4 / (download) - annotate - [select for diffs], Tue Sep 21 13:37:15 2004 UTC (9 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.103.2.3: +3 -1 lines
Diff to previous 1.103.2.3 (colored) to selected 1.112 (colored)

Fix the sync with head I botched.

Revision 1.103.2.3 / (download) - annotate - [select for diffs], Sat Sep 18 14:54:54 2004 UTC (9 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.103.2.2: +5 -5 lines
Diff to previous 1.103.2.2 (colored) to selected 1.112 (colored)

Sync with HEAD.

Revision 1.124 / (download) - annotate - [select for diffs], Fri Sep 3 18:14:09 2004 UTC (9 years, 7 months ago) by darrenr
Branch: MAIN
CVS Tags: kent-audio1-base, kent-audio1
Changes since 1.123: +4 -2 lines
Diff to previous 1.123 (colored) to selected 1.112 (colored)

add a per-socket counter for dropped UDP packets when the internal buffers
are full.

Revision 1.103.2.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:54:46 2004 UTC (9 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.103.2.1: +117 -132 lines
Diff to previous 1.103.2.1 (colored) to selected 1.112 (colored)

Sync with HEAD

Revision 1.123 / (download) - annotate - [select for diffs], Fri Jul 2 18:19:51 2004 UTC (9 years, 9 months ago) by heas
Branch: MAIN
CVS Tags: BEFORE-IPF413
Changes since 1.122: +3 -3 lines
Diff to previous 1.122 (colored) to selected 1.112 (colored)

Adjust description for net.inet.udp.checksum; it does not controll checking,
only computing.

Revision 1.116.2.4 / (download) - annotate - [select for diffs], Fri May 28 07:24:17 2004 UTC (9 years, 10 months ago) by tron
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2
Changes since 1.116.2.3: +8 -4 lines
Diff to previous 1.116.2.3 (colored) to branchpoint 1.116 (colored) next main 1.117 (colored) to selected 1.112 (colored)

Pull up revision 1.122 (requested by atatat in ticket #391):
Sysctl descriptions under net subtree (net.key not done)

Revision 1.122 / (download) - annotate - [select for diffs], Tue May 25 04:34:00 2004 UTC (9 years, 11 months ago) by atatat
Branch: MAIN
Changes since 1.121: +10 -6 lines
Diff to previous 1.121 (colored) to selected 1.112 (colored)

Sysctl descriptions under net subtree (net.key not done)

Revision 1.116.2.3 / (download) - annotate - [select for diffs], Mon May 10 15:00:52 2004 UTC (9 years, 11 months ago) by tron
Branch: netbsd-2-0
Changes since 1.116.2.2: +3 -2 lines
Diff to previous 1.116.2.2 (colored) to branchpoint 1.116 (colored) to selected 1.112 (colored)

Pull up revision 1.121 (requested by jonathan in ticket #280):
Redo net.inet.* sysctl subtree for fast-ipsec from scratch.
Attach FAST-IPSEC statistics with 64-bit counters to new sysctl MIB.
Rework netstat to show FAST_IPSEC statistics, via sysctl,  for
netstat -p ipsec.
New kernel files:
	sys/netipsec/Makefile		(new file; install *_var.h includes)
	sys/netipsec/ipsec_var.h	(new 64-bit mib counter struct)
Changed kernel files:
	sys/Makefile			(recurse into sys/netipsec/)
	sys/netinet/in.h		(fake IP_PROTO name for fast_ipsec
					sysctl subtree.)
	sys/netipsec/ipsec.h		(minimal userspace inclusion)
	sys/netipsec/ipsec_osdep.h	(minimal userspace inclusion)
	sys/netipsec/ipsec_netbsd.c	(redo sysctl subtree from scratch)
	sys/netipsec/key*.c		(fix broken net.key subtree)
	sys/netipsec/ah_var.h		(increase all counters to 64 bits)
	sys/netipsec/esp_var.h		(increase all counters to 64 bits)
	sys/netipsec/ipip_var.h		(increase all counters to 64 bits)
	sys/netipsec/ipcomp_var.h	(increase all counters to 64 bits)
	sys/netipsec/ipsec.c		(add #include netipsec/ipsec_var.h)
	sys/netipsec/ipsec_mbuf.c	(add #include netipsec/ipsec_var.h)
	sys/netipsec/ipsec_output.c	(add #include netipsec/ipsec_var.h)
	sys/netinet/raw_ip.c		(add #include netipsec/ipsec_var.h)
	sys/netinet/tcp_input.c		(add #include netipsec/ipsec_var.h)
	sys/netinet/udp_usrreq.c	(add #include netipsec/ipsec_var.h)
Changes to usr.bin/netstat to print the new fast-ipsec sysctl tree
for "netstat -s -p ipsec":
New file:
	usr.bin/netstat/fast_ipsec.c	(print fast-ipsec counters)
Changed files:
	usr.bin/netstat/Makefile	(add fast_ipsec.c)
	usr.bin/netstat/netstat.h	(declarations for fast_ipsec.c)
	usr.bin/netstat/main.c		(call KAME-vs-fast-ipsec dispatcher)

Revision 1.121 / (download) - annotate - [select for diffs], Fri May 7 00:55:15 2004 UTC (9 years, 11 months ago) by jonathan
Branch: MAIN
Changes since 1.120: +3 -2 lines
Diff to previous 1.120 (colored) to selected 1.112 (colored)

Redo net.inet.* sysctl subtree for fast-ipsec from scratch.
Attach FAST-IPSEC statistics with 64-bit counters to new sysctl MIB.
Rework netstat to show FAST_IPSEC statistics, via sysctl,  for
netstat -p ipsec.

New kernel files:
	sys/netipsec/Makefile		(new file; install *_var.h includes)
	sys/netipsec/ipsec_var.h	(new 64-bit mib counter struct)

Changed kernel files:
	sys/Makefile			(recurse into sys/netipsec/)
	sys/netinet/in.h		(fake IP_PROTO name for fast_ipsec
					sysctl subtree.)
	sys/netipsec/ipsec.h		(minimal userspace inclusion)
	sys/netipsec/ipsec_osdep.h	(minimal userspace inclusion)
	sys/netipsec/ipsec_netbsd.c	(redo sysctl subtree from scratch)
	sys/netipsec/key*.c		(fix broken net.key subtree)

	sys/netipsec/ah_var.h		(increase all counters to 64 bits)
	sys/netipsec/esp_var.h		(increase all counters to 64 bits)
	sys/netipsec/ipip_var.h		(increase all counters to 64 bits)
	sys/netipsec/ipcomp_var.h	(increase all counters to 64 bits)

	sys/netipsec/ipsec.c		(add #include netipsec/ipsec_var.h)
	sys/netipsec/ipsec_mbuf.c	(add #include netipsec/ipsec_var.h)
	sys/netipsec/ipsec_output.c	(add #include netipsec/ipsec_var.h)

	sys/netinet/raw_ip.c		(add #include netipsec/ipsec_var.h)
	sys/netinet/tcp_input.c		(add #include netipsec/ipsec_var.h)
	sys/netinet/udp_usrreq.c	(add #include netipsec/ipsec_var.h)

Changes to usr.bin/netstat to print the new fast-ipsec sysctl tree
for "netstat -s -p ipsec":

New file:
	usr.bin/netstat/fast_ipsec.c	(print fast-ipsec counters)

Changed files:
	usr.bin/netstat/Makefile	(add fast_ipsec.c)
	usr.bin/netstat/netstat.h	(declarations for fast_ipsec.c)
	usr.bin/netstat/main.c		(call KAME-vs-fast-ipsec dispatcher)

Revision 1.120 / (download) - annotate - [select for diffs], Sat May 1 02:20:43 2004 UTC (9 years, 11 months ago) by matt
Branch: MAIN
Changes since 1.119: +7 -9 lines
Diff to previous 1.119 (colored) to selected 1.112 (colored)

Use EVCNT_ATTACH_STATIC{,2}

Revision 1.119 / (download) - annotate - [select for diffs], Sun Apr 18 23:35:56 2004 UTC (10 years ago) by matt
Branch: MAIN
Changes since 1.118: +26 -62 lines
Diff to previous 1.118 (colored) to selected 1.112 (colored)

ANSI'fy and de __P

Revision 1.66.4.6 / (download) - annotate - [select for diffs], Mon Apr 12 04:58:25 2004 UTC (10 years ago) by jmc
Branch: netbsd-1-5
Changes since 1.66.4.5: +5 -3 lines
Diff to previous 1.66.4.5 (colored) to branchpoint 1.66 (colored) next main 1.67 (colored) to selected 1.112 (colored)

Pullup patch (requested by itojun in ticket #134)

Drop packet if IPv6 udp packet does not have checksum.

Revision 1.93.4.2 / (download) - annotate - [select for diffs], Wed Mar 31 20:10:29 2004 UTC (10 years ago) by tron
Branch: netbsd-1-6
Changes since 1.93.4.1: +4 -3 lines
Diff to previous 1.93.4.1 (colored) to branchpoint 1.93 (colored) next main 1.94 (colored) to selected 1.112 (colored)

Pull up revision 1.118 (requested by itojun in ticket #1645):
clean previous commit (uh_sum != 0 check in IPv6)

Revision 1.93.4.1 / (download) - annotate - [select for diffs], Wed Mar 31 20:09:25 2004 UTC (10 years ago) by tron
Branch: netbsd-1-6
Changes since 1.93: +5 -4 lines
Diff to previous 1.93 (colored) to selected 1.112 (colored)

Pull up revision 1.117 (requested by itojun in ticket #1645):
drop packet if IPv6 udp packet does not have checksum (checksum is mandatory
in IPv6).

Revision 1.116.2.2 / (download) - annotate - [select for diffs], Wed Mar 31 19:59:41 2004 UTC (10 years ago) by tron
Branch: netbsd-2-0
Changes since 1.116.2.1: +4 -3 lines
Diff to previous 1.116.2.1 (colored) to branchpoint 1.116 (colored) to selected 1.112 (colored)

Pull up revision 1.118 (requested by itojun in ticket #28):
clean previous commit (uh_sum != 0 check in IPv6)

Revision 1.116.2.1 / (download) - annotate - [select for diffs], Wed Mar 31 19:58:54 2004 UTC (10 years ago) by tron
Branch: netbsd-2-0
Changes since 1.116: +5 -4 lines
Diff to previous 1.116 (colored) to selected 1.112 (colored)

Pull up revision 1.117 (requested by itojun in ticket #28):
drop packet if IPv6 udp packet does not have checksum (checksum is mandatory
in IPv6).

Revision 1.118 / (download) - annotate - [select for diffs], Wed Mar 31 07:57:06 2004 UTC (10 years ago) by itojun
Branch: MAIN
Changes since 1.117: +4 -3 lines
Diff to previous 1.117 (colored) to selected 1.112 (colored)

clean previous commit (uh_sum != 0 check in IPv6)

Revision 1.117 / (download) - annotate - [select for diffs], Wed Mar 31 07:54:00 2004 UTC (10 years ago) by itojun
Branch: MAIN
Changes since 1.116: +5 -4 lines
Diff to previous 1.116 (colored) to selected 1.112 (colored)

drop packet if IPv6 udp packet does not have checksum (checksum is mandatory
in IPv6).

Revision 1.116 / (download) - annotate - [select for diffs], Wed Mar 24 15:34:54 2004 UTC (10 years, 1 month ago) by atatat
Branch: MAIN
CVS Tags: netbsd-2-0-base, BEFORE-IPF411
Branch point for: netbsd-2-0
Changes since 1.115: +14 -8 lines
Diff to previous 1.115 (colored) to selected 1.112 (colored)

Tango on sysctl_createv() and flags.  The flags have all been renamed,
and sysctl_createv() now uses more arguments.

Revision 1.115 / (download) - annotate - [select for diffs], Wed Mar 10 18:50:45 2004 UTC (10 years, 1 month ago) by drochner
Branch: MAIN
Changes since 1.114: +3 -4 lines
Diff to previous 1.114 (colored) to selected 1.112 (colored)

fix tcp/udp checksum test in the M_CSUM_NO_PSEUDOHDR case
(this can never have worked)
now I can use a "bge" gigabit interface with hw checksumming
ttcp-t: 2147483648 bytes in 18.31 real seconds = 114527.11 KB/sec +++
woow!

Revision 1.114 / (download) - annotate - [select for diffs], Thu Dec 4 19:38:24 2003 UTC (10 years, 4 months ago) by atatat
Branch: MAIN
Changes since 1.113: +32 -27 lines
Diff to previous 1.113 (colored) to selected 1.112 (colored)

Dynamic sysctl.

Gone are the old kern_sysctl(), cpu_sysctl(), hw_sysctl(),
vfs_sysctl(), etc, routines, along with sysctl_int() et al.  Now all
nodes are registered with the tree, and nodes can be added (or
removed) easily, and I/O to and from the tree is handled generically.

Since the nodes are registered with the tree, the mapping from name to
number (and back again) can now be discovered, instead of having to be
hard coded.  Adding new nodes to the tree is likewise much simpler --
the new infrastructure handles almost all the work for simple types,
and just about anything else can be done with a small helper function.

All existing nodes are where they were before (numerically speaking),
so all existing consumers of sysctl information should notice no
difference.

PS - I'm sorry, but there's a distinct lack of documentation at the
moment.  I'm working on sysctl(3/8/9) right now, and I promise to
watch out for buses.

Revision 1.113 / (download) - annotate - [select for diffs], Thu Oct 23 20:55:08 2003 UTC (10 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.112: +2 -12 lines
Diff to previous 1.112 (colored)

Remove all the code to maintain ia_inpcbs.  This information was only used to
close sockets on address changes, which was deemed to be a bad idea and was
summarily removed, so there is no point in wasting effort on maintaining it
any more.

Revision 1.112 / (download) - annotate - [selected], Sat Oct 18 13:05:45 2003 UTC (10 years, 6 months ago) by enami
Branch: MAIN
Changes since 1.111: +8 -6 lines
Diff to previous 1.111 (colored)

Fix indent.

Revision 1.111 / (download) - annotate - [select for diffs], Thu Sep 25 00:59:32 2003 UTC (10 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.110: +3 -3 lines
Diff to previous 1.110 (colored) to selected 1.112 (colored)

Fix glaring errors in recent changes.

Revision 1.110 / (download) - annotate - [select for diffs], Fri Sep 12 09:55:22 2003 UTC (10 years, 7 months ago) by itojun
Branch: MAIN
Changes since 1.109: +8 -2 lines
Diff to previous 1.109 (colored) to selected 1.112 (colored)

send icmp admin prohibit if socket policy mismatches.

Revision 1.109 / (download) - annotate - [select for diffs], Thu Sep 4 09:17:03 2003 UTC (10 years, 7 months ago) by itojun
Branch: MAIN
Changes since 1.108: +16 -9 lines
Diff to previous 1.108 (colored) to selected 1.112 (colored)

revamp inpcb/in6pcb so that they are more aligned with each other.
in6pcb lookup now uses hash(9).

Revision 1.108 / (download) - annotate - [select for diffs], Fri Aug 22 22:00:38 2003 UTC (10 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.107: +2 -9 lines
Diff to previous 1.107 (colored) to selected 1.112 (colored)

remove ipsec_set/getsocket.  now we explicitly pass socket * to ip{,6}_output.

Revision 1.107 / (download) - annotate - [select for diffs], Fri Aug 22 21:53:06 2003 UTC (10 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.106: +3 -3 lines
Diff to previous 1.106 (colored) to selected 1.112 (colored)

change the additional arg to be passed to ip{,6}_output to struct socket *.

this fixes KAME policy lookup which was broken by the previous commit.

Revision 1.106 / (download) - annotate - [select for diffs], Thu Aug 21 14:49:50 2003 UTC (10 years, 8 months ago) by jonathan
Branch: MAIN
Changes since 1.105: +9 -4 lines
Diff to previous 1.105 (colored) to selected 1.112 (colored)

Honour the M_CSUM_NO_PSEUDOHDR, if set on inbound TCP and UDP packets.
Tested against  bcm5700 with patched if_bge.c.

Revision 1.105 / (download) - annotate - [select for diffs], Fri Aug 15 03:42:05 2003 UTC (10 years, 8 months ago) by jonathan
Branch: MAIN
Changes since 1.104: +12 -5 lines
Diff to previous 1.104 (colored) to selected 1.112 (colored)

(fast-ipsec): Add hooks to pass IPv4 IPsec traffic into fast-ipsec, if
configured with ``options FAST_IPSEC''.  Kernels with KAME IPsec or
with no IPsec should work as before.

All calls to ip_output() now always pass an additional compulsory
argument: the inpcb associated with the packet being sent,
or 0 if no inpcb is available.

Fast-ipsec tested with ICMP or UDP over ESP. TCP doesn't work, yet.

Revision 1.104 / (download) - annotate - [select for diffs], Thu Aug 7 16:33:20 2003 UTC (10 years, 8 months ago) by agc
Branch: MAIN
Changes since 1.103: +3 -7 lines
Diff to previous 1.103 (colored) to selected 1.112 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.

Revision 1.103.2.1 / (download) - annotate - [select for diffs], Wed Jul 2 15:27:01 2003 UTC (10 years, 9 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.103: +6 -4 lines
Diff to previous 1.103 (colored) to selected 1.112 (colored)

Apply the aborted ktrace-lwp changes to a specific branch.  This is just for
others to review, I'm concerned that patch fuziness may have resulted in some
errant code being generated but I'll look at that later by comparing the diff
from the base to the branch with the file I attempt to apply to it.  This will,
at the very least, put the changes in a better context for others to review
them and attempt to tinker with removing passing of 'struct lwp' through
the kernel.

Revision 1.103 / (download) - annotate - [select for diffs], Sun Jun 29 22:32:01 2003 UTC (10 years, 9 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.102: +2 -4 lines
Diff to previous 1.102 (colored) to selected 1.112 (colored)

Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.102 / (download) - annotate - [select for diffs], Sat Jun 28 14:22:10 2003 UTC (10 years, 9 months ago) by darrenr
Branch: MAIN
Changes since 1.101: +6 -4 lines
Diff to previous 1.101 (colored) to selected 1.112 (colored)

Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V

Revision 1.101 / (download) - annotate - [select for diffs], Mon Jun 23 11:02:17 2003 UTC (10 years, 10 months ago) by martin
Branch: MAIN
Changes since 1.100: +3 -2 lines
Diff to previous 1.100 (colored) to selected 1.112 (colored)

Make sure to include opt_foo.h if a defflag option FOO is used.

Revision 1.100 / (download) - annotate - [select for diffs], Sun Jun 15 02:49:34 2003 UTC (10 years, 10 months ago) by matt
Branch: MAIN
Changes since 1.99: +18 -7 lines
Diff to previous 1.99 (colored) to selected 1.112 (colored)

Change the way multicasts are kept.  They now use a hash table in the same
manner as the ifaddr hash table.  By doing this, the mkludge code can go
away.  At the same time, keep track of what pcbs are using what ifaddr and
when an address is deleted from an interface, notify/abort all sockets
that have that address as a source.  Switch IGMP and multicasts to use pools
for allocation.  Fix a number of potential problems in the igmp code where
allocation failures could cause a trap/panic.

Revision 1.99 / (download) - annotate - [select for diffs], Wed May 14 06:47:37 2003 UTC (10 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.98: +2 -40 lines
Diff to previous 1.98 (colored) to selected 1.112 (colored)

always use PULLDOWN_TEST codepath.

Revision 1.98 / (download) - annotate - [select for diffs], Wed Feb 26 06:31:17 2003 UTC (11 years, 1 month ago) by matt
Branch: MAIN
Changes since 1.97: +19 -2 lines
Diff to previous 1.97 (colored) to selected 1.112 (colored)

Add MBUFTRACE kernel option.
Do a little mbuf rework while here.  Change all uses of MGET*(*, M_WAIT, *)
to m_get*(M_WAIT, *).  These are not performance critical and making them
call m_get saves considerable space.  Add m_clget analogue of MCLGET and
make corresponding change for M_WAIT uses.
Modify netinet, gem, fxp, tulip, nfs to support MBUFTRACE.
Begin to change netstat to use sysctl.

Revision 1.97 / (download) - annotate - [select for diffs], Mon Jan 20 00:05:46 2003 UTC (11 years, 3 months ago) by simonb
Branch: MAIN
Changes since 1.96: +4 -12 lines
Diff to previous 1.96 (colored) to selected 1.112 (colored)

Remove variables that are only assigned too but not referenced.

Revision 1.80.2.4 / (download) - annotate - [select for diffs], Fri Sep 6 08:49:23 2002 UTC (11 years, 7 months ago) by jdolecek
Branch: kqueue
Changes since 1.80.2.3: +11 -7 lines
Diff to previous 1.80.2.3 (colored) next main 1.81 (colored) to selected 1.112 (colored)

sync kqueue branch with HEAD

Revision 1.93.2.3 / (download) - annotate - [select for diffs], Thu Aug 29 00:56:49 2002 UTC (11 years, 7 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.93.2.2: +9 -7 lines
Diff to previous 1.93.2.2 (colored) to branchpoint 1.93 (colored) next main 1.94 (colored) to selected 1.112 (colored)

catch up with -current.

Revision 1.75.2.9 / (download) - annotate - [select for diffs], Tue Aug 27 23:48:07 2002 UTC (11 years, 7 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.75.2.8: +7 -5 lines
Diff to previous 1.75.2.8 (colored) to branchpoint 1.75 (colored) next main 1.76 (colored) to selected 1.112 (colored)

Catch up to -current.

Revision 1.96 / (download) - annotate - [select for diffs], Wed Aug 14 00:23:36 2002 UTC (11 years, 8 months ago) by itojun
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, gehenna-devsw-base, fvdl_fs64_base
Changes since 1.95: +9 -7 lines
Diff to previous 1.95 (colored) to selected 1.112 (colored)

avoid swapping endian of ip_len and ip_off on mbuf, to meet with M_LEADINGSPACE
optimization made last year.  should solve PR 17867 and 10195.

IP_HDRINCL behavior of raw ip socket is kept unchanged.  we may want to
provide IP_HDRINCL variant that does not swap endian.

Revision 1.75.2.8 / (download) - annotate - [select for diffs], Thu Aug 1 02:46:50 2002 UTC (11 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.75.2.7: +4 -2 lines
Diff to previous 1.75.2.7 (colored) to branchpoint 1.75 (colored) to selected 1.112 (colored)

Catch up to -current.

Revision 1.93.2.2 / (download) - annotate - [select for diffs], Mon Jul 15 10:37:03 2002 UTC (11 years, 9 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.93.2.1: +4 -2 lines
Diff to previous 1.93.2.1 (colored) to branchpoint 1.93 (colored) to selected 1.112 (colored)

catch up with -current.

Revision 1.95 / (download) - annotate - [select for diffs], Sun Jun 30 22:40:37 2002 UTC (11 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.94: +4 -2 lines
Diff to previous 1.94 (colored) to selected 1.112 (colored)

Changes to allow the IPv4 and IPv6 layers to align headers themseves,
as necessary:
* Implement a new mbuf utility routine, m_copyup(), is is like
  m_pullup(), except that it always prepends and copies, rather
  than only doing so if the desired length is larger than m->m_len.
  m_copyup() also allows an offset into the destination mbuf, which
  allows space for packet headers, in the forwarding case.
* Add *_HDR_ALIGNED_P() macros for IP, IPv6, ICMP, and IGMP.  These
  macros expand to 1 if __NO_STRICT_ALIGNMENT is defined, so that
  architectures which do not have strict alignment constraints don't
  pay for the test or visit the new align-if-needed path.
* Use the new macros to check if a header needs to be aligned, or to
  assert that it already is, as appropriate.

Note: This code is still somewhat experimental.  However, the new
code path won't be visited if individual device drivers continue
to guarantee that packets are delivered to layer 3 already properly
aligned (which are rules that are already in use).

Revision 1.80.2.3 / (download) - annotate - [select for diffs], Sun Jun 23 17:51:04 2002 UTC (11 years, 10 months ago) by jdolecek
Branch: kqueue
Changes since 1.80.2.2: +8 -5 lines
Diff to previous 1.80.2.2 (colored) to selected 1.112 (colored)

catch up with -current on kqueue branch

Revision 1.93.2.1 / (download) - annotate - [select for diffs], Thu Jun 20 15:52:32 2002 UTC (11 years, 10 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.93: +5 -5 lines
Diff to previous 1.93 (colored) to selected 1.112 (colored)

catch up with -current.

Revision 1.75.2.7 / (download) - annotate - [select for diffs], Thu Jun 20 03:49:01 2002 UTC (11 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.75.2.6: +8 -5 lines
Diff to previous 1.75.2.6 (colored) to branchpoint 1.75 (colored) to selected 1.112 (colored)

Catch up to -current.

Revision 1.94 / (download) - annotate - [select for diffs], Sun Jun 9 16:33:45 2002 UTC (11 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.93: +5 -5 lines
Diff to previous 1.93 (colored) to selected 1.112 (colored)

whitespace

Revision 1.93 / (download) - annotate - [select for diffs], Sun May 12 20:33:51 2002 UTC (11 years, 11 months ago) by matt
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Branch point for: netbsd-1-6, gehenna-devsw
Changes since 1.92: +5 -2 lines
Diff to previous 1.92 (colored) to selected 1.112 (colored)

Eliminate commons.

Revision 1.80.2.2 / (download) - annotate - [select for diffs], Thu Jan 10 20:03:04 2002 UTC (12 years, 3 months ago) by thorpej
Branch: kqueue
Changes since 1.80.2.1: +14 -351 lines
Diff to previous 1.80.2.1 (colored) to selected 1.112 (colored)

Sync kqueue branch with -current.

Revision 1.75.2.6 / (download) - annotate - [select for diffs], Tue Jan 8 00:34:12 2002 UTC (12 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.75.2.5: +6 -8 lines
Diff to previous 1.75.2.5 (colored) to branchpoint 1.75 (colored) to selected 1.112 (colored)

Catch up to -current.

Revision 1.92 / (download) - annotate - [select for diffs], Fri Dec 21 02:51:08 2001 UTC (12 years, 4 months ago) by itojun
Branch: MAIN
CVS Tags: newlock-base, newlock, ifpoll-base, ifpoll, eeh-devprop-base, eeh-devprop
Changes since 1.91: +6 -8 lines
Diff to previous 1.91 (colored) to selected 1.112 (colored)

comment and whitespace.  sync with kame

Revision 1.75.2.5 / (download) - annotate - [select for diffs], Wed Nov 14 19:17:59 2001 UTC (12 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.75.2.4: +7 -338 lines
Diff to previous 1.75.2.4 (colored) to branchpoint 1.75 (colored) to selected 1.112 (colored)

Catch up to -current.

Revision 1.91 / (download) - annotate - [select for diffs], Tue Nov 13 00:32:42 2001 UTC (12 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.90: +4 -1 lines
Diff to previous 1.90 (colored) to selected 1.112 (colored)

add RCSIDs

Revision 1.85.2.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:19:29 2001 UTC (12 years, 5 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.85: +4 -338 lines
Diff to previous 1.85 (colored) next main 1.86 (colored) to selected 1.112 (colored)

Sync the thorpej-mips-cache branch with -current.

Revision 1.90 / (download) - annotate - [select for diffs], Wed Nov 7 06:30:50 2001 UTC (12 years, 5 months ago) by itojun
Branch: MAIN
CVS Tags: thorpej-mips-cache-base
Changes since 1.89: +2 -25 lines
Diff to previous 1.89 (colored) to selected 1.112 (colored)

do not grab packet to joined multicast group, when ip6_dst and in6p_laddr
mismatches.  it makes the behavior more closer to 4.4BSD IPv4 code.
sync with kame

Revision 1.89 / (download) - annotate - [select for diffs], Sun Nov 4 20:55:29 2001 UTC (12 years, 5 months ago) by matt
Branch: MAIN
Changes since 1.88: +5 -10 lines
Diff to previous 1.88 (colored) to selected 1.112 (colored)

Convert netinet to not use the internal <sys/queue.h> field names
but instead the access macros.  Use the FOREACH macros where appropriate.

Revision 1.88 / (download) - annotate - [select for diffs], Fri Nov 2 02:37:50 2001 UTC (12 years, 5 months ago) by itojun
Branch: MAIN
Changes since 1.87: +2 -2 lines
Diff to previous 1.87 (colored) to selected 1.112 (colored)

array boundary overflow on the use of IPv4 mapped address.  from simonb

Revision 1.87 / (download) - annotate - [select for diffs], Mon Oct 29 07:02:34 2001 UTC (12 years, 5 months ago) by simonb
Branch: MAIN
Changes since 1.86: +1 -3 lines
Diff to previous 1.86 (colored) to selected 1.112 (colored)

Don't need to include <uvm/uvm_extern.h> just to include <sys/sysctl.h>
anymore.

Revision 1.86 / (download) - annotate - [select for diffs], Wed Oct 24 06:04:08 2001 UTC (12 years, 6 months ago) by itojun
Branch: MAIN
Changes since 1.85: +1 -305 lines
Diff to previous 1.85 (colored) to selected 1.112 (colored)

remove unused codepath (unifdef -UUDP6)

Revision 1.75.2.4 / (download) - annotate - [select for diffs], Mon Oct 22 20:41:58 2001 UTC (12 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.75.2.3: +3 -7 lines
Diff to previous 1.75.2.3 (colored) to branchpoint 1.75 (colored) to selected 1.112 (colored)

Catch up to -current.

Revision 1.85 / (download) - annotate - [select for diffs], Mon Oct 15 09:51:15 2001 UTC (12 years, 6 months ago) by itojun
Branch: MAIN
Branch point for: thorpej-mips-cache
Changes since 1.84: +3 -7 lines
Diff to previous 1.84 (colored) to selected 1.112 (colored)

implement IPV6_V6ONLY socket option from draft-ietf-ipngwg-rfc2553bis-03.txt.
IPV6_BINDV6ONLY (netbsd only) is deprecated, but still work just like before.

Revision 1.83.2.1 / (download) - annotate - [select for diffs], Mon Oct 1 12:47:50 2001 UTC (12 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.83: +2 -2 lines
Diff to previous 1.83 (colored) next main 1.84 (colored) to selected 1.112 (colored)

Catch up with -current.

Revision 1.75.2.3 / (download) - annotate - [select for diffs], Fri Sep 21 22:36:51 2001 UTC (12 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.75.2.2: +2 -2 lines
Diff to previous 1.75.2.2 (colored) to branchpoint 1.75 (colored) to selected 1.112 (colored)

Catch up to -current.

Revision 1.84 / (download) - annotate - [select for diffs], Mon Sep 17 17:27:01 2001 UTC (12 years, 7 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-devvp-base3, thorpej-devvp-base2
Changes since 1.83: +2 -2 lines
Diff to previous 1.83 (colored) to selected 1.112 (colored)

Split the pre-computed ifnet checksum flags into Tx and Rx directions.
Add capabilities bits that indicate an interface can only perform
in-bound TCPv4 or UDPv4 checksums.  There is at least one Gig-E chip
for which this is true (Level One LXT-1001), and this is also the
case for the Intel i82559 10/100 Ethernet chips.

Revision 1.75.2.2 / (download) - annotate - [select for diffs], Fri Aug 24 00:12:33 2001 UTC (12 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.75.2.1: +27 -114 lines
Diff to previous 1.75.2.1 (colored) to branchpoint 1.75 (colored) to selected 1.112 (colored)

Catch up with -current.

Revision 1.80.2.1 / (download) - annotate - [select for diffs], Fri Aug 3 04:13:57 2001 UTC (12 years, 8 months ago) by lukem
Branch: kqueue
Changes since 1.80: +5 -93 lines
Diff to previous 1.80 (colored) to selected 1.112 (colored)

update to -current

Revision 1.83 / (download) - annotate - [select for diffs], Wed Jul 25 23:28:02 2001 UTC (12 years, 9 months ago) by itojun
Branch: MAIN
CVS Tags: thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp
Changes since 1.82: +1 -8 lines
Diff to previous 1.82 (colored) to selected 1.112 (colored)

allocate ipsec policy buffer attached to pcb in in*_pcballoc, before
giving anyone accesses to pcb (do not reveal an inconsistent ones).
sync with kame

Revision 1.82 / (download) - annotate - [select for diffs], Wed Jul 25 06:05:16 2001 UTC (12 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.81: +3 -86 lines
Diff to previous 1.81 (colored) to selected 1.112 (colored)

g/c #if 0'ed fragment.  sync with kame.

Revision 1.81 / (download) - annotate - [select for diffs], Tue Jul 17 02:44:00 2001 UTC (12 years, 9 months ago) by enami
Branch: MAIN
Changes since 1.80: +3 -1 lines
Diff to previous 1.80 (colored) to selected 1.112 (colored)

Add missing counting up of ``socket buffer is full'' counter when
failed to sbappendaddr().

Revision 1.80 / (download) - annotate - [select for diffs], Tue Jul 3 08:06:20 2001 UTC (12 years, 9 months ago) by itojun
Branch: MAIN
Branch point for: kqueue
Changes since 1.79: +2 -1 lines
Diff to previous 1.79 (colored) to selected 1.112 (colored)

call in{,6}_pcbpurgeif0() before in{,6}_purgeif().

Revision 1.79 / (download) - annotate - [select for diffs], Wed Jun 27 23:40:50 2001 UTC (12 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.78: +22 -22 lines
Diff to previous 1.78 (colored) to selected 1.112 (colored)

fix udp reception to sockets bound to linklocal address (like fe80::1%lo0).
sync with kame

Revision 1.75.2.1 / (download) - annotate - [select for diffs], Thu Jun 21 20:08:46 2001 UTC (12 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.75: +118 -31 lines
Diff to previous 1.75 (colored) to selected 1.112 (colored)

Catch up to -current.

Revision 1.78 / (download) - annotate - [select for diffs], Sat Jun 2 16:17:11 2001 UTC (12 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.77: +103 -20 lines
Diff to previous 1.77 (colored) to selected 1.112 (colored)

Implement support for IP/TCP/UDP checksum offloading provided by
network interfaces.  This works by pre-computing the pseudo-header
checksum and caching it, delaying the actual checksum to ip_output()
if the hardware cannot perform the sum for us.  In-bound checksums
can either be fully-checked by hardware, or summed up for final
verification by software.  This method was modeled after how this
is done in FreeBSD, although the code is significantly different in
most places.

We don't delay checksums for IPv6/TCP, but we do take advantage of the
cached pseudo-header checksum.

Note: hardware-assisted checksumming defaults to "off".  It is
enabled with ifconfig(8).  See the manual page for details.

Implement hardware-assisted checksumming on the DP83820 Gigabit Ethernet,
3c90xB/3c90xC 10/100 Ethernet, and Alteon Tigon/Tigon2 Gigabit Ethernet.

Revision 1.77 / (download) - annotate - [select for diffs], Thu May 31 19:56:13 2001 UTC (12 years, 10 months ago) by soda
Branch: MAIN
Changes since 1.76: +2 -1 lines
Diff to previous 1.76 (colored) to selected 1.112 (colored)

missing opt_inet.h

Revision 1.66.4.5 / (download) - annotate - [select for diffs], Wed May 9 19:37:41 2001 UTC (12 years, 11 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001
Changes since 1.66.4.4: +15 -12 lines
Diff to previous 1.66.4.4 (colored) to branchpoint 1.66 (colored) to selected 1.112 (colored)

Pull up revision 1.76 (requested by itojun):
  Correct faith prefix determintaion.

Revision 1.76 / (download) - annotate - [select for diffs], Tue May 8 10:15:14 2001 UTC (12 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.75: +15 -12 lines
Diff to previous 1.75 (colored) to selected 1.112 (colored)

correct faith prefix determination.  use sys/netinet/if_faith.c:faithprefix()
to determine.  sync with kame.
(without this change, non-faith socket may mistakenly accept for-faith traffic)

Revision 1.66.4.4 / (download) - annotate - [select for diffs], Fri Apr 6 00:26:54 2001 UTC (13 years ago) by he
Branch: netbsd-1-5
Changes since 1.66.4.3: +5 -2 lines
Diff to previous 1.66.4.3 (colored) to branchpoint 1.66 (colored) to selected 1.112 (colored)

Pull up revision 1.75 (requested by itojun):
  Record IPsec packet history in m_aux structure.  Let ipfilter
  look at wire-format packet only (not the decapsulated ones), so
  that VPN setting can work with NAT/ipfilter settings.

Revision 1.52.2.3 / (download) - annotate - [select for diffs], Sun Feb 11 19:17:19 2001 UTC (13 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.52.2.2: +5 -2 lines
Diff to previous 1.52.2.2 (colored) to branchpoint 1.52 (colored) next main 1.53 (colored) to selected 1.112 (colored)

Sync with HEAD.

Revision 1.75 / (download) - annotate - [select for diffs], Wed Jan 24 09:04:16 2001 UTC (13 years, 3 months ago) by itojun
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Changes since 1.74: +5 -2 lines
Diff to previous 1.74 (colored) to selected 1.112 (colored)

- record IPsec packet history into m_aux structure.
- let ipfilter look at wire-format packet only (not the decapsulated ones),
  so that VPN setting can work with NAT/ipfilter settings.
sync with kame.

TODO: use header history for stricter inbound validation

Revision 1.66.4.3 / (download) - annotate - [select for diffs], Fri Dec 15 03:29:16 2000 UTC (13 years, 4 months ago) by he
Branch: netbsd-1-5
Changes since 1.66.4.2: +3 -3 lines
Diff to previous 1.66.4.2 (colored) to branchpoint 1.66 (colored) to selected 1.112 (colored)

Pull up revision 1.74 (requested by hubertf):
  Fix multicast inbound packet processing.  Fixes PR#11629.
  (Required continuation of previous pullup.)

Revision 1.66.4.2 / (download) - annotate - [select for diffs], Wed Dec 13 21:24:57 2000 UTC (13 years, 4 months ago) by he
Branch: netbsd-1-5
Changes since 1.66.4.1: +3 -3 lines
Diff to previous 1.66.4.1 (colored) to branchpoint 1.66 (colored) to selected 1.112 (colored)

Pull up revision 1.73 (requested by itojun):
  Fix multicast inbound packet processing.  Fixes PR#11629.

Revision 1.52.2.2 / (download) - annotate - [select for diffs], Fri Dec 8 09:18:43 2000 UTC (13 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.52.2.1: +5 -5 lines
Diff to previous 1.52.2.1 (colored) to branchpoint 1.52 (colored) to selected 1.112 (colored)

Sync with HEAD.

Revision 1.74 / (download) - annotate - [select for diffs], Mon Dec 4 11:24:20 2000 UTC (13 years, 4 months ago) by itojun
Branch: MAIN
Changes since 1.73: +3 -3 lines
Diff to previous 1.73 (colored) to selected 1.112 (colored)

more on previous (udp4 multicast fix)

Revision 1.73 / (download) - annotate - [select for diffs], Mon Dec 4 11:23:04 2000 UTC (13 years, 4 months ago) by itojun
Branch: MAIN
Changes since 1.72: +3 -3 lines
Diff to previous 1.72 (colored) to selected 1.112 (colored)

fix multicast inbound packet processing.
NetBSD PR 11629 From: salvet@ics.muni.cz

Revision 1.52.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:10:38 2000 UTC (13 years, 5 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.52: +779 -56 lines
Diff to previous 1.52 (colored) to selected 1.112 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.72 / (download) - annotate - [select for diffs], Tue Oct 17 03:06:44 2000 UTC (13 years, 6 months ago) by itojun
Branch: MAIN
Changes since 1.71: +15 -1 lines
Diff to previous 1.71 (colored) to selected 1.112 (colored)

be more friendly with INET-less build.
XXX we need to do more to do a working INET-less build

Revision 1.71 / (download) - annotate - [select for diffs], Wed Aug 30 15:04:45 2000 UTC (13 years, 7 months ago) by itojun
Branch: MAIN
Changes since 1.70: +4 -4 lines
Diff to previous 1.70 (colored) to selected 1.112 (colored)

minor typo.  s/iPsec/IPsec/

Revision 1.66.4.1 / (download) - annotate - [select for diffs], Fri Jul 28 16:58:10 2000 UTC (13 years, 8 months ago) by sommerfeld
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Changes since 1.66: +3 -3 lines
Diff to previous 1.66 (colored) to selected 1.112 (colored)

Pull up UDP, ICMP fixes:

 - Drop packet, increment udps_badlen if the udp header length field
   reports a size smaller than the udp header; defends against bogus
   packets seen by by Assar Westerlund.

 - allow icmp_error() to work when icmpreturndatabytes is sufficiently
   large that the icmp error message doesn't fit in a header mbuf.

 - defend against mbuf chains shorter than their contained ip->ip_len.

Joint work of myself, itojun, and assar
Approved by thorpej

revisions pulled up:
	sys/netinet/ip_icmp.c		1.52
	sys/netinet/udp_usrreq.c	1.70

Revision 1.70 / (download) - annotate - [select for diffs], Mon Jul 24 03:46:57 2000 UTC (13 years, 9 months ago) by sommerfeld
Branch: MAIN
Changes since 1.69: +3 -3 lines
Diff to previous 1.69 (colored) to selected 1.112 (colored)

Drop packet, increment udps_badlen if the udp header length field
reports a size smaller than the udp header; defends against bogosity
detected by Assar Westerlund.

This patch and the previous ip_icmp.c change were the joint work of
assar, itojun, and myself.

Revision 1.69 / (download) - annotate - [select for diffs], Fri Jul 7 15:54:16 2000 UTC (13 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.68: +9 -19 lines
Diff to previous 1.68 (colored) to selected 1.112 (colored)

sync with kame.
introduce in6_{recover,embed}scope, for in-kernel scoped-address manipulation.
improve in6_pcbnotify.

Revision 1.68 / (download) - annotate - [select for diffs], Thu Jul 6 12:51:40 2000 UTC (13 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.67: +1 -2 lines
Diff to previous 1.67 (colored) to selected 1.112 (colored)

remove unnecessary #include <netkey/key_debug.h>.  from kame.

Revision 1.67 / (download) - annotate - [select for diffs], Wed Jun 28 03:01:17 2000 UTC (13 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.66: +2 -2 lines
Diff to previous 1.66 (colored) to selected 1.112 (colored)

<vm/vm.h> -> <uvm/uvm_extern.h>

Revision 1.66 / (download) - annotate - [select for diffs], Thu Mar 30 13:25:11 2000 UTC (14 years ago) by augustss
Branch: MAIN
CVS Tags: netbsd-1-5-base, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.65: +13 -13 lines
Diff to previous 1.65 (colored) to selected 1.112 (colored)

Remove register declarations.

Revision 1.65 / (download) - annotate - [select for diffs], Thu Mar 30 02:39:37 2000 UTC (14 years ago) by simonb
Branch: MAIN
Changes since 1.64: +1 -2 lines
Diff to previous 1.64 (colored) to selected 1.112 (colored)

Delete reduncdant decl of inetctlerrmap - it's in <netinet/in_var.h>.

Revision 1.64 / (download) - annotate - [select for diffs], Wed Mar 22 20:58:30 2000 UTC (14 years, 1 month ago) by ws
Branch: MAIN
Changes since 1.63: +9 -6 lines
Diff to previous 1.63 (colored) to selected 1.112 (colored)

Make IPKDB working again.
Add support for i386 debugging and pci-based ne2000 boards.

Revision 1.63 / (download) - annotate - [select for diffs], Wed Mar 1 12:49:42 2000 UTC (14 years, 1 month ago) by itojun
Branch: MAIN
Changes since 1.62: +2 -2 lines
Diff to previous 1.62 (colored) to selected 1.112 (colored)

introduce m->m_pkthdr.aux to hold random data which needs to be passed
between protocol handlers.

ipsec socket pointers, ipsec decryption/auth information, tunnel
decapsulation information are in my mind - there can be several other usage.
at this moment, we use this for ipsec socket pointer passing.  this will
avoid reuse of m->m_pkthdr.rcvif in ipsec code.

due to the change, MHLEN will be decreased by sizeof(void *) - for example,
for i386, MHLEN was 100 bytes, but is now 96 bytes.
we may want to increase MSIZE from 128 to 256 for some of our architectures.

take caution if you use it for keeping some data item for long period
of time - use extra caution on M_PREPEND() or m_adj(), as they may result
in loss of m->m_pkthdr.aux pointer (and mbuf leak).

this will bump kernel version.

(as discussed in tech-net, tested in kame tree)

Revision 1.62 / (download) - annotate - [select for diffs], Tue Feb 29 16:21:56 2000 UTC (14 years, 1 month ago) by itojun
Branch: MAIN
Changes since 1.61: +1 -22 lines
Diff to previous 1.61 (colored) to selected 1.112 (colored)

avoid copy-overwrite-copy on incoming udp4 checksum.  use in4_cksum
which takes care of pseudo header checksum without overwrites.

Revision 1.61 / (download) - annotate - [select for diffs], Fri Feb 11 10:43:36 2000 UTC (14 years, 2 months ago) by itojun
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.60: +7 -11 lines
Diff to previous 1.60 (colored) to selected 1.112 (colored)

don't increase both "no port on broadcast packet" and "no port" stat.
increasing both of them will result in negative number on udp
"delivered" stat on netstat(8), since netstat computes number of delivered
packet by subtracting them from number of inbound packets.

Revision 1.60 / (download) - annotate - [select for diffs], Wed Feb 2 23:28:09 2000 UTC (14 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.59: +4 -3 lines
Diff to previous 1.59 (colored) to selected 1.112 (colored)

PRU_PURGEADDR -> PRU_PURGEIF, per a discussion w/ itojun.  In the IPv4
and IPv6 code, also use this to traverse PCB tables, looking for cached
routes referencing the dying ifnet, forcing them to be refreshed.

Revision 1.59 / (download) - annotate - [select for diffs], Tue Feb 1 22:52:10 2000 UTC (14 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.58: +6 -1 lines
Diff to previous 1.58 (colored) to selected 1.112 (colored)

First-draft if_detach() implementation, originally from Bill Studnemund,
although this version has been changed somewhat:
- reference counting on ifaddrs isn't as complete as Bill's original
  work was.  This is hard to get right, and we should attack one
  protocol at a time.
- This doesn't do reference counting or dynamic allocation of ifnets yet.
- This version introduces a new PRU -- PRU_PURGEADDR, which is used to
  purge an ifaddr from a protocol.  The old method Bill used didn't work
  on all protocols, and it only worked on some because it was Very Lucky.

This mostly works ... i.e. works for my USB Ethernet, except for a dangling
ifaddr reference left by the IPv6 code; have not yet tracked this down.

Revision 1.58 / (download) - annotate - [select for diffs], Mon Jan 31 14:18:58 2000 UTC (14 years, 2 months ago) by itojun
Branch: MAIN
Changes since 1.57: +2 -2 lines
Diff to previous 1.57 (colored) to selected 1.112 (colored)

bring in latest KAME ipsec tree.
- interop issues in ipcomp is fixed
- padding type (after ESP) is configurable
- key database memory management (need more fixes)
- policy specification is revisited

XXX m->m_pkthdr.rcvif is still overloaded - hope to fix it soon

Revision 1.57 / (download) - annotate - [select for diffs], Mon Jan 31 10:39:26 2000 UTC (14 years, 2 months ago) by itojun
Branch: MAIN
Changes since 1.56: +13 -1 lines
Diff to previous 1.56 (colored) to selected 1.112 (colored)

destination port == 0 is illegal based on RFC768.
(NetBSD PR: 9137 - I thought I committed this already but I wasn't)

Revision 1.56 / (download) - annotate - [select for diffs], Thu Jan 6 15:46:08 2000 UTC (14 years, 3 months ago) by itojun
Branch: MAIN
Changes since 1.55: +5 -3 lines
Diff to previous 1.55 (colored) to selected 1.112 (colored)

remove extra portability #ifdef (like #ifdef __FreeBSD__) in KAME IPv6/IPsec
code, from netbsd-current repository.
#ifdef'ed version is always available from ftp.kame.net.

XXX please do not make too many diff-unfriendly changes, we'll need to take
bunch of diffs on upgrade...

Revision 1.55 / (download) - annotate - [select for diffs], Thu Jan 6 06:41:19 2000 UTC (14 years, 3 months ago) by itojun
Branch: MAIN
Changes since 1.54: +15 -1 lines
Diff to previous 1.54 (colored) to selected 1.112 (colored)

make IPV6_BINDV6ONLY setsockopt available.  it controls behavior of
AF_INET6 wildcard listening socket.  heavily documented in ip6(4).
net.inet6.ip6.bindv6only defines default value.  default is 1.

"options INET6_BINDV6ONLY" removes any code fragment that supports
IPV6_BINDV6ONLY == 0 case (not defopt'ed as use of this is rare).

Revision 1.52.8.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:36:21 1999 UTC (14 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.52: +736 -34 lines
Diff to previous 1.52 (colored) next main 1.53 (colored) to selected 1.112 (colored)

Pull up to last week's -current.

Revision 1.54 / (download) - annotate - [select for diffs], Wed Dec 22 04:03:01 1999 UTC (14 years, 4 months ago) by itojun
Branch: MAIN
Changes since 1.53: +8 -1 lines
Diff to previous 1.53 (colored) to selected 1.112 (colored)

drop IPv6 packets with v4 mapped address on src/dst.  they are illegal
and may be used to fool IPv6 implementations (by using ::ffff:127.0.0.1 as
source you may be able to pretend the packet is from local node)

Revision 1.53 / (download) - annotate - [select for diffs], Mon Dec 13 15:17:21 1999 UTC (14 years, 4 months ago) by itojun
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Changes since 1.52: +736 -34 lines
Diff to previous 1.52 (colored) to selected 1.112 (colored)

sync IPv6 part with latest KAME tree.   IPsec part is left unmodified
due to massive changes in KAME side.
- IPv6 output goes through nd6_output
- faith can capture IPv4 packets as well - you can run IPv4-to-IPv6 translator
  using heavily modified DNS servers
- per-interface statistics (required for IPv6 MIB)
- interface autoconfig is revisited
- udp input handling has a big change for mapped address support.
- introduce in4_cksum() for non-overwriting checksumming
- introduce m_pulldown()
- neighbor discovery cleanups/improvements
- netinet/in.h strictly conforms to RFC2553 (no extra defs visible to userland)
- IFA_STATS is fixed a bit (not tested)
- and more more more.

TODO:
- cleanup os-independency #ifdef
- avoid rcvif dual use (for IPsec) to help ifdetach

(sorry for jumbo commit, I can't separate this any more...)

Revision 1.47.6.3 / (download) - annotate - [select for diffs], Tue Nov 30 13:35:42 1999 UTC (14 years, 4 months ago) by itojun
Branch: kame
CVS Tags: kame_141_19991130
Changes since 1.47.6.2: +743 -32 lines
Diff to previous 1.47.6.2 (colored) to branchpoint 1.47 (colored) next main 1.48 (colored) to selected 1.112 (colored)

bring in latest KAME (as of 19991130, KAME/NetBSD141) into kame branch
just for reference purposes.
This commit includes 1.4 -> 1.4.1 sync for kame branch.

The branch does not compile at all (due to the lack of ALTQ and some other
source code).  Please do not try to modify the branch, this is just for
referenre purposes.

synchronization to latest KAME will take place on HEAD branch soon.

Revision 1.52 / (download) - annotate - [select for diffs], Mon Sep 13 12:15:55 1999 UTC (14 years, 7 months ago) by itojun
Branch: MAIN
CVS Tags: fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize, thorpej_scsipi
Changes since 1.51: +3 -2 lines
Diff to previous 1.51 (colored) to selected 1.112 (colored)

- Call in{,6}_pcbdetach if ipsec initialization is failed during PRU_ATTACH.
  This situation happens on severe memory shortage.  We may need more
  improvements here and there.
- Grab IEEE802 address from IFT_ETHER card, even if the card is
  inserted after bootup time.  Is there any other card that can be
  inserted afterwards?  pcmcia fddi card? :-P
- RFC2373 u bit handling suggests that we SHOULD NOT copy interface id from
  ethernet card to pseudo interface, when ethernet card has IEEE802/EUI64
  with u bit != 0 (this means that IEEE802/EUI64 is not universally unique).
  Do not use such address as, for example, interface id for gif interface.
  (I have such an ethernet card myself)
  This may change interface id for your gif interface.  be careful upgrading
  rc files.

(sync with recent KAME)

Revision 1.51 / (download) - annotate - [select for diffs], Mon Aug 9 10:55:29 1999 UTC (14 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.50: +4 -1 lines
Diff to previous 1.50 (colored) to selected 1.112 (colored)

return with doing nothing from xx_ctlinput(), when sa->sa_family
is not the expected one.

I see PRC_REDIRECT_HOST with sa->sa_family == AF_UNIX coming to
{tcp,udp}_ctlinput() when I use dhclient, and I feel like adding
more sanity checks, without logging - if we log it it is too noisy.

Revision 1.47.4.2 / (download) - annotate - [select for diffs], Mon Aug 2 22:35:00 1999 UTC (14 years, 8 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.47.4.1: +10 -3 lines
Diff to previous 1.47.4.1 (colored) to branchpoint 1.47 (colored) next main 1.48 (colored) to selected 1.112 (colored)

Update from trunk.

Revision 1.50 / (download) - annotate - [select for diffs], Fri Jul 9 22:57:23 1999 UTC (14 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.49: +4 -1 lines
Diff to previous 1.49 (colored) to selected 1.112 (colored)

defopt IPSEC and IPSEC_ESP (both into opt_ipsec.h).

Revision 1.49 / (download) - annotate - [select for diffs], Tue Jul 6 14:37:47 1999 UTC (14 years, 9 months ago) by drochner
Branch: MAIN
Changes since 1.48: +7 -3 lines
Diff to previous 1.48 (colored) to selected 1.112 (colored)

for incoming broadcasts, strip IP/UDP header correctly
wrap a line

Revision 1.47.6.2 / (download) - annotate - [select for diffs], Tue Jul 6 11:02:51 1999 UTC (14 years, 9 months ago) by itojun
Branch: kame
CVS Tags: kame_14_19990705
Changes since 1.47.6.1: +33 -1 lines
Diff to previous 1.47.6.1 (colored) to branchpoint 1.47 (colored) to selected 1.112 (colored)

KAME/NetBSD 1.4, SNAP kit 1999/07/05.
NOTE: this branch is just for reference purposes (i.e. for taking cvs diff).
do not touch anything on the branch.  actual work must be done on HEAD branch.

Revision 1.47.4.1 / (download) - annotate - [select for diffs], Thu Jul 1 23:47:04 1999 UTC (14 years, 9 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.47: +116 -24 lines
Diff to previous 1.47 (colored) to selected 1.112 (colored)

Sync w/ -current.

Revision 1.48 / (download) - annotate - [select for diffs], Thu Jul 1 08:12:52 1999 UTC (14 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.47: +116 -24 lines
Diff to previous 1.47 (colored) to selected 1.112 (colored)

IPv6 kernel code, based on KAME/NetBSD 1.4, SNAP kit 19990628.
(Sorry for a big commit, I can't separate this into several pieces...)
Pls check sys/netinet6/TODO and sys/netinet6/IMPLEMENTATION for details.

- sys/kern: do not assume single mbuf, accept chained mbuf on passing
  data from userland to kernel (or other way round).
- "midway" ATM card: ATM PVC pseudo device support, like those done in ALTQ
  package (ftp://ftp.csl.sony.co.jp/pub/kjc/).
- sys/netinet/tcp*: IPv4/v6 dual stack tcp support.
- sys/netinet/{ip6,icmp6}.h, sys/net/pfkeyv2.h: IETF document assumes those
  file to be there so we patch it up.
- sys/netinet: IPsec additions are here and there.
- sys/netinet6/*: most of IPv6 code sits here.
- sys/netkey: IPsec key management code
- dev/pci/pcidevs: regen

In my understanding no code here is subject to export control so it
should be safe.

Revision 1.47.6.1 / (download) - annotate - [select for diffs], Mon Jun 28 06:37:02 1999 UTC (14 years, 9 months ago) by itojun
Branch: kame
CVS Tags: kame_14_19990628
Changes since 1.47: +86 -24 lines
Diff to previous 1.47 (colored) to selected 1.112 (colored)

KAME/NetBSD 1.4 SNAP kit, dated 19990628.

NOTE: this branch (kame) is used just for refernce.  this may not compile
due to multiple reasons.

Revision 1.47 / (download) - annotate - [select for diffs], Tue Jan 19 23:03:22 1999 UTC (15 years, 3 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4
Branch point for: kame, chs-ubc2
Changes since 1.46: +4 -6 lines
Diff to previous 1.46 (colored) to selected 1.112 (colored)

Don't screw with ip_len; just subtract from it where we actually use the
value.

Revision 1.46 / (download) - annotate - [select for diffs], Tue Jan 19 21:58:41 1999 UTC (15 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.45: +2 -2 lines
Diff to previous 1.45 (colored) to selected 1.112 (colored)

Don't overwrite the checksum fields when checking them.  There's no reason to
do this, and it screws up ICMP replies.
XXX The returned IP checksum and length are still wrong.

Revision 1.45 / (download) - annotate - [select for diffs], Mon Jan 11 22:35:07 1999 UTC (15 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.44: +2 -1 lines
Diff to previous 1.44 (colored) to selected 1.112 (colored)

Fix byte order and ip_len inconsistencies in ICMP reply code.  Also, fix
some formatting and HTONS(foo) vs. foo = htons(foo) inconsistencies.

PR #6602, Darren Reed.

Revision 1.44 / (download) - annotate - [select for diffs], Mon Jan 5 10:32:16 1998 UTC (16 years, 3 months ago) by thorpej
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach, eeh-paddr_t-base, eeh-paddr_t, chs-ubc-base, chs-ubc
Changes since 1.43: +3 -3 lines
Diff to previous 1.43 (colored) to selected 1.112 (colored)

Finishing merging 4.4BSD-Lite2 netinet.  At this point, the only changes
left were SCCS IDs and Copyright dates.

Revision 1.1.1.3 / (download) - annotate - [select for diffs] (vendor branch), Mon Jan 5 09:56:15 1998 UTC (16 years, 3 months ago) by thorpej
Branch: WFJ-920714, CSRG
CVS Tags: lite-2
Changes since 1.1.1.2: +4 -4 lines
Diff to previous 1.1.1.2 (colored) to selected 1.112 (colored)

Import sys/netinet from 4.4BSD-Lite2 for reference purposes.

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Mon Jan 5 09:54:30 1998 UTC (16 years, 3 months ago) by thorpej
Branch: WFJ-920714, CSRG
CVS Tags: lite-1, date-03-may-96
Changes since 1.1.1.1: +167 -41 lines
Diff to previous 1.1.1.1 (colored) to selected 1.112 (colored)

Import sys/netinet from 4.4BSD-Lite for reference purposes.

Revision 1.42.2.1 / (download) - annotate - [select for diffs], Tue Sep 16 03:51:20 1997 UTC (16 years, 7 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.42: +5 -3 lines
Diff to previous 1.42 (colored) next main 1.43 (colored) to selected 1.112 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.43 / (download) - annotate - [select for diffs], Fri Sep 12 10:58:31 1997 UTC (16 years, 7 months ago) by drochner
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3, marc-pcmcia-base
Changes since 1.42: +5 -3 lines
Diff to previous 1.42 (colored) to selected 1.112 (colored)

Adjust packet len in mbuf header for incoming broadcasts.
Closes PR kern/4087 (by myself).

Revision 1.42 / (download) - annotate - [select for diffs], Mon Jul 28 22:19:53 1997 UTC (16 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, marc-pcmcia-bp
Branch point for: marc-pcmcia
Changes since 1.41: +9 -3 lines
Diff to previous 1.41 (colored) to selected 1.112 (colored)

Make the following tunable via sysctl, inspired by BSD/OS:
- udp_sendspace
- udp_recvspace

Revision 1.41 / (download) - annotate - [select for diffs], Tue Jun 24 19:31:34 1997 UTC (16 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: bouyer-scsipi
Changes since 1.40: +1 -2 lines
Diff to previous 1.40 (colored) to selected 1.112 (colored)

Don't adjust ip->ip_len before calling icmp_error(); icmp_error() already
does this.  Per Stevens in TCP/IP Illustrated Vol. 2, p.774, submitted
by Koji Imada <koji@math.human.nagoya-u.ac.jp>.

Revision 1.40 / (download) - annotate - [select for diffs], Sat Jan 11 05:21:14 1997 UTC (17 years, 3 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-setroot, mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp
Changes since 1.39: +27 -64 lines
Diff to previous 1.39 (colored) to selected 1.112 (colored)

Implement the IP_RECVIF socket option: supply a datagram packet's incoming
interface using a sockaddr_dl in a control mbuf.

Implement SO_TIMESTAMP for IP datagrams.

Move packet information option processing into a generic function
so that they work with multicast UDP and raw IP as well as unicast UDP.

Contributed by Bill Fenner <fenner@parc.xerox.com>.

Revision 1.29.2.2 / (download) - annotate - [select for diffs], Wed Dec 11 04:01:12 1996 UTC (17 years, 4 months ago) by mycroft
Branch: netbsd-1-2
CVS Tags: netbsd-1-2-PATCH001
Changes since 1.29.2.1: +87 -113 lines
Diff to previous 1.29.2.1 (colored) to branchpoint 1.29 (colored) next main 1.30 (colored) to selected 1.112 (colored)

From trunk:
Eliminate SS_PRIV; instead, pass down a proc pointer to the usrreq methods
that need it.
Fix numerous memory leaks and bogus return values.

Revision 1.29.2.1 / (download) - annotate - [select for diffs], Sun Nov 10 21:57:55 1996 UTC (17 years, 5 months ago) by thorpej
Branch: netbsd-1-2
Changes since 1.29: +10 -1 lines
Diff to previous 1.29 (colored) to selected 1.112 (colored)

Update from trunk:
- Make ip_len and ip_off unsigned.
- Make sure we don't accept or transmit packets larger than the
  maximim IP packet size.
This fixes the so-called `death ping' bug.

Sum of work from Bill Fenner <fenner@parc.xerox.com>,
Kevin Lahey <kml@nas.nasa.gov>, and myself.

Thanks to Curt Sampson, Jukka Marin, and Kevin Lahey for testing
this under NetBSD 1.2

Revision 1.39 / (download) - annotate - [select for diffs], Fri Oct 25 06:35:16 1996 UTC (17 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.38: +10 -1 lines
Diff to previous 1.38 (colored) to selected 1.112 (colored)

In udp_output(), sanity check the length of the packet to be transmitted.
If it's larger than IP_MAXPACKET, return an error condition.
Based on a patch from Bill Fenner <fenner@parc.xerox.com>

Revision 1.38 / (download) - annotate - [select for diffs], Wed Oct 16 19:33:39 1996 UTC (17 years, 6 months ago) by ws
Branch: MAIN
Changes since 1.37: +9 -9 lines
Diff to previous 1.37 (colored) to selected 1.112 (colored)

Rename recently checked in KGDB to IPKDB to resolve conflicts with older KGDB

Revision 1.37 / (download) - annotate - [select for diffs], Mon Sep 30 16:16:45 1996 UTC (17 years, 6 months ago) by ws
Branch: MAIN
Changes since 1.36: +12 -1 lines
Diff to previous 1.36 (colored) to selected 1.112 (colored)

Add (and change) machine independent files for KGDB support

Revision 1.36 / (download) - annotate - [select for diffs], Mon Sep 16 17:45:19 1996 UTC (17 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.35: +5 -3 lines
Diff to previous 1.35 (colored) to selected 1.112 (colored)

Make sure the sin_zero fields are filled.

Revision 1.35 / (download) - annotate - [select for diffs], Sun Sep 15 18:11:11 1996 UTC (17 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.34: +9 -8 lines
Diff to previous 1.34 (colored) to selected 1.112 (colored)

Hash unconnected PCBs.

Revision 1.34 / (download) - annotate - [select for diffs], Mon Sep 9 14:51:23 1996 UTC (17 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.33: +25 -20 lines
Diff to previous 1.33 (colored) to selected 1.112 (colored)

Add in_nullhost() and in_hosteq() macros, to hide some protocol
details.  Also, fix a bug in TCP wrt SYN+URG packets.

Revision 1.33 / (download) - annotate - [select for diffs], Thu May 23 17:05:45 1996 UTC (17 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.32: +2 -7 lines
Diff to previous 1.32 (colored) to selected 1.112 (colored)

udp_output() doesn't actually take control data, so don't pretend it does.

Revision 1.32 / (download) - annotate - [select for diffs], Thu May 23 17:03:31 1996 UTC (17 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.31: +18 -9 lines
Diff to previous 1.31 (colored) to selected 1.112 (colored)

Make sure the control mbufs are freed in all cases.

Revision 1.31 / (download) - annotate - [select for diffs], Thu May 23 16:22:32 1996 UTC (17 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.30: +78 -109 lines
Diff to previous 1.30 (colored) to selected 1.112 (colored)

Fix a race condition in PRU_DISCONNECT.
Rearrange the code to deal with unconnected sockets slightly.
Other minor changes.

Revision 1.30 / (download) - annotate - [select for diffs], Wed May 22 13:55:37 1996 UTC (17 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.29: +5 -4 lines
Diff to previous 1.29 (colored) to selected 1.112 (colored)

Pass a proc pointer down to the usrreq and pcbbind functions for PRU_ATTACH, PRU_BIND and
PRU_CONTROL.  The usrreq interface really needs to be split up, but this will have to wait.
Remove SS_PRIV completely.

Revision 1.29 / (download) - annotate - [select for diffs], Mon May 20 16:56:20 1996 UTC (17 years, 11 months ago) by mrg
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-BETA
Branch point for: netbsd-1-2
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored) to selected 1.112 (colored)

if the sender set a cksum, check it, regardless if we care to
generate and send them ourselves.  from rich stevens.

Revision 1.28 / (download) - annotate - [select for diffs], Sat Mar 16 23:54:03 1996 UTC (18 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored) to selected 1.112 (colored)

Fix printf format args.

Revision 1.27 / (download) - annotate - [select for diffs], Tue Feb 13 23:44:32 1996 UTC (18 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.26: +47 -16 lines
Diff to previous 1.26 (colored) to selected 1.112 (colored)

netinet prototypes

Revision 1.24.2.1 / (download) - annotate - [select for diffs], Fri Feb 2 06:13:02 1996 UTC (18 years, 2 months ago) by mycroft
Branch: netbsd-1-1
Changes since 1.24: +11 -13 lines
Diff to previous 1.24 (colored) next main 1.25 (colored) to selected 1.112 (colored)

Bring in changes for mondo patch 2.

Revision 1.26 / (download) - annotate - [select for diffs], Wed Jan 31 03:49:38 1996 UTC (18 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.25: +11 -13 lines
Diff to previous 1.25 (colored) to selected 1.112 (colored)

Build a hash table of PCBs.  Hash function needs tweaking.

Revision 1.25 / (download) - annotate - [select for diffs], Tue Nov 21 01:07:46 1995 UTC (18 years, 5 months ago) by cgd
Branch: MAIN
Changes since 1.24: +4 -6 lines
Diff to previous 1.24 (colored) to selected 1.112 (colored)

make netinet work on systems where pointers and longs are 64 bits
(like the alpha).  Biggest problem: IP headers were overlayed with
structure which included pointers, and which therefore didn't overlay
properly on 64-bit machines.  Solution: instead of threading pointers
through IP header overlays, add a "queue element" structure to do
the threading, and point it at the ip headers.

Revision 1.24 / (download) - annotate - [select for diffs], Sat Aug 12 23:59:42 1995 UTC (18 years, 8 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001
Branch point for: netbsd-1-1
Changes since 1.23: +7 -7 lines
Diff to previous 1.23 (colored) to selected 1.112 (colored)

splnet --> splsoftnet

Revision 1.23 / (download) - annotate - [select for diffs], Mon Jun 26 08:46:16 1995 UTC (18 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored) to selected 1.112 (colored)

fix typo

Revision 1.22 / (download) - annotate - [select for diffs], Sun Jun 18 20:01:19 1995 UTC (18 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.21: +4 -3 lines
Diff to previous 1.21 (colored) to selected 1.112 (colored)

convert pcb lists to CIRCLEQs, so that the end can be looked at more
easily, and so that the original (insque/remque) logic can be effectively
mimiced.  (This fixes a bug in the previous set of list changes.)
also (since terminator is no longer null) reinstate uninitted list checks,
but mark them XXX.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Jun 12 06:48:56 1995 UTC (18 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.20: +3 -2 lines
Diff to previous 1.20 (colored) to selected 1.112 (colored)

Fix bogon in previous.

Revision 1.20 / (download) - annotate - [select for diffs], Mon Jun 12 06:46:40 1995 UTC (18 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.19: +8 -5 lines
Diff to previous 1.19 (colored) to selected 1.112 (colored)

Change in_pcbnotify*() to take an errno value.  Make inetctlerrmap[] an
array on ints, not u_chars.

Revision 1.19 / (download) - annotate - [select for diffs], Mon Jun 12 06:24:22 1995 UTC (18 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.18: +6 -7 lines
Diff to previous 1.18 (colored) to selected 1.112 (colored)

Oops.  Make source quench work again.

Revision 1.18 / (download) - annotate - [select for diffs], Mon Jun 12 00:48:06 1995 UTC (18 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.17: +35 -28 lines
Diff to previous 1.17 (colored) to selected 1.112 (colored)

Various cleanup, including:
* Convert several data structures to use queue.h.
* Split in_pcbnotify() into two parts; one for notifying a specific PCB, and
one for notifying all PCBs for a particular foreign address.

Revision 1.17 / (download) - annotate - [select for diffs], Sun Jun 4 05:07:20 1995 UTC (18 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.16: +7 -7 lines
Diff to previous 1.16 (colored) to selected 1.112 (colored)

Clean up many more casts.

Revision 1.16 / (download) - annotate - [select for diffs], Thu Jun 1 21:36:51 1995 UTC (18 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored) to selected 1.112 (colored)

Avoid byte-swapping IP addresses at run time.

Revision 1.15 / (download) - annotate - [select for diffs], Thu Apr 13 06:37:18 1995 UTC (19 years ago) by cgd
Branch: MAIN
Changes since 1.14: +5 -4 lines
Diff to previous 1.14 (colored) to selected 1.112 (colored)

be a bit more careful and explicit with types.  (basically a large no-op.)

Revision 1.14 / (download) - annotate - [select for diffs], Wed Jun 29 06:38:57 1994 UTC (19 years, 9 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Changes since 1.13: +3 -2 lines
Diff to previous 1.13 (colored) to selected 1.112 (colored)

New RCS ID's, take two.  they're more aesthecially pleasant, and use 'NetBSD'

Revision 1.13 / (download) - annotate - [select for diffs], Fri May 13 06:06:56 1994 UTC (19 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.12: +65 -33 lines
Diff to previous 1.12 (colored) to selected 1.112 (colored)

Update to 4.4-Lite networking code, with a few local changes.

Revision 1.12 / (download) - annotate - [select for diffs], Thu Feb 10 18:46:06 1994 UTC (20 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored) to selected 1.112 (colored)

Format police.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Feb 2 05:59:10 1994 UTC (20 years, 2 months ago) by hpeyerl
Branch: MAIN
Changes since 1.10: +2 -16 lines
Diff to previous 1.10 (colored) to selected 1.112 (colored)

Multicast is no longer optional.

Revision 1.10 / (download) - annotate - [select for diffs], Mon Jan 10 20:14:34 1994 UTC (20 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.9: +5 -3 lines
Diff to previous 1.9 (colored) to selected 1.112 (colored)

Should compile now with or without `options MULTICAST'.

Revision 1.9 / (download) - annotate - [select for diffs], Sat Jan 8 23:50:47 1994 UTC (20 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.8: +5 -2 lines
Diff to previous 1.8 (colored) to selected 1.112 (colored)

More prototypes.

Revision 1.8 / (download) - annotate - [select for diffs], Sat Jan 8 23:19:48 1994 UTC (20 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.7: +13 -14 lines
Diff to previous 1.7 (colored) to selected 1.112 (colored)

Slight rearrangement.

Revision 1.7 / (download) - annotate - [select for diffs], Sat Jan 8 23:17:18 1994 UTC (20 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.6: +15 -3 lines
Diff to previous 1.6 (colored) to selected 1.112 (colored)

Prototypes.

Revision 1.6 / (download) - annotate - [select for diffs], Sat Jan 8 21:22:06 1994 UTC (20 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.5: +3 -4 lines
Diff to previous 1.5 (colored) to selected 1.112 (colored)

Fix some inconsistent spacing; spaces at the end of lines, etc.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Dec 18 00:42:15 1993 UTC (20 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.4: +18 -18 lines
Diff to previous 1.4 (colored) to selected 1.112 (colored)

Canonicalize all #includes.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Dec 6 04:59:45 1993 UTC (20 years, 4 months ago) by hpeyerl
Branch: MAIN
Changes since 1.3: +97 -4 lines
Diff to previous 1.3 (colored) to selected 1.112 (colored)

multicast support.
>From Chris Maeda, cmaeda@cs.washington.edu
These patches are derived from the IP Multicast patches for BSDI.

Revision 1.3.4.1 / (download) - annotate - [select for diffs], Fri Sep 24 08:55:04 1993 UTC (20 years, 7 months ago) by mycroft
Branch: magnum
Changes since 1.3: +3 -1 lines
Diff to previous 1.3 (colored) next main 1.4 (colored) to selected 1.112 (colored)

Make all files using spl*() #include cpu.h.  Changes from trunk.

Revision 1.3 / (download) - annotate - [select for diffs], Sat May 22 11:42:52 1993 UTC (20 years, 11 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-0-9-patch-001, netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9, magnum-base
Branch point for: magnum
Changes since 1.2: +1 -2 lines
Diff to previous 1.2 (colored) to selected 1.112 (colored)

add include of select.h if necessary for protos, or delete if extraneous

Revision 1.2 / (download) - annotate - [select for diffs], Tue May 18 18:20:23 1993 UTC (20 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.1: +3 -1 lines
Diff to previous 1.1 (colored) to selected 1.112 (colored)

make kernel select interface be one-stop shopping & clean it all up.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (21 years, 1 month ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-8, WFJ-386bsd-01
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored) to selected 1.112 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (21 years, 1 month ago) by cgd
Branch: MAIN
Diff to selected 1.112 (colored)

Initial revision

This form allows you to request diff's 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.




CVSweb <webmaster@jp.NetBSD.org>