NetBSD

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

[BACK] Up to [NetBSD] / src / sys / netinet

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.203: download - view: text, markup, annotated - select for diffs
Wed Jul 1 16:47:54 2009 (3 days, 6 hours ago) by martin
Branches: MAIN
CVS tags: HEAD
Diff to previous 1.202: preferred, colored
Changes since revision 1.202: +5 -3 lines
From Wolfgang Stukenbrock in PR kern/41659: add missing splx().

Revision 1.195.2.3: download - view: text, markup, annotated - select for diffs
Sat May 16 12:41:50 2009 (7 weeks ago) by yamt
Branches: yamt-nfs-mp
Diff to previous 1.195.2.2: preferred, colored to branchpoint 1.195: preferred, colored next main 1.196: preferred, colored
Changes since revision 1.195.2.2: +3 -15 lines
sync with head

Revision 1.200.8.1: download - view: text, markup, annotated - select for diffs
Wed May 13 19:22:28 2009 (7 weeks, 3 days ago) by jym
Branches: jym-xensuspend
Diff to previous 1.200: preferred, colored next main 1.201: preferred, colored
Changes since revision 1.200: +4 -16 lines
Sync with HEAD.

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

Revision 1.202: download - view: text, markup, annotated - select for diffs
Wed May 6 23:41:59 2009 (8 weeks, 2 days ago) by elad
Branches: MAIN
CVS tags: yamt-nfs-mp-base5, yamt-nfs-mp-base4, jym-xensuspend-nbase, jym-xensuspend-base
Diff to previous 1.201: preferred, colored
Changes since revision 1.201: +3 -15 lines
Remove some usage of "priv" and "privileged" variables and instead pass
around credentials. Also push down kauth(9) calls closer to where the
operation is done.

Mailing list reference:

	http://mail-index.netbsd.org/tech-net/2009/04/30/msg001270.html

Revision 1.195.2.2: download - view: text, markup, annotated - select for diffs
Mon May 4 10:14:17 2009 (2 months ago) by yamt
Branches: yamt-nfs-mp
Diff to previous 1.195.2.1: preferred, colored to branchpoint 1.195: preferred, colored
Changes since revision 1.195.2.1: +208 -213 lines
sync with head.

Revision 1.200.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 28 09:37:22 2009 (2 months ago) by skrll
Branches: nick-hppapmap
Diff to previous 1.200: preferred, colored next main 1.201: preferred, colored
Changes since revision 1.200: +3 -3 lines
Sync with HEAD.

Revision 1.201: download - view: text, markup, annotated - select for diffs
Wed Mar 18 17:00:22 2009 CET (3 months, 2 weeks ago) by cegger
Branches: MAIN
CVS tags: yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base
Diff to previous 1.200: preferred, colored
Changes since revision 1.200: +3 -3 lines
bzero -> memset

Revision 1.192.6.3: download - view: text, markup, annotated - select for diffs
Sat Jan 17 14:29:32 2009 CET (5 months, 2 weeks ago) by mjf
Branches: mjf-devfs2
Diff to previous 1.192.6.2: preferred, colored to branchpoint 1.192: preferred, colored next main 1.193: preferred, colored
Changes since revision 1.192.6.2: +85 -75 lines
Sync with HEAD.

Revision 1.196.6.1: download - view: text, markup, annotated - select for diffs
Mon Oct 20 00:17:46 2008 (8 months, 2 weeks ago) by haad
Branches: haad-dm
Diff to previous 1.196: preferred, colored next main 1.197: preferred, colored
Changes since revision 1.196: +207 -212 lines
Sync with HEAD.

Revision 1.200: download - view: text, markup, annotated - select for diffs
Sun Oct 12 13:15:54 2008 (8 months, 3 weeks ago) by plunky
Branches: MAIN
CVS tags: nick-hppapmap-base2, netbsd-5-base, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0, netbsd-5, mjf-devfs2-base, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, jym-xensuspend
Diff to previous 1.199: preferred, colored
Changes since revision 1.199: +77 -72 lines
update ip_pcbopts() to use sockopt(9) API.

cleans up function and one small fix is that we now stop copying user
options to the mbuf when the _EOL is given, previously this function
would continue to copy options.

Revision 1.199: download - view: text, markup, annotated - select for diffs
Sun Oct 12 12:23:18 2008 (8 months, 3 weeks ago) by plunky
Branches: MAIN
Diff to previous 1.198: preferred, colored
Changes since revision 1.198: +11 -6 lines
do not sleep while allocating memory here as socket lock is held

Revision 1.192.6.2: download - view: text, markup, annotated - select for diffs
Sun Sep 28 12:40:58 2008 (9 months ago) by mjf
Branches: mjf-devfs2
Diff to previous 1.192.6.1: preferred, colored to branchpoint 1.192: preferred, colored
Changes since revision 1.192.6.1: +139 -154 lines
Sync with HEAD.

Revision 1.196.2.1: download - view: text, markup, annotated - select for diffs
Thu Sep 18 06:37:01 2008 (9 months, 2 weeks ago) by wrstuden
Branches: wrstuden-revivesa
Diff to previous 1.196: preferred, colored next main 1.197: preferred, colored
Changes since revision 1.196: +141 -156 lines
Sync with wrstuden-revivesa-base-2.

Revision 1.198: download - view: text, markup, annotated - select for diffs
Sat Aug 16 23:51:43 2008 (10 months, 2 weeks ago) by plunky
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2
Diff to previous 1.197: preferred, colored
Changes since revision 1.197: +4 -4 lines
constify sockopt in the PRCO_SETOPT path

Revision 1.197: download - view: text, markup, annotated - select for diffs
Wed Aug 6 17:01:23 2008 (10 months, 4 weeks ago) by plunky
Branches: MAIN
Diff to previous 1.196: preferred, colored
Changes since revision 1.196: +141 -156 lines
Convert socket options code to use a sockopt structure
instead of laying everything into an mbuf.

approved by core

Revision 1.192.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 2 15:24:24 2008 (13 months ago) by mjf
Branches: mjf-devfs2
Diff to previous 1.192: preferred, colored
Changes since revision 1.192: +18 -23 lines
Sync with HEAD.

Revision 1.194.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 14:35:29 2008 (13 months, 2 weeks ago) by yamt
Branches: yamt-pf42
Diff to previous 1.194: preferred, colored next main 1.195: preferred, colored
Changes since revision 1.194: +5 -11 lines
sync with head.

Revision 1.195.2.1: download - view: text, markup, annotated - select for diffs
Fri May 16 04:25:42 2008 (13 months, 2 weeks ago) by yamt
Branches: yamt-nfs-mp
Diff to previous 1.195: preferred, colored
Changes since revision 1.195: +2 -9 lines
sync with head.

Revision 1.196: download - view: text, markup, annotated - select for diffs
Mon Apr 28 22:24:09 2008 (14 months ago) by martin
Branches: 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
Diff to previous 1.195: preferred, colored
Changes since revision 1.195: +2 -9 lines
Remove clause 3 and 4 from TNF licenses

Revision 1.195: download - view: text, markup, annotated - select for diffs
Wed Apr 23 08:09:04 2008 (14 months, 1 week ago) by thorpej
Branches: MAIN
CVS tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Diff to previous 1.194: preferred, colored
Changes since revision 1.194: +5 -4 lines
Make IPSEC and FAST_IPSEC stats per-cpu.  Use <net/net_stats.h> and
netstat_sysctl().

Revision 1.194: download - view: text, markup, annotated - select for diffs
Sat Apr 12 07:58:22 2008 (14 months, 3 weeks ago) by thorpej
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base
Branch point for: yamt-pf42
Diff to previous 1.193: preferred, colored
Changes since revision 1.193: +15 -14 lines
Make IP, TCP, UDP, and ICMP statistics per-CPU.  The stats are collated
when the user requests them via sysctl.

Revision 1.193: download - view: text, markup, annotated - select for diffs
Mon Apr 7 08:31:28 2008 (14 months, 3 weeks ago) by thorpej
Branches: MAIN
Diff to previous 1.192: preferred, colored
Changes since revision 1.192: +14 -14 lines
Change IP stats from a structure to an array of uint64_t's.

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

Revision 1.180.8.3: download - view: text, markup, annotated - select for diffs
Sun Mar 23 03:05:06 2008 CET (15 months, 1 week ago) by matt
Branches: matt-armv6
Diff to previous 1.180.8.2: preferred, colored to branchpoint 1.180: preferred, colored next main 1.181: preferred, colored
Changes since revision 1.180.8.2: +36 -34 lines
sync with HEAD

Revision 1.184.6.3: download - view: text, markup, annotated - select for diffs
Mon Feb 18 22:07:08 2008 CET (16 months, 2 weeks ago) by mjf
Branches: mjf-devfs
Diff to previous 1.184.6.2: preferred, colored to branchpoint 1.184: preferred, colored next main 1.185: preferred, colored
Changes since revision 1.184.6.2: +93 -148 lines
Sync with HEAD.

Revision 1.153.2.8: download - view: text, markup, annotated - select for diffs
Mon Feb 11 16:00:05 2008 CET (16 months, 3 weeks ago) by yamt
Branches: yamt-lazymbuf
Diff to previous 1.153.2.7: preferred, colored next main 1.154: preferred, colored
Changes since revision 1.153.2.7: +27 -24 lines
sync with head.

Revision 1.192: download - view: text, markup, annotated - select for diffs
Wed Feb 6 04:20:51 2008 CET (16 months, 4 weeks ago) by matt
Branches: MAIN
CVS tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, ad-socklock-base1
Branch point for: mjf-devfs2
Diff to previous 1.191: preferred, colored
Changes since revision 1.191: +27 -24 lines
Add a new ip_id generation scheme based on a Fisher-Yates shuffle over a
sliding window.  XXX replace use of arc4random RSN.

Revision 1.153.2.7: download - view: text, markup, annotated - select for diffs
Mon Jan 21 10:47:16 2008 CET (17 months, 1 week ago) by yamt
Branches: yamt-lazymbuf
Diff to previous 1.153.2.6: preferred, colored
Changes since revision 1.153.2.6: +88 -140 lines
sync with head

Revision 1.185.6.2: download - view: text, markup, annotated - select for diffs
Sat Jan 19 13:15:32 2008 CET (17 months, 2 weeks ago) by bouyer
Branches: bouyer-xeni386
Diff to previous 1.185.6.1: preferred, colored to branchpoint 1.185: preferred, colored next main 1.186: preferred, colored
Changes since revision 1.185.6.1: +9 -10 lines
Sync with HEAD

Revision 1.191: download - view: text, markup, annotated - select for diffs
Mon Jan 14 05:19:09 2008 CET (17 months, 2 weeks ago) by dyoung
Branches: MAIN
CVS tags: bouyer-xeni386-nbase, bouyer-xeni386-base
Diff to previous 1.190: preferred, colored
Changes since revision 1.190: +5 -5 lines
Use rtcache_validate() instead of rtcache_getrt().  Shorten staircase
in in_losing().

Revision 1.190: download - view: text, markup, annotated - select for diffs
Sat Jan 12 03:58:58 2008 CET (17 months, 3 weeks ago) by dyoung
Branches: MAIN
Diff to previous 1.189: preferred, colored
Changes since revision 1.189: +8 -9 lines
Good-bye, rtcache_check().  Call both rtcache_validate() and
rtcache_update(,1) instead of rtcache_check().

Revision 1.180.8.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 02:57:28 2008 CET (17 months, 3 weeks ago) by matt
Branches: matt-armv6
Diff to previous 1.180.8.1: preferred, colored to branchpoint 1.180: preferred, colored
Changes since revision 1.180.8.1: +85 -142 lines
sync with HEAD

Revision 1.185.6.1: download - view: text, markup, annotated - select for diffs
Wed Jan 2 22:57:22 2008 CET (18 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to previous 1.185: preferred, colored
Changes since revision 1.185: +85 -136 lines
Sync with HEAD

Revision 1.189: download - view: text, markup, annotated - select for diffs
Sat Dec 29 16:13:55 2007 CET (18 months ago) by degroote
Branches: MAIN
CVS tags: matt-armv6-base
Diff to previous 1.188: preferred, colored
Changes since revision 1.188: +3 -2 lines
Restore correctly the sp level in case of FAST_IPSEC + IPSEC_NAT_T

Revision 1.188: download - view: text, markup, annotated - select for diffs
Sat Dec 29 15:53:25 2007 CET (18 months ago) by degroote
Branches: MAIN
Diff to previous 1.187: preferred, colored
Changes since revision 1.187: +58 -116 lines
Simplify the FAST_IPSEC output path
Only record an IPSEC_OUT_DONE tag when we have finished the processing
In ip{,6}_output, check this tag to know if we have already processed this
packet.
Remove some dead code (IPSEC_PENDING_TDB is not used in NetBSD)

Fix pr/36870

Revision 1.184.6.2: download - view: text, markup, annotated - select for diffs
Thu Dec 27 01:46:30 2007 CET (18 months, 1 week ago) by mjf
Branches: mjf-devfs
Diff to previous 1.184.6.1: preferred, colored to branchpoint 1.184: preferred, colored
Changes since revision 1.184.6.1: +28 -22 lines
Sync with HEAD.

Revision 1.185.2.1: download - view: text, markup, annotated - select for diffs
Wed Dec 26 20:57:40 2007 CET (18 months, 1 week ago) by ad
Branches: vmlocking2
Diff to previous 1.185: preferred, colored next main 1.186: preferred, colored
Changes since revision 1.185: +28 -22 lines
Sync with head.

Revision 1.187: download - view: text, markup, annotated - select for diffs
Fri Dec 21 03:07:55 2007 CET (18 months, 2 weeks ago) by matt
Branches: MAIN
CVS tags: vmlocking2-base3
Diff to previous 1.186: preferred, colored
Changes since revision 1.186: +5 -3 lines
Add fix for ip_id information leakage.  Since the leakage information is
primarily used with TCP SYN and RST packets and such packets are less than
the smallest sized packet that an IP stack is allowed to fragment, we simply
set ip_id to 0 for all packets 68 bytes or less.

Revision 1.186: download - view: text, markup, annotated - select for diffs
Thu Dec 20 20:53:32 2007 CET (18 months, 2 weeks ago) by dyoung
Branches: MAIN
Diff to previous 1.185: preferred, colored
Changes since revision 1.185: +25 -21 lines
Poison struct route->ro_rt uses in the kernel by changing the name
to _ro_rt.  Use rtcache_getrt() to access a route cache's struct
rtentry *.

Introduce struct ifnet->if_dl that always points at the interface
identifier/link-layer address.  Make code that treated the first
ifaddr on struct ifnet->if_addrlist as the interface address use
if_dl, instead.

Remove stale debugging code from net/route.c.  Move the rtflush()
code into rtcache_clear() and delete rtflush().  Delete rtalloc(),
because nothing uses it any more.

Make ND6_HINT an inline, lowercase subroutine, nd6_hint.

I've done my best to convert IP Filter, the ISO stack, and the
AppleTalk stack to rtcache_getrt().  They compile, but I have not
tested them.  I have given the changes to PF, GRE, IPv4 and IPv6
stacks a lot of exercise.

Revision 1.184.6.1: download - view: text, markup, annotated - select for diffs
Sat Dec 8 19:21:13 2007 CET (18 months, 3 weeks ago) by mjf
Branches: mjf-devfs
Diff to previous 1.184: preferred, colored
Changes since revision 1.184: +2 -8 lines
Sync with HEAD.

Revision 1.153.2.6: download - view: text, markup, annotated - select for diffs
Fri Dec 7 18:34:31 2007 CET (18 months, 3 weeks ago) by yamt
Branches: yamt-lazymbuf
Diff to previous 1.153.2.5: preferred, colored
Changes since revision 1.153.2.5: +2 -8 lines
sync with head

Revision 1.180.6.3: download - view: text, markup, annotated - select for diffs
Mon Dec 3 17:15:10 2007 CET (19 months ago) by joerg
Branches: jmcneill-pm
Diff to previous 1.180.6.2: preferred, colored to branchpoint 1.180: preferred, colored next main 1.181: preferred, colored
Changes since revision 1.180.6.2: +2 -8 lines
Sync with HEAD.

Revision 1.185: download - view: text, markup, annotated - select for diffs
Wed Nov 28 05:14:11 2007 CET (19 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: vmlocking2, bouyer-xeni386
Diff to previous 1.184: preferred, colored
Changes since revision 1.184: +2 -8 lines
Move IN_NEED_CHECKSUM() to in_offload.h for re-use.

Revision 1.180.8.1: download - view: text, markup, annotated - select for diffs
Wed Nov 7 00:33:50 2007 CET (19 months, 3 weeks ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to previous 1.180: preferred, colored
Changes since revision 1.180: +21 -9 lines
sync with HEAD

Revision 1.153.2.5: download - view: text, markup, annotated - select for diffs
Sat Oct 27 13:36:08 2007 (20 months, 1 week ago) by yamt
Branches: yamt-lazymbuf
Diff to previous 1.153.2.4: preferred, colored
Changes since revision 1.153.2.4: +8 -4 lines
sync with head.

Revision 1.179.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 9 15:44:50 2007 (20 months, 3 weeks ago) by ad
Branches: vmlocking
Diff to previous 1.179.2.1: preferred, colored to branchpoint 1.179: preferred, colored next main 1.180: preferred, colored
Changes since revision 1.179.2.1: +21 -9 lines
Sync with head.

Revision 1.180.6.2: download - view: text, markup, annotated - select for diffs
Tue Oct 2 20:29:20 2007 (21 months ago) by joerg
Branches: jmcneill-pm
Diff to previous 1.180.6.1: preferred, colored to branchpoint 1.180: preferred, colored
Changes since revision 1.180.6.1: +8 -4 lines
Sync with HEAD.

Revision 1.184: download - view: text, markup, annotated - select for diffs
Wed Sep 19 06:33:43 2007 (21 months, 2 weeks ago) by dyoung
Branches: MAIN
CVS tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs
Diff to previous 1.183: preferred, colored
Changes since revision 1.183: +8 -4 lines
1) Introduce a new socket option, (SOL_SOCKET, SO_NOHEADER), that
   tells a socket that it should both add a protocol header to tx'd
   datagrams and remove the header from rx'd datagrams:

        int onoff = 1, s = socket(...);
        setsockopt(s, SOL_SOCKET, SO_NOHEADER, &onoff);

2) Add an implementation of (SOL_SOCKET, SO_NOHEADER) for raw IPv4
   sockets.

3) Reorganize the protocols' pr_ctloutput implementations a bit.
   Consistently return ENOPROTOOPT when an option is unsupported,
   and EINVAL if a supported option's arguments are incorrect.
   Reorganize the flow of code so that it's more clear how/when
   options are passed down the stack until they are handled.

   Shorten some pr_ctloutput staircases for readability.

4) Extract common mbuf code into subroutines, add new sockaddr
   methods, and introduce a new subroutine, fsocreate(), for reuse
   later; use it first in sys_socket():

struct mbuf *m_getsombuf(struct socket *so)

        Create an mbuf and make its owner the socket `so'.

struct mbuf *m_intopt(struct socket *so, int val)

        Create an mbuf, make its owner the socket `so', put the
        int `val' into it, and set its length to sizeof(int).


int fsocreate(..., int *fd)

        Create a socket, a la socreate(9), put the socket into the
        given LWP's descriptor table, return the descriptor at `fd'
        on success.

void *sockaddr_addr(struct sockaddr *sa, socklen_t *slenp)
const void *sockaddr_const_addr(const struct sockaddr *sa, socklen_t *slenp)

        Extract a pointer to the address part of a sockaddr.  Write
        the length of the address  part at `slenp', if `slenp' is
        not NULL.

socklen_t sockaddr_getlen(const struct sockaddr *sa)

        Return the length of a sockaddr.  This just evaluates to
        sa->sa_len.  I only add this for consistency with code that
        appears in a portable userland library that I am going to
        import.

const struct sockaddr *sockaddr_any(const struct sockaddr *sa)

        Return the "don't care" sockaddr in the same family as
        `sa'.  This is the address a client should sobind(9) if it
        does not care the source address and, if applicable, the
        port et cetera that it uses.

const void *sockaddr_anyaddr(const struct sockaddr *sa, socklen_t *slenp)

        Return the "don't care" sockaddr in the same family as
        `sa'.  This is the address a client should sobind(9) if it
        does not care the source address and, if applicable, the
        port et cetera that it uses.

Revision 1.180.6.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 18:49:06 2007 (22 months ago) by jmcneill
Branches: jmcneill-pm
Diff to previous 1.180: preferred, colored
Changes since revision 1.180: +15 -7 lines
Sync with HEAD.

Revision 1.153.2.4: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:42:59 2007 (22 months ago) by yamt
Branches: yamt-lazymbuf
Diff to previous 1.153.2.3: preferred, colored
Changes since revision 1.153.2.3: +79 -65 lines
sync with head.

Revision 1.180.2.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 12:23:46 2007 (22 months ago) by skrll
Branches: nick-csl-alignment
Diff to previous 1.180: preferred, colored next main 1.181: preferred, colored
Changes since revision 1.180: +15 -7 lines
Sync with HEAD.

Revision 1.183: download - view: text, markup, annotated - select for diffs
Sun Sep 2 09:18:55 2007 (22 months ago) by dyoung
Branches: MAIN
CVS tags: nick-csl-alignment-base5
Diff to previous 1.182: preferred, colored
Changes since revision 1.182: +3 -3 lines
m_copym(..., 0, M_COPYALL, ...) -> m_copypacket(..., ...).

Revision 1.182: download - view: text, markup, annotated - select for diffs
Sun Sep 2 05:12:23 2007 (22 months ago) by dyoung
Branches: MAIN
Diff to previous 1.181: preferred, colored
Changes since revision 1.181: +4 -4 lines
m_copy() was deprecated, apparently, long ago.  m_copy(...) ->
m_copym(..., M_DONTWAIT).

Revision 1.181: download - view: text, markup, annotated - select for diffs
Wed Aug 29 01:45:39 2007 (22 months ago) by cube
Branches: MAIN
Diff to previous 1.180: preferred, colored
Changes since revision 1.180: +13 -5 lines
Fix ipv4 multicast that could sometimes send packets with the wrong
Ethernet multicast address.

Reported by jmcneill@, fix discussed with dyoung@, _very_ light testing by
myself, some more money for my dealer of anxiolytics after reading
ip_output()'s twisted code maze.

Revision 1.179.4.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 22:11:25 2007 (23 months, 3 weeks ago) by mjf
Branches: mjf-ufs-trans
Diff to previous 1.179: preferred, colored next main 1.180: preferred, colored
Changes since revision 1.179: +54 -48 lines
Sync with head.

Revision 1.179.2.1: download - view: text, markup, annotated - select for diffs
Fri Jun 8 16:17:46 2007 (2 years ago) by ad
Branches: vmlocking
Diff to previous 1.179: preferred, colored
Changes since revision 1.179: +54 -48 lines
Sync with head.

Revision 1.177.2.3: download - view: text, markup, annotated - select for diffs
Mon May 7 12:55:59 2007 (2 years, 1 month ago) by yamt
Branches: yamt-idlelwp
Diff to previous 1.177.2.2: preferred, colored next main 1.178: preferred, colored
Changes since revision 1.177.2.2: +54 -48 lines
sync with head.

Revision 1.180: download - view: text, markup, annotated - select for diffs
Wed May 2 22:40:25 2007 (2 years, 2 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-idlelwp-base8, 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
Diff to previous 1.179: preferred, colored
Changes since revision 1.179: +54 -48 lines
Eliminate address family-specific route caches (struct route, struct
route_in6, struct route_iso), replacing all caches with a struct
route.

The principle benefit of this change is that all of the protocol
families can benefit from route cache-invalidation, which is
necessary for correct routing.  Route-cache invalidation fixes an
ancient PR, kern/3508, at long last; it fixes various other PRs,
also.

Discussions with and ideas from Joerg Sonnenberger influenced this
work tremendously.  Of course, all design oversights and bugs are
mine.

DETAILS

1 I added to each address family a pool of sockaddrs.  I have
  introduced routines for allocating, copying, and duplicating,
  and freeing sockaddrs:

        struct sockaddr *sockaddr_alloc(sa_family_t af, int flags);
        struct sockaddr *sockaddr_copy(struct sockaddr *dst,
                                       const struct sockaddr *src);
        struct sockaddr *sockaddr_dup(const struct sockaddr *src, int flags);
        void sockaddr_free(struct sockaddr *sa);

  sockaddr_alloc() returns either a sockaddr from the pool belonging
  to the specified family, or NULL if the pool is exhausted.  The
  returned sockaddr has the right size for that family; sa_family
  and sa_len fields are initialized to the family and sockaddr
  length---e.g., sa_family = AF_INET and sa_len = sizeof(struct
  sockaddr_in).  sockaddr_free() puts the given sockaddr back into
  its family's pool.

  sockaddr_dup() and sockaddr_copy() work analogously to strdup()
  and strcpy(), respectively.  sockaddr_copy() KASSERTs that the
  family of the destination and source sockaddrs are alike.

  The 'flags' argumet for sockaddr_alloc() and sockaddr_dup() is
  passed directly to pool_get(9).

2 I added routines for initializing sockaddrs in each address
  family, sockaddr_in_init(), sockaddr_in6_init(), sockaddr_iso_init(),
  etc.  They are fairly self-explanatory.

3 structs route_in6 and route_iso are no more.  All protocol families
  use struct route.  I have changed the route cache, 'struct route',
  so that it does not contain storage space for a sockaddr.  Instead,
  struct route points to a sockaddr coming from the pool the sockaddr
  belongs to.  I added a new method to struct route, rtcache_setdst(),
  for setting the cache destination:

        int rtcache_setdst(struct route *, const struct sockaddr *);

  rtcache_setdst() returns 0 on success, or ENOMEM if no memory is
  available to create the sockaddr storage.

  It is now possible for rtcache_getdst() to return NULL if, say,
  rtcache_setdst() failed.  I check the return value for NULL
  everywhere in the kernel.

4 Each routing domain (struct domain) has a list of live route
  caches, dom_rtcache.  rtflushall(sa_family_t af) looks up the
  domain indicated by 'af', walks the domain's list of route caches
  and invalidates each one.

Revision 1.149.2.5: download - view: text, markup, annotated - select for diffs
Sat Mar 31 16:15:43 2007 (2 years, 3 months ago) by bouyer
Branches: netbsd-3
Diff to previous 1.149.2.4: preferred, colored to branchpoint 1.149: preferred, colored next main 1.150: preferred, colored
Changes since revision 1.149.2.4: +4 -7 lines
Pull up following revision(s) (requested by joerg in ticket #1734):
	sys/netinet/ip_output.c: revision 1.167.2.2
Unconditionally zero and free iproute. Before IPsec tunnel packets e.g.
from ICMP could end up in leaking the reference in iproute, as
ipsec4_output would overwrite the ro pointer in state.
Tested by Juraj Hercek and supposed to fix PR kern/35273 and kern/35318.

Revision 1.167.2.2: download - view: text, markup, annotated - select for diffs
Wed Mar 28 22:46:13 2007 (2 years, 3 months ago) by jdc
Branches: netbsd-4
CVS tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, 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, matt-nb4-arm-base, matt-nb4-arm
Diff to previous 1.167.2.1: preferred, colored to branchpoint 1.167: preferred, colored next main 1.168: preferred, colored
Changes since revision 1.167.2.1: +6 -9 lines
Pull up revision 1.174 (requested by joerg in ticket #524).

Unconditionally zero and free iproute. Before IPsec tunnel packets e.g.
from ICMP could end up in leaking the reference in iproute, as
ipsec4_output would overwrite the ro pointer in state.

Tested by Juraj Hercek and supposed to fix PR kern/35273 and kern/35318.

Revision 1.177.2.2: download - view: text, markup, annotated - select for diffs
Mon Mar 12 06:59:38 2007 CET (2 years, 3 months ago) by rmind
Branches: yamt-idlelwp
Diff to previous 1.177.2.1: preferred, colored
Changes since revision 1.177.2.1: +17 -17 lines
Sync with HEAD.

Revision 1.179: download - view: text, markup, annotated - select for diffs
Sun Mar 4 07:03:21 2007 CET (2 years, 4 months ago) by christos
Branches: MAIN
CVS tags: thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Diff to previous 1.178: preferred, colored
Changes since revision 1.178: +17 -17 lines
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.177.2.1: download - view: text, markup, annotated - select for diffs
Tue Feb 27 17:54:56 2007 CET (2 years, 4 months ago) by yamt
Branches: yamt-idlelwp
Diff to previous 1.177: preferred, colored
Changes since revision 1.177: +5 -5 lines
- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.153.2.3: download - view: text, markup, annotated - select for diffs
Mon Feb 26 10:11:45 2007 CET (2 years, 4 months ago) by yamt
Branches: yamt-lazymbuf
Diff to previous 1.153.2.2: preferred, colored
Changes since revision 1.153.2.2: +14 -20 lines
sync with head.

Revision 1.178: download - view: text, markup, annotated - select for diffs
Sat Feb 17 23:34:11 2007 CET (2 years, 4 months ago) by dyoung
Branches: MAIN
CVS tags: ad-audiomp-base, ad-audiomp
Diff to previous 1.177: preferred, colored
Changes since revision 1.177: +5 -5 lines
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.177: download - view: text, markup, annotated - select for diffs
Sat Feb 17 06:36:29 2007 CET (2 years, 4 months ago) by dyoung
Branches: MAIN
Branch point for: yamt-idlelwp
Diff to previous 1.176: preferred, colored
Changes since revision 1.176: +3 -4 lines
Join lines.

Revision 1.165.4.3: download - view: text, markup, annotated - select for diffs
Thu Feb 1 09:48:43 2007 CET (2 years, 5 months ago) by ad
Branches: newlock2
Diff to previous 1.165.4.2: preferred, colored to branchpoint 1.165: preferred, colored next main 1.166: preferred, colored
Changes since revision 1.165.4.2: +8 -14 lines
Sync with head.

Revision 1.176: download - view: text, markup, annotated - select for diffs
Mon Jan 29 07:00:11 2007 CET (2 years, 5 months ago) by dyoung
Branches: MAIN
CVS tags: post-newlock2-merge, newlock2-nbase, newlock2-base
Diff to previous 1.175: preferred, colored
Changes since revision 1.175: +5 -5 lines
bzero -> memset.

Revision 1.175: download - view: text, markup, annotated - select for diffs
Mon Jan 29 06:59:30 2007 CET (2 years, 5 months ago) by dyoung
Branches: MAIN
Diff to previous 1.174: preferred, colored
Changes since revision 1.174: +3 -7 lines
In ip_setmoptions(), don't leave a route cache (struct route) on
the stack if we exit with EADDRNOTAVAIL.

Revision 1.149.2.3.2.1: download - view: text, markup, annotated - select for diffs
Sun Jan 28 20:39:30 2007 CET (2 years, 5 months ago) by tron
Branches: netbsd-3-0
CVS tags: netbsd-3-0-3-RELEASE
Diff to previous 1.149.2.3: preferred, colored next main 1.149.2.4: preferred, colored
Changes since revision 1.149.2.3: +3 -2 lines
Pull up following revision(s) (requested by yamt in ticket #1656):
	sys/netinet/ip_output.c: revision 1.173
ip_output: reload ip_len after running pfil_run_hooks.
pf "fragment reassemble" rule can change it, at least.

Revision 1.149.2.3.4.1: download - view: text, markup, annotated - select for diffs
Sun Jan 28 20:38:42 2007 CET (2 years, 5 months ago) by tron
Branches: netbsd-3-1
CVS tags: netbsd-3-1-1-RELEASE
Diff to previous 1.149.2.3: preferred, colored next main 1.149.2.4: preferred, colored
Changes since revision 1.149.2.3: +3 -2 lines
Pull up following revision(s) (requested by yamt in ticket #1656):
	sys/netinet/ip_output.c: revision 1.173
ip_output: reload ip_len after running pfil_run_hooks.
pf "fragment reassemble" rule can change it, at least.

Revision 1.149.2.4: download - view: text, markup, annotated - select for diffs
Sun Jan 28 20:37:20 2007 CET (2 years, 5 months ago) by tron
Branches: netbsd-3
Diff to previous 1.149.2.3: preferred, colored to branchpoint 1.149: preferred, colored
Changes since revision 1.149.2.3: +3 -2 lines
Pull up following revision(s) (requested by yamt in ticket #1656):
	sys/netinet/ip_output.c: revision 1.173
ip_output: reload ip_len after running pfil_run_hooks.
pf "fragment reassemble" rule can change it, at least.

Revision 1.167.2.1: download - view: text, markup, annotated - select for diffs
Thu Jan 18 14:09:33 2007 CET (2 years, 5 months ago) by tron
Branches: netbsd-4
Diff to previous 1.167: preferred, colored
Changes since revision 1.167: +3 -2 lines
Pull up following revision(s) (requested by yamt in ticket #361):
	sys/netinet/ip_output.c: revision 1.173
ip_output: reload ip_len after running pfil_run_hooks.
pf "fragment reassemble" rule can change it, at least.

Revision 1.174: download - view: text, markup, annotated - select for diffs
Sun Jan 14 00:13:46 2007 CET (2 years, 5 months ago) by joerg
Branches: MAIN
Diff to previous 1.173: preferred, colored
Changes since revision 1.173: +5 -7 lines
Unconditionally zero and free iproute. Before IPsec tunnel packets e.g.
from ICMP could end up in leaking the reference in iproute, as
ipsec4_output would overwrite the ro pointer in state.

Tested by Juraj Hercek and supposed to fix PR kern/35273 and kern/35318.

Revision 1.165.4.2: download - view: text, markup, annotated - select for diffs
Fri Jan 12 02:04:14 2007 CET (2 years, 5 months ago) by ad
Branches: newlock2
Diff to previous 1.165.4.1: preferred, colored to branchpoint 1.165: preferred, colored
Changes since revision 1.165.4.1: +18 -53 lines
Sync with head.

Revision 1.173: download - view: text, markup, annotated - select for diffs
Mon Jan 8 05:14:54 2007 CET (2 years, 5 months ago) by yamt
Branches: MAIN
Diff to previous 1.172: preferred, colored
Changes since revision 1.172: +3 -2 lines
ip_output: reload ip_len after running pfil_run_hooks.
pf "fragment reassemble" rule can change it, at least.

Revision 1.172: download - view: text, markup, annotated - select for diffs
Thu Jan 4 20:07:03 2007 CET (2 years, 5 months ago) by elad
Branches: MAIN
Diff to previous 1.171: preferred, colored
Changes since revision 1.171: +3 -3 lines
Consistent usage of KAUTH_GENERIC_ISSUSER.

Revision 1.153.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 21:50:33 2006 CET (2 years, 6 months ago) by yamt
Branches: yamt-lazymbuf
Diff to previous 1.153.2.1: preferred, colored
Changes since revision 1.153.2.1: +42 -57 lines
sync with head.

Revision 1.165.6.2: download - view: text, markup, annotated - select for diffs
Mon Dec 18 12:42:21 2006 CET (2 years, 6 months ago) by yamt
Branches: yamt-splraiseipl
Diff to previous 1.165.6.1: preferred, colored to branchpoint 1.165: preferred, colored next main 1.166: preferred, colored
Changes since revision 1.165.6.1: +12 -11 lines
sync with head.

Revision 1.171: download - view: text, markup, annotated - select for diffs
Fri Dec 15 22:18:54 2006 CET (2 years, 6 months ago) by joerg
Branches: MAIN
CVS tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4
Diff to previous 1.170: preferred, colored
Changes since revision 1.170: +12 -11 lines
Introduce new helper functions to abstract the route caching.
rtcache_init and rtcache_init_noclone lookup ro_dst and store
the result in ro_rt, taking care of the reference counting and
calling the domain specific route cache.
rtcache_free checks if a route was cashed and frees the reference.
rtcache_copy copies ro_dst of the given struct route, checking that
enough space is available and incrementing the reference count of the
cached rtentry if necessary.
rtcache_check validates that the cached route is still up. If it isn't,
it tries to look it up again. Afterwards ro_rt is either a valid again
or NULL.
rtcache_copy is used internally.

Adjust to callers of rtalloc/rtflush in the tree to check the sanity of
ro_dst first (if necessary). If it doesn't fit the expectations, free
the cache, otherwise check if the cached route is still valid. After
that combination, a single check for ro_rt == NULL is enough to decide
whether a new lookup needs to be done with a different ro_dst.
Make the route checking in gre stricter by repeating the loop check
after revalidation.
Remove some unused RADIX_MPATH code in in6_src.c. The logic is slightly
changed here to first validate the route and check RTF_GATEWAY
afterwards. This is sementically equivalent though.
etherip doesn't need sc_route_expire similiar to the gif changes from
dyoung@ earlier.

Based on the earlier patch from dyoung@, reviewed and discussed with
him.

Revision 1.165.6.1: download - view: text, markup, annotated - select for diffs
Sun Dec 10 08:19:11 2006 CET (2 years, 6 months ago) by yamt
Branches: yamt-splraiseipl
Diff to previous 1.165: preferred, colored
Changes since revision 1.165: +23 -50 lines
sync with head.

Revision 1.170: download - view: text, markup, annotated - select for diffs
Sat Dec 9 06:33:04 2006 CET (2 years, 6 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-splraiseipl-base3
Diff to previous 1.169: preferred, colored
Changes since revision 1.169: +9 -14 lines
Here are various changes designed to protect against bad IPv4
routing caused by stale route caches (struct route).  Route caches
are sprinkled throughout PCBs, the IP fast-forwarding table, and
IP tunnel interfaces (gre, gif, stf).

Stale IPv6 and ISO route caches will be treated by separate patches.

Thank you to Christoph Badura for suggesting the general approach
to invalidating route caches that I take here.

Here are the details:

Add hooks to struct domain for tracking and for invalidating each
domain's route caches: dom_rtcache, dom_rtflush, and dom_rtflushall.

Introduce helper subroutines, rtflush(ro) for invalidating a route
cache, rtflushall(family) for invalidating all route caches in a
routing domain, and rtcache(ro) for notifying the domain of a new
cached route.

Chain together all IPv4 route caches where ro_rt != NULL.  Provide
in_rtcache() for adding a route to the chain.  Provide in_rtflush()
and in_rtflushall() for invalidating IPv4 route caches.  In
in_rtflush(), set ro_rt to NULL, and remove the route from the
chain.  In in_rtflushall(), walk the chain and remove every route
cache.

In rtrequest1(), call rtflushall() to invalidate route caches when
a route is added.

In gif(4), discard the workaround for stale caches that involves
expiring them every so often.

Replace the pattern 'RTFREE(ro->ro_rt); ro->ro_rt = NULL;' with a
call to rtflush(ro).

Update ipflow_fastforward() and all other users of route caches so
that they expect a cached route, ro->ro_rt, to turn to NULL.

Take care when moving a 'struct route' to rtflush() the source and
to rtcache() the destination.

In domain initializers, use .dom_xxx tags.

KNF here and there.

Revision 1.169: download - view: text, markup, annotated - select for diffs
Wed Dec 6 05:29:09 2006 CET (2 years, 6 months ago) by dyoung
Branches: MAIN
Diff to previous 1.168: preferred, colored
Changes since revision 1.168: +3 -3 lines
Remove stray curly brace.  Thanks, yamt!

Revision 1.168: download - view: text, markup, annotated - select for diffs
Wed Dec 6 01:41:59 2006 CET (2 years, 6 months ago) by dyoung
Branches: MAIN
Diff to previous 1.167: preferred, colored
Changes since revision 1.167: +5 -5 lines
KNF.

Revision 1.167: download - view: text, markup, annotated - select for diffs
Sat Nov 25 19:41:36 2006 CET (2 years, 7 months ago) by yamt
Branches: MAIN
CVS tags: netbsd-4-base
Branch point for: netbsd-4
Diff to previous 1.166: preferred, colored
Changes since revision 1.166: +2 -34 lines
move tso-by-software code to their own files.  no functional changes.

Revision 1.165.4.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 22:39:36 2006 CET (2 years, 7 months ago) by ad
Branches: newlock2
Diff to previous 1.165: preferred, colored
Changes since revision 1.165: +13 -3 lines
Sync with head.

Revision 1.166: download - view: text, markup, annotated - select for diffs
Mon Nov 13 06:13:42 2006 CET (2 years, 7 months ago) by dyoung
Branches: MAIN
Diff to previous 1.165: preferred, colored
Changes since revision 1.165: +13 -3 lines
Add a source-address selection policy mechanism to the kernel.

Also, add ioctls SIOCGIFADDRPREF/SIOCSIFADDRPREF to get/set preference
numbers for addresses.  Make ifconfig(8) set/display preference
numbers.

To activate source-address selection policies in your kernel, add
'options IPSELSRC' to your kernel configuration.

Miscellaneous changes in support of source-address selection:

        1 Factor out some common code, producing rt_replace_ifa().

        2 Abbreviate a for-loop with TAILQ_FOREACH().

        3 Add the predicates on IPv4 addresses IN_LINKLOCAL() and
          IN_PRIVATE(), that are true for link-local unicast
          (169.254/16) and RFC1918 private addresses, respectively.
          Add the predicate IN_ANY_LOCAL() that is true for link-local
          unicast and multicast.

        4 Add IPv4-specific interface attach/detach routines,
          in_domifattach and in_domifdetach, which build #ifdef
          IPSELSRC.

See in_getifa(9) for a more thorough description of source-address
selection policy.

Revision 1.159.4.2: download - view: text, markup, annotated - select for diffs
Sat Sep 9 04:58:47 2006 (2 years, 9 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to previous 1.159.4.1: preferred, colored next main 1.160: preferred, colored
Changes since revision 1.159.4.1: +40 -11 lines
sync with head

Revision 1.160.2.2: download - view: text, markup, annotated - select for diffs
Fri Aug 11 17:46:33 2006 (2 years, 10 months ago) by yamt
Branches: yamt-pdpolicy
Diff to previous 1.160.2.1: preferred, colored to branchpoint 1.160: preferred, colored next main 1.161: preferred, colored
Changes since revision 1.160.2.1: +17 -6 lines
sync with head

Revision 1.165: download - view: text, markup, annotated - select for diffs
Mon Jul 24 00:06:13 2006 (2 years, 11 months ago) by ad
Branches: MAIN
CVS tags: yamt-splraiseipl-base2, 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
Diff to previous 1.164: preferred, colored
Changes since revision 1.164: +5 -5 lines
Use the LWP cached credentials where sane.

Revision 1.162.4.1: download - view: text, markup, annotated - select for diffs
Thu Jul 13 19:50:05 2006 (2 years, 11 months ago) by gdamore
Branches: gdamore-uart
Diff to previous 1.162: preferred, colored next main 1.163: preferred, colored
Changes since revision 1.162: +14 -3 lines
Merge from HEAD.

Revision 1.164: download - view: text, markup, annotated - select for diffs
Wed Jul 12 16:07:02 2006 (2 years, 11 months ago) by tron
Branches: MAIN
Diff to previous 1.163: preferred, colored
Changes since revision 1.163: +3 -4 lines
Remove test for M_CSUM_TSOv6 flag which is not (yet) defined in
NetBSD-current.

Revision 1.163: download - view: text, markup, annotated - select for diffs
Wed Jul 12 15:11:27 2006 (2 years, 11 months ago) by tron
Branches: MAIN
Diff to previous 1.162: preferred, colored
Changes since revision 1.162: +15 -3 lines
Add diagnostic checks for hardware-assisted checksum related flags in
the mbuf which supposed to get sent out:
- Complain in ip_output() if any of the IPv6 related flags are set.
- Complain in ip6_output() if any of the IPv4 related flags are set.
- Complain in both functions if the flags indicate that both a TCP and
  UCP checksum should be calculated by the hardware.

Revision 1.153.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 17:11:01 2006 (3 years ago) by yamt
Branches: yamt-lazymbuf
Diff to previous 1.153: preferred, colored
Changes since revision 1.153: +57 -28 lines
sync with head.

Revision 1.159.6.2: download - view: text, markup, annotated - select for diffs
Fri Jun 2 00:38:47 2006 (3 years, 1 month ago) by kardel
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to previous 1.159.6.1: preferred, colored next main 1.160: preferred, colored
Changes since revision 1.159.6.1: +5 -3 lines
Sync with head.

Revision 1.160.6.1: download - view: text, markup, annotated - select for diffs
Wed May 24 17:50:45 2006 (3 years, 1 month ago) by tron
Branches: peter-altq
Diff to previous 1.160: preferred, colored next main 1.161: preferred, colored
Changes since revision 1.160: +5 -3 lines
Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.160.2.1: download - view: text, markup, annotated - select for diffs
Wed May 24 12:59:03 2006 (3 years, 1 month ago) by yamt
Branches: yamt-pdpolicy
Diff to previous 1.160: preferred, colored
Changes since revision 1.160: +5 -3 lines
sync with head.

Revision 1.162: download - view: text, markup, annotated - select for diffs
Mon May 15 02:05:17 2006 (3 years, 1 month ago) by christos
Branches: MAIN
CVS tags: yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, gdamore-uart-base, chap-midi-nbase, chap-midi-base, chap-midi
Branch point for: gdamore-uart
Diff to previous 1.161: preferred, colored
Changes since revision 1.161: +3 -2 lines
kauth fallout

Revision 1.161: download - view: text, markup, annotated - select for diffs
Sun May 14 23:19:34 2006 (3 years, 1 month ago) by elad
Branches: MAIN
Diff to previous 1.160: preferred, colored
Changes since revision 1.160: +4 -3 lines
integrate kauth.

Revision 1.159.6.1: download - view: text, markup, annotated - select for diffs
Sat Apr 22 13:40:10 2006 (3 years, 2 months ago) by simonb
Branches: simonb-timecounters
Diff to previous 1.159: preferred, colored
Changes since revision 1.159: +24 -8 lines
Sync with head.

Revision 1.160.4.2: download - view: text, markup, annotated - select for diffs
Fri Mar 10 16:20:54 2006 CET (3 years, 3 months ago) by elad
Branches: elad-kernelauth
Diff to previous 1.160.4.1: preferred, colored to branchpoint 1.160: preferred, colored next main 1.161: preferred, colored
Changes since revision 1.160.4.1: +3 -3 lines
generic_authorize() -> kauth_authorize_generic().

Revision 1.160.4.1: download - view: text, markup, annotated - select for diffs
Wed Mar 8 02:19:40 2006 CET (3 years, 3 months ago) by elad
Branches: elad-kernelauth
Diff to previous 1.160: preferred, colored
Changes since revision 1.160: +4 -3 lines
Adapt to kernel authorization KPI.

Revision 1.159.2.1: download - view: text, markup, annotated - select for diffs
Wed Mar 1 10:28:47 2006 CET (3 years, 4 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to previous 1.159: preferred, colored next main 1.160: preferred, colored
Changes since revision 1.159: +24 -8 lines
sync with head.

Revision 1.160: download - view: text, markup, annotated - select for diffs
Thu Feb 23 02:35:19 2006 CET (3 years, 4 months ago) by christos
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base, elad-kernelauth-base
Branch point for: yamt-pdpolicy, peter-altq, elad-kernelauth
Diff to previous 1.159: preferred, colored
Changes since revision 1.159: +24 -8 lines
Handle IPSEC_NAT_T in the FAST_IPSEC case.
XXX: need to fix the FAST_IPSEC code now.

Revision 1.159.4.1: download - view: text, markup, annotated - select for diffs
Tue Feb 7 17:51:50 2006 CET (3 years, 4 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to previous 1.159: preferred, colored
Changes since revision 1.159: +3 -3 lines
sotoinpcb_hdr -> sotoinpcb.

Revision 1.159: download - view: text, markup, annotated - select for diffs
Sun Dec 11 13:24:57 2005 CET (3 years, 6 months ago) by christos
Branches: MAIN
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Diff to previous 1.158: preferred, colored
Changes since revision 1.158: +2 -2 lines
merge ktrace-lwp.

Revision 1.107.2.11: download - view: text, markup, annotated - select for diffs
Thu Nov 10 15:11:07 2005 CET (3 years, 7 months ago) by skrll
Branches: ktrace-lwp
Diff to previous 1.107.2.10: preferred, colored next main 1.108: preferred, colored
Changes since revision 1.107.2.10: +118 -29 lines
Sync with HEAD. Here we go again...

Revision 1.149.2.3: download - view: text, markup, annotated - select for diffs
Fri Oct 21 20:55:52 2005 (3 years, 8 months ago) by riz
Branches: 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-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-2-RELEASE, netbsd-3-0-1-RELEASE
Branch point for: netbsd-3-1, netbsd-3-0
Diff to previous 1.149.2.2: preferred, colored to branchpoint 1.149: preferred, colored
Changes since revision 1.149.2.2: +31 -14 lines
Pull up following revision(s) (requested by seb in ticket #903):
	sys/netinet/ip_output.c: revisions 1.156 - 1.157
Allow the multicast_ttl and the multicast_loop options to be set with both
u_char and u_int option variables. Original patch from seb.

Revision 1.158: download - view: text, markup, annotated - select for diffs
Mon Sep 19 07:28:46 2005 (3 years, 9 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Diff to previous 1.157: preferred, colored
Changes since revision 1.157: +2 -4 lines
People have to read this code, so I am removing the double-negative
tautology, #ifndef notdef, which is not only superfluous, but easily
misread as #ifdef notyet.

Revision 1.157: download - view: text, markup, annotated - select for diffs
Mon Sep 12 00:15:19 2005 (3 years, 9 months ago) by seb
Branches: MAIN
Diff to previous 1.156: preferred, colored
Changes since revision 1.156: +3 -3 lines
Replace plain 255 by MAXTTL.

Revision 1.156: download - view: text, markup, annotated - select for diffs
Sun Sep 11 23:57:24 2005 (3 years, 9 months ago) by christos
Branches: MAIN
Diff to previous 1.155: preferred, colored
Changes since revision 1.155: +31 -14 lines
Allow the multicast_ttl and the multicast_loop options to be set with both
u_char and u_int option variables. Original patch from seb.

Revision 1.155: download - view: text, markup, annotated - select for diffs
Thu Aug 18 02:30:59 2005 (3 years, 10 months ago) by yamt
Branches: MAIN
Diff to previous 1.154: preferred, colored
Changes since revision 1.154: +3 -5 lines
- introduce M_MOVE_PKTHDR and use it where appropriate.
  intended to be mostly API compatible with openbsd/freebsd.
- remove a glue #define in netipsec/ipsec_osdep.h.

Revision 1.154: download - view: text, markup, annotated - select for diffs
Wed Aug 10 15:06:49 2005 (3 years, 10 months ago) by yamt
Branches: MAIN
Diff to previous 1.153: preferred, colored
Changes since revision 1.153: +2 -4 lines
move {tcp,udp}_do_loopback_cksum back to tcp/udp
so that they can be referenced by ipv6.

Revision 1.153: download - view: text, markup, annotated - select for diffs
Sun May 29 23:41:23 2005 (4 years, 1 month ago) by christos
Branches: MAIN
Branch point for: yamt-lazymbuf
Diff to previous 1.152: preferred, colored
Changes since revision 1.152: +6 -6 lines
- add const
- remove bogus casts
- avoid nested variables

Revision 1.149.2.2: download - view: text, markup, annotated - select for diffs
Fri May 6 10:39:44 2005 (4 years, 1 month ago) by tron
Branches: netbsd-3
Diff to previous 1.149.2.1: preferred, colored to branchpoint 1.149: preferred, colored
Changes since revision 1.149.2.1: +21 -4 lines
Pull up revision 1.151 (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.138.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 13:29:33 2005 (4 years, 2 months ago) by kent
Branches: kent-audio2
Diff to previous 1.138: preferred, colored next main 1.139: preferred, colored
Changes since revision 1.138: +170 -69 lines
sync with -current

Revision 1.152: download - view: text, markup, annotated - select for diffs
Tue Apr 19 00:06:28 2005 (4 years, 2 months ago) by yamt
Branches: MAIN
CVS tags: kent-audio2-base
Diff to previous 1.151: preferred, colored
Changes since revision 1.151: +45 -3 lines
ip_output: handle the case M_CSUM_TSOv4 but !IFCAP_TSOv4.

Revision 1.151: download - view: text, markup, annotated - select for diffs
Mon Apr 18 23:50:25 2005 (4 years, 2 months ago) by yamt
Branches: MAIN
Diff to previous 1.150: preferred, colored
Changes since revision 1.150: +23 -6 lines
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.149.2.1: download - view: text, markup, annotated - select for diffs
Wed Apr 13 23:34:51 2005 (4 years, 2 months ago) by tron
Branches: netbsd-3
Diff to previous 1.149: preferred, colored
Changes since revision 1.149: +22 -3 lines
Pull up revision 1.150 (requested by yamt in ticket #145):
when doing TSO, avoid to use duplicated ip_id heavily.
XXX ip_randomid

Revision 1.150: download - view: text, markup, annotated - select for diffs
Thu Apr 7 14:22:47 2005 (4 years, 2 months ago) by yamt
Branches: MAIN
Diff to previous 1.149: preferred, colored
Changes since revision 1.149: +22 -3 lines
when doing TSO, avoid to use duplicated ip_id heavily.
XXX ip_randomid

Revision 1.107.2.10: download - view: text, markup, annotated - select for diffs
Fri Apr 1 16:31:50 2005 (4 years, 3 months ago) by skrll
Branches: ktrace-lwp
Diff to previous 1.107.2.9: preferred, colored
Changes since revision 1.107.2.9: +26 -33 lines
Sync with HEAD.

Revision 1.138.4.2: download - view: text, markup, annotated - select for diffs
Sat Mar 19 09:36:38 2005 CET (4 years, 3 months ago) by yamt
Branches: yamt-km
Diff to previous 1.138.4.1: preferred, colored to branchpoint 1.138: preferred, colored next main 1.139: preferred, colored
Changes since revision 1.138.4.1: +36 -26 lines
sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.149: download - view: text, markup, annotated - select for diffs
Fri Mar 11 18:07:51 2005 CET (4 years, 3 months ago) by matt
Branches: MAIN
CVS tags: yamt-km-base4, yamt-km-base3, netbsd-3-base
Branch point for: netbsd-3
Diff to previous 1.148: preferred, colored
Changes since revision 1.148: +3 -9 lines
Set ip_len to 0 in the wm driver when TSO is being used.

Revision 1.148: download - view: text, markup, annotated - select for diffs
Thu Mar 10 07:03:00 2005 CET (4 years, 3 months ago) by thorpej
Branches: MAIN
Diff to previous 1.147: preferred, colored
Changes since revision 1.147: +5 -4 lines
In ip_fragment():
- Use the correct IP header length variable for other-than-first packets.
- Remove redundant setting of the original IP header length in the first
  packet's csum_data.  (It's already set before ip_fragment() is called
  in 1.147.)

Revision 1.147: download - view: text, markup, annotated - select for diffs
Wed Mar 9 04:39:27 2005 CET (4 years, 3 months ago) by matt
Branches: MAIN
Diff to previous 1.146: preferred, colored
Changes since revision 1.146: +29 -31 lines
Move all the hardware-assisted checksum/segment offload code together.

Revision 1.107.2.9: download - view: text, markup, annotated - select for diffs
Tue Mar 8 14:53:12 2005 CET (4 years, 3 months ago) by skrll
Branches: ktrace-lwp
Diff to previous 1.107.2.8: preferred, colored
Changes since revision 1.107.2.8: +21 -5 lines
Sync with HEAD.

Revision 1.146: download - view: text, markup, annotated - select for diffs
Sun Mar 6 01:35:07 2005 CET (4 years, 4 months ago) by matt
Branches: MAIN
Diff to previous 1.145: preferred, colored
Changes since revision 1.145: +18 -4 lines
Add IPv4/TCP hooks for TCP Segment Offload on transmit.

Revision 1.145: download - view: text, markup, annotated - select for diffs
Sat Mar 5 03:46:38 2005 CET (4 years, 4 months ago) by briggs
Branches: MAIN
Diff to previous 1.144: preferred, colored
Changes since revision 1.144: +5 -3 lines
Fix checksum offload for fragmented packets.  From John Heasley
on gnats-bugs in PR kern/29544.
Tested with an NFS client using default rwsize on an NFS server
with wm(4) interface configured IP4CSUM,TCP4CSUM,UDP4CSUM.
Prior revision required the server to have checksum offload disabled.

Revision 1.107.2.8: download - view: text, markup, annotated - select for diffs
Fri Mar 4 17:53:29 2005 CET (4 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to previous 1.107.2.7: preferred, colored
Changes since revision 1.107.2.7: +11 -41 lines
Sync with HEAD.

Hi Perry!

Revision 1.144: download - view: text, markup, annotated - select for diffs
Sat Feb 26 23:45:12 2005 CET (4 years, 4 months ago) by perry
Branches: MAIN
Diff to previous 1.143: preferred, colored
Changes since revision 1.143: +9 -9 lines
nuke trailing whitespace

Revision 1.143: download - view: text, markup, annotated - select for diffs
Fri Feb 18 01:52:56 2005 CET (4 years, 4 months ago) by heas
Branches: MAIN
CVS tags: matt-timespec
Diff to previous 1.142: preferred, colored
Changes since revision 1.142: +4 -34 lines
My last change for pseudo-header checksums was flawed.  The pseudo-header
checksum is always in the L4 header by the time we get to this point.  It
was occasionally not there due to a bug in tcp_respond, which has since
been fixed.
So, instead just stash the length of the L3 header in the high 16 bits of
csum_data.

Revision 1.107.2.7: download - view: text, markup, annotated - select for diffs
Tue Feb 15 22:33:39 2005 CET (4 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to previous 1.107.2.6: preferred, colored
Changes since revision 1.107.2.6: +75 -7 lines
Sync with HEAD.

Revision 1.142: download - view: text, markup, annotated - select for diffs
Sun Feb 13 00:25:29 2005 CET (4 years, 4 months ago) by heas
Branches: MAIN
Diff to previous 1.141: preferred, colored
Changes since revision 1.141: +33 -2 lines
For controllers (eg: hme & gem) that can only perform linear hardware checksums
(from an offset to the end of the packet), the pseudo-header checksum must be
calculated by software.  So, provide it in the TCP/UDP header when
M_CSUM_NO_PSEUDOHDR is set in the interface's if_csum_flags_tx.

The start offset, the end of the IP header, is also provided in the high 16
bits of pkthdr.csum_data.  Such that the driver need not examine the packet
at all.

XXX At the request of Jonathan Stone, note that sharing of if_csum_flags_tx &
    pkthdr.csum_flags for checksum quirks should be re-evaluated.

Revision 1.138.4.1: download - view: text, markup, annotated - select for diffs
Sat Feb 12 19:17:54 2005 CET (4 years, 4 months ago) by yamt
Branches: yamt-km
Diff to previous 1.138: preferred, colored
Changes since revision 1.138: +59 -46 lines
sync with head.

Revision 1.141: download - view: text, markup, annotated - select for diffs
Sat Feb 12 13:31:07 2005 CET (4 years, 4 months ago) by manu
Branches: MAIN
CVS tags: yamt-km-base2
Diff to previous 1.140: preferred, colored
Changes since revision 1.140: +44 -7 lines
Add support for IPsec Network Address Translator traversal (NAT-T), as
described by RFC 3947 and 3948.

Revision 1.107.2.6: download - view: text, markup, annotated - select for diffs
Fri Feb 4 12:47:48 2005 CET (4 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to previous 1.107.2.5: preferred, colored
Changes since revision 1.107.2.5: +17 -41 lines
Sync with HEAD.

Revision 1.140: download - view: text, markup, annotated - select for diffs
Fri Feb 4 00:13:20 2005 CET (4 years, 4 months ago) by perry
Branches: MAIN
Diff to previous 1.139: preferred, colored
Changes since revision 1.139: +14 -37 lines
ANSIfy function declarations

Revision 1.139: download - view: text, markup, annotated - select for diffs
Wed Feb 2 22:41:55 2005 CET (4 years, 5 months ago) by perry
Branches: MAIN
Diff to previous 1.138: preferred, colored
Changes since revision 1.138: +5 -6 lines
de-__P -- will ANSIfy .c files later.

Revision 1.107.2.5: download - view: text, markup, annotated - select for diffs
Sat Dec 18 10:33:05 2004 CET (4 years, 6 months ago) by skrll
Branches: ktrace-lwp
Diff to previous 1.107.2.4: preferred, colored
Changes since revision 1.107.2.4: +7 -4 lines
Sync with HEAD.

Revision 1.138: download - view: text, markup, annotated - select for diffs
Wed Dec 15 05:25:19 2004 CET (4 years, 6 months ago) by thorpej
Branches: MAIN
CVS tags: yamt-km-base, kent-audio1-beforemerge
Branch point for: yamt-km, kent-audio2
Diff to previous 1.137: preferred, colored
Changes since revision 1.137: +6 -3 lines
Don't perform checksums on loopback interfaces.  They can be reenabled with
the net.inet.*.do_loopback_cksum sysctl.

Approved by: groo

Revision 1.137: download - view: text, markup, annotated - select for diffs
Sat Dec 4 17:10:25 2004 CET (4 years, 7 months ago) by peter
Branches: MAIN
CVS tags: kent-audio1-base, kent-audio1
Diff to previous 1.136: preferred, colored
Changes since revision 1.136: +3 -3 lines
Convert lo(4) to a clonable device.

This also removes the loif array and changes all code to use the new
lo0ifp pointer which points to the lo0 ifnet structure.

Approved by christos.

Revision 1.107.2.4: download - view: text, markup, annotated - select for diffs
Tue Oct 19 17:58:15 2004 (4 years, 8 months ago) by skrll
Branches: ktrace-lwp
Diff to previous 1.107.2.3: preferred, colored
Changes since revision 1.107.2.3: +11 -14 lines
Sync with HEAD

Revision 1.136: download - view: text, markup, annotated - select for diffs
Wed Oct 6 07:42:24 2004 (4 years, 8 months ago) by thorpej
Branches: MAIN
Diff to previous 1.135: preferred, colored
Changes since revision 1.135: +11 -14 lines
Slight simplification to IFA_STATS handling.

Revision 1.107.2.3: download - view: text, markup, annotated - select for diffs
Tue Sep 21 15:37:12 2004 (4 years, 9 months ago) by skrll
Branches: ktrace-lwp
Diff to previous 1.107.2.2: preferred, colored
Changes since revision 1.107.2.2: +2 -2 lines
Fix the sync with head I botched.

Revision 1.107.2.2: download - view: text, markup, annotated - select for diffs
Sat Sep 18 16:54:54 2004 (4 years, 9 months ago) by skrll
Branches: ktrace-lwp
Diff to previous 1.107.2.1: preferred, colored
Changes since revision 1.107.2.1: +14 -11 lines
Sync with HEAD.

Revision 1.135: download - view: text, markup, annotated - select for diffs
Sun Sep 5 01:30:07 2004 (4 years, 9 months ago) by manu
Branches: MAIN
Diff to previous 1.134: preferred, colored
Changes since revision 1.134: +14 -11 lines
IPv4 PIM support, based on a submission from Pavlin Radoslavov posted on
tech-net@

Revision 1.107.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 3 12:54:41 2004 (4 years, 11 months ago) by skrll
Branches: ktrace-lwp
Diff to previous 1.107: preferred, colored
Changes since revision 1.107: +285 -91 lines
Sync with HEAD

Revision 1.134: download - view: text, markup, annotated - select for diffs
Tue Jul 6 06:30:27 2004 (4 years, 11 months ago) by minoura
Branches: MAIN
CVS tags: BEFORE-IPF413
Diff to previous 1.133: preferred, colored
Changes since revision 1.133: +4 -3 lines
Remove broken code for now: getsockopt(s, IPPROTO_IP, IP_IPSEC_POLICY,...).
It returned EINVAL, now returns ENOPROTOOPT.
Ok'd by itojun.

Revision 1.133: download - view: text, markup, annotated - select for diffs
Tue Jun 1 07:06:56 2004 (5 years, 1 month ago) by itojun
Branches: MAIN
Diff to previous 1.132: preferred, colored
Changes since revision 1.132: +6 -3 lines
update mtu value if outgoing interface changes with ipsec ops
(draft-touch-vpn case only?)  iij seil team

Revision 1.132: download - view: text, markup, annotated - select for diffs
Tue May 18 18:47:08 2004 (5 years, 1 month ago) by christos
Branches: MAIN
Diff to previous 1.131: preferred, colored
Changes since revision 1.131: +5 -5 lines
Fix buffer overrun in in_pcbopts() (FreeBSD PR/66386)

Revision 1.131: download - view: text, markup, annotated - select for diffs
Mon Apr 26 03:31:57 2004 (5 years, 2 months ago) by matt
Branches: MAIN
Diff to previous 1.130: preferred, colored
Changes since revision 1.130: +2 -8 lines
Remove #else clause of __STDC__

Revision 1.130: download - view: text, markup, annotated - select for diffs
Tue Mar 2 03:28:28 2004 CET (5 years, 4 months ago) by thorpej
Branches: MAIN
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-base, 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-0, netbsd-2, BEFORE-IPF411
Diff to previous 1.129: preferred, colored
Changes since revision 1.129: +11 -4 lines
Use the new IPSEC_PCB_SKIP_IPSEC() to bypass a socket policy lookup
when possible.  This shaves several cycles from the output path for
non-IPsec connections, even if the policy is cached in the PCB.

Revision 1.129: download - view: text, markup, annotated - select for diffs
Wed Dec 10 12:46:33 2003 CET (5 years, 6 months ago) by itojun
Branches: MAIN
Diff to previous 1.128: preferred, colored
Changes since revision 1.128: +5 -3 lines
use if_indexlim (instead of if_index) and ifindex2ifnet[x] != NULL
to check if interface exists, as (1) if_index has different meaning
(2) ifindex2ifnet could become NULL when interface gets destroyed,
since when we have introduced dynamically-created interfaces.  from kame

Revision 1.128: download - view: text, markup, annotated - select for diffs
Wed Nov 19 19:39:34 2003 CET (5 years, 7 months ago) by jonathan
Branches: MAIN
Diff to previous 1.127: preferred, colored
Changes since revision 1.127: +3 -2 lines
Patch back support for (badly) randomized IP ids, by request:

* Include "opt_inet.h" everywhere IP-ids are generated with ip_newid(),
  so the RANDOM_IP_ID option is visible. Also in ip_id(), to ensure
  the prototype for ip_randomid() is made visible.

* Add new sysctl to enable randomized IP-ids, provided the kernel was
  configured with RANDOM_IP_ID. (The sysctl defaults to zero, and is
  a read-only zero if RANDOM_IP_ID is not configured).

Note that the implementation of randomized IP ids is still defective,
and should not be enabled at all (even if configured) without
very careful deliberation. Caveat emptor.

Revision 1.127: download - view: text, markup, annotated - select for diffs
Mon Nov 17 22:34:27 2003 CET (5 years, 7 months ago) by jonathan
Branches: MAIN
Diff to previous 1.126: preferred, colored
Changes since revision 1.126: +3 -3 lines
Revert the (default) ip_id algorithm to the pre-randomid algorithm,
due to demonstrated low-period repeated IDs from the randomized IP_id
code.  Consensus is that the low-period repetition (much less than
2^15) is not suitable for general-purpose use.

Allocators of new IPv4 IDs should now call the function ip_newid().
Randomized IP_ids is now a config-time option, "options RANDOM_IP_ID".
ip_newid() can use ip_random-id()_IP_ID if and only if configured
with RANDOM_IP_ID. A sysctl knob should be  provided.

This API may be reworked in the near future to support linear ip_id
counters per (src,dst) IP-address pair.

Revision 1.126: download - view: text, markup, annotated - select for diffs
Fri Oct 17 22:31:12 2003 (5 years, 8 months ago) by enami
Branches: MAIN
Diff to previous 1.125: preferred, colored
Changes since revision 1.125: +7 -3 lines
Increment stats when packet is dropped since there is no room
to put all fragments in the interfaces's send queue.  Some large
UDP packets are dropped here and administrator may want to bump ifqmaxlen.

Revision 1.125: download - view: text, markup, annotated - select for diffs
Tue Oct 14 08:36:48 2003 (5 years, 8 months ago) by itojun
Branches: MAIN
Diff to previous 1.124: preferred, colored
Changes since revision 1.124: +3 -3 lines
more correction to ip_fragment; free mbuf correctly if ENOBUFS is raised
during fragmenting.

Revision 1.124: download - view: text, markup, annotated - select for diffs
Tue Oct 14 05:38:49 2003 (5 years, 8 months ago) by itojun
Branches: MAIN
Diff to previous 1.123: preferred, colored
Changes since revision 1.123: +15 -4 lines
avoid mbuf leak on ip_fragment(); obey 4.4bsd mbuf passing rule (mbuf passed
to a function must be freed by the called function on error).
pointed out by enami

Revision 1.123: download - view: text, markup, annotated - select for diffs
Fri Oct 3 22:56:11 2003 (5 years, 9 months ago) by itojun
Branches: MAIN
Diff to previous 1.122: preferred, colored
Changes since revision 1.122: +4 -3 lines
when dropping M_PKTHDR, need to free m_tag associated with it.

Revision 1.122: download - view: text, markup, annotated - select for diffs
Thu Oct 2 01:54:40 2003 (5 years, 9 months ago) by itojun
Branches: MAIN
Diff to previous 1.121: preferred, colored
Changes since revision 1.121: +6 -5 lines
correct ip_fragment() wrt ip->ip_off handling.
do not send out incomplete fragment due to ENOBUFS (behavior change from 4.4BSD)

Revision 1.121: download - view: text, markup, annotated - select for diffs
Fri Sep 19 02:27:56 2003 (5 years, 9 months ago) by jonathan
Branches: MAIN
Diff to previous 1.120: preferred, colored
Changes since revision 1.120: +3 -3 lines
Fast-ipsec can call ip_output() with a null 'struct socket *so'
argument.  So check so is non-NULL before doing the pointer-chasing
dance to find the PCB. (Unless and until we rework fast-ipsec and
KAME, to pass a struct in_pcbhdr * instead of the struct socket *).

Revision 1.120: download - view: text, markup, annotated - select for diffs
Sat Sep 6 05:36:30 2003 (5 years, 9 months ago) by itojun
Branches: MAIN
Diff to previous 1.119: preferred, colored
Changes since revision 1.119: +3 -3 lines
randomize IPv4/v6 fragment ID and IPv6 flowlabel.  avoids predictability
of these fields.  ip_id.c is from openbsd.  ip6_id.c is adapted by kame.

Revision 1.119: download - view: text, markup, annotated - select for diffs
Wed Aug 27 04:09:59 2003 (5 years, 10 months ago) by itojun
Branches: MAIN
Diff to previous 1.118: preferred, colored
Changes since revision 1.118: +3 -3 lines
don't intiialize m by m0, m0 is not initialized (by introduction of ip_fragment)

Revision 1.118: download - view: text, markup, annotated - select for diffs
Sat Aug 23 03:41:10 2003 (5 years, 10 months ago) by itojun
Branches: MAIN
Diff to previous 1.117: preferred, colored
Changes since revision 1.117: +5 -2 lines
need sys/domain.h for FAST_IPSEC case; jonathan

Revision 1.117: download - view: text, markup, annotated - select for diffs
Sat Aug 23 00:00:37 2003 (5 years, 10 months ago) by itojun
Branches: MAIN
Diff to previous 1.116: preferred, colored
Changes since revision 1.116: +2 -6 lines
remove ipsec_set/getsocket.  now we explicitly pass socket * to ip{,6}_output.

Revision 1.116: download - view: text, markup, annotated - select for diffs
Fri Aug 22 23:53:04 2003 (5 years, 10 months ago) by itojun
Branches: MAIN
Diff to previous 1.115: preferred, colored
Changes since revision 1.115: +12 -7 lines
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.115: download - view: text, markup, annotated - select for diffs
Fri Aug 22 22:29:00 2003 (5 years, 10 months ago) by jonathan
Branches: MAIN
Diff to previous 1.114: preferred, colored
Changes since revision 1.114: +5 -4 lines
Change KAME code for ip_output()/ip6_output() to obtain struct socket*
from the explicit inpcb*/in6pcb* argument.  set_socket() becomes redundant.

Revision 1.114: download - view: text, markup, annotated - select for diffs
Tue Aug 19 10:00:54 2003 (5 years, 10 months ago) by itojun
Branches: MAIN
Diff to previous 1.113: preferred, colored
Changes since revision 1.113: +2 -4 lines
remove unneeded #ifdef __NetBSD__

Revision 1.113: download - view: text, markup, annotated - select for diffs
Tue Aug 19 03:20:03 2003 (5 years, 10 months ago) by itojun
Branches: MAIN
Diff to previous 1.112: preferred, colored
Changes since revision 1.112: +3 -4 lines
make ip_fragment public (it is for coming PF integration)

Revision 1.112: download - view: text, markup, annotated - select for diffs
Tue Aug 19 02:54:41 2003 (5 years, 10 months ago) by christos
Branches: MAIN
Diff to previous 1.111: preferred, colored
Changes since revision 1.111: +4 -3 lines
make ip_fragment static and add prototype.

Revision 1.111: download - view: text, markup, annotated - select for diffs
Tue Aug 19 02:17:38 2003 (5 years, 10 months ago) by itojun
Branches: MAIN
Diff to previous 1.110: preferred, colored
Changes since revision 1.110: +6 -4 lines
correct ip_multicast_if fix to always set ifp (tnx Shiva)

Revision 1.110: download - view: text, markup, annotated - select for diffs
Tue Aug 19 00:23:22 2003 (5 years, 10 months ago) by itojun
Branches: MAIN
Diff to previous 1.109: preferred, colored
Changes since revision 1.109: +88 -64 lines
fix problem we can't drop membership on !IFF_UP interface.
reported by Shiva Shenoy

while we're here, fix another problem when the same interface address is
assigned to !IFF_MULTICAST and IFF_MULTICAST interface.  if ip_multicast_if()
returns the first one, join/leave will fail, which is not an desired effect.

Revision 1.109: download - view: text, markup, annotated - select for diffs
Fri Aug 15 05:42:03 2003 (5 years, 10 months ago) by jonathan
Branches: MAIN
Diff to previous 1.108: preferred, colored
Changes since revision 1.108: +150 -6 lines
(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.108: download - view: text, markup, annotated - select for diffs
Thu Aug 7 18:33:14 2003 (5 years, 10 months ago) by agc
Branches: MAIN
Diff to previous 1.107: preferred, colored
Changes since revision 1.107: +3 -7 lines
Move UCB-licensed code from 4-clause to 3-clause licence.

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

Revision 1.74.4.4: download - view: text, markup, annotated - select for diffs
Mon Aug 4 21:48:36 2003 (5 years, 11 months ago) by msaitoh
Branches: netbsd-1-5
Diff to previous 1.74.4.3: preferred, colored to branchpoint 1.74: preferred, colored next main 1.75: preferred, colored
Changes since revision 1.74.4.3: +2 -5 lines
Pull up revision 1.106-1.107 (requested by itojun in ticket #53):
 after pfil_run_hooks, need to fix hlen as well.
 freebsd code somehow crept in.

Revision 1.95.10.3: download - view: text, markup, annotated - select for diffs
Mon Jun 30 05:25:22 2003 (6 years ago) by grant
Branches: netbsd-1-6
CVS tags: 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
Diff to previous 1.95.10.2: preferred, colored to branchpoint 1.95: preferred, colored next main 1.96: preferred, colored
Changes since revision 1.95.10.2: +4 -8 lines
Pull up revisions 1.106-1.107 (requested by itojun in ticket #1358):

after pfil_run_hooks, need to fix hlen as well

freebsd code somehow crept in

Revision 1.107: download - view: text, markup, annotated - select for diffs
Mon Jun 30 04:08:28 2003 (6 years ago) by itojun
Branches: MAIN
Branch point for: ktrace-lwp
Diff to previous 1.106: preferred, colored
Changes since revision 1.106: +2 -6 lines
freebsd code somehow crept in

Revision 1.106: download - view: text, markup, annotated - select for diffs
Mon Jun 30 03:22:51 2003 (6 years ago) by itojun
Branches: MAIN
Diff to previous 1.105: preferred, colored
Changes since revision 1.105: +4 -4 lines
after pfil_run_hooks, need to fix hlen as well

Revision 1.105: download - view: text, markup, annotated - select for diffs
Thu Jun 26 02:43:32 2003 (6 years ago) by itojun
Branches: MAIN
Diff to previous 1.104: preferred, colored
Changes since revision 1.104: +3 -3 lines
tabify

Revision 1.104: download - view: text, markup, annotated - select for diffs
Mon May 26 17:12:11 2003 (6 years, 1 month ago) by yamt
Branches: MAIN
Diff to previous 1.103: preferred, colored
Changes since revision 1.103: +22 -10 lines
- don't pass mbufs with M_CSUM_* flags which isn't supported by the interface
  to if_output.
- offload ip-checksumming for each fragmented packets as well.

Revision 1.103: download - view: text, markup, annotated - select for diffs
Wed Feb 26 07:31:15 2003 CET (6 years, 4 months ago) by matt
Branches: MAIN
Diff to previous 1.102: preferred, colored
Changes since revision 1.102: +10 -2 lines
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.74.4.3: download - view: text, markup, annotated - select for diffs
Sun Dec 15 16:20:21 2002 CET (6 years, 6 months ago) by he
Branches: netbsd-1-5
Diff to previous 1.74.4.2: preferred, colored to branchpoint 1.74: preferred, colored
Changes since revision 1.74.4.2: +4 -2 lines
Pull up revision 1.102 (requested by darrenr):
  Initialize len and check what ip_insertoptions() returns.
  In some rare cases there might not be sufficient room for
  the options.

Revision 1.95.10.2: download - view: text, markup, annotated - select for diffs
Fri Nov 1 13:14:28 2002 CET (6 years, 8 months ago) by tron
Branches: netbsd-1-6
CVS tags: netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Diff to previous 1.95.10.1: preferred, colored to branchpoint 1.95: preferred, colored
Changes since revision 1.95.10.1: +21 -8 lines
Pull up revision 1.98-1.99 (requested by itojun in ticket #356):
do not consult routing table under the following condition:
- - the destination is IPv4 multicast or 255.255.255.255, and
- - outgoing interface is specified via socket option
this simplifies operation of routed
(no longer require 224.0.0.0/4 to be set up)

Revision 1.86.2.7: download - view: text, markup, annotated - select for diffs
Thu Oct 10 20:44:02 2002 (6 years, 8 months ago) by jdolecek
Branches: kqueue
Diff to previous 1.86.2.6: preferred, colored next main 1.87: preferred, colored
Changes since revision 1.86.2.6: +6 -4 lines
sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.95.10.1: download - view: text, markup, annotated - select for diffs
Mon Sep 30 15:05:29 2002 (6 years, 9 months ago) by lukem
Branches: netbsd-1-6
Diff to previous 1.95: preferred, colored
Changes since revision 1.95: +5 -3 lines
Pull up revision 1.102 (requested by darrenr in ticket #842):
From FreeBSD (1.164) courtesy of Maxim Konovalov:
"In rare cases when there is no room for ip options ip_insertoptions()
can fail and corrupt a header length.  Initialize len and check what
ip_insertoptions() returns."

Revision 1.83.2.16: download - view: text, markup, annotated - select for diffs
Sat Sep 21 01:40:51 2002 (6 years, 9 months ago) by thorpej
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to previous 1.83.2.15: preferred, colored next main 1.84: preferred, colored
Changes since revision 1.83.2.15: +5 -3 lines
Sync with HEAD.

Revision 1.83.2.15: download - view: text, markup, annotated - select for diffs
Tue Sep 17 23:23:05 2002 (6 years, 9 months ago) by nathanw
Branches: nathanw_sa
Diff to previous 1.83.2.14: preferred, colored
Changes since revision 1.83.2.14: +1 -1 lines
Catch up to -current.

Revision 1.102: download - view: text, markup, annotated - select for diffs
Tue Sep 17 15:10:59 2002 (6 years, 9 months ago) by darrenr
Branches: 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, fvdl_fs64_base
Diff to previous 1.101: preferred, colored
Changes since revision 1.101: +5 -3 lines
From FreeBSD (1.164) courtesy of Maxim Konovalov:
"In rare cases when there is no room for ip options ip_insertoptions()
can fail and corrupt a header length.  Initialize len and check what
ip_insertoptions() returns."

Revision 1.101: download - view: text, markup, annotated - select for diffs
Wed Sep 11 04:46:43 2002 (6 years, 9 months ago) by itojun
Branches: MAIN
Diff to previous 1.100: preferred, colored
Changes since revision 1.100: +3 -3 lines
KNF - return is not a function.  sync w/kame.

Revision 1.86.2.6: download - view: text, markup, annotated - select for diffs
Fri Sep 6 10:49:16 2002 (6 years, 9 months ago) by jdolecek
Branches: kqueue
Diff to previous 1.86.2.5: preferred, colored
Changes since revision 1.86.2.5: +36 -39 lines
sync kqueue branch with HEAD

Revision 1.95.8.3: download - view: text, markup, annotated - select for diffs
Thu Aug 29 02:56:47 2002 (6 years, 10 months ago) by gehenna
Branches: gehenna-devsw
Diff to previous 1.95.8.2: preferred, colored to branchpoint 1.95: preferred, colored next main 1.96: preferred, colored
Changes since revision 1.95.8.2: +17 -33 lines
catch up with -current.

Revision 1.83.2.14: download - view: text, markup, annotated - select for diffs
Wed Aug 28 01:48:02 2002 (6 years, 10 months ago) by nathanw
Branches: nathanw_sa
Diff to previous 1.83.2.13: preferred, colored
Changes since revision 1.83.2.13: +15 -31 lines
Catch up to -current.

Revision 1.100: download - view: text, markup, annotated - select for diffs
Wed Aug 14 02:23:32 2002 (6 years, 10 months ago) by itojun
Branches: MAIN
CVS tags: gehenna-devsw-base
Diff to previous 1.99: preferred, colored
Changes since revision 1.99: +17 -33 lines
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.83.2.13: download - view: text, markup, annotated - select for diffs
Thu Aug 1 04:46:48 2002 (6 years, 11 months ago) by nathanw
Branches: nathanw_sa
Diff to previous 1.83.2.12: preferred, colored
Changes since revision 1.83.2.12: +21 -8 lines
Catch up to -current.

Revision 1.95.8.2: download - view: text, markup, annotated - select for diffs
Mon Jul 15 12:36:59 2002 (6 years, 11 months ago) by gehenna
Branches: gehenna-devsw
Diff to previous 1.95.8.1: preferred, colored to branchpoint 1.95: preferred, colored
Changes since revision 1.95.8.1: +21 -8 lines
catch up with -current.

Revision 1.83.2.12: download - view: text, markup, annotated - select for diffs
Fri Jul 12 03:40:32 2002 (6 years, 11 months ago) by nathanw
Branches: nathanw_sa
Diff to previous 1.83.2.11: preferred, colored
Changes since revision 1.83.2.11: +2 -3 lines
No longer need to pull in lwp.h; proc.h pulls it in for us.

Revision 1.83.2.11: download - view: text, markup, annotated - select for diffs
Tue Jun 25 00:11:47 2002 (7 years ago) by nathanw
Branches: nathanw_sa
Diff to previous 1.83.2.10: preferred, colored
Changes since revision 1.83.2.10: +3 -3 lines
Curproc->curlwp renaming.

Change uses of "curproc->l_proc" back to "curproc", which is more like the
original use. Bare uses of "curproc" are now "curlwp".

"curproc" is now #defined in proc.h as ((curlwp) ? (curlwp)->l_proc) : NULL)
so that it is always safe to reference curproc (*de*referencing curproc
is another story, but that's always been true).

Revision 1.99: download - view: text, markup, annotated - select for diffs
Mon Jun 24 10:11:30 2002 (7 years ago) by itojun
Branches: MAIN
Diff to previous 1.98: preferred, colored
Changes since revision 1.98: +3 -2 lines
set ia as well

Revision 1.98: download - view: text, markup, annotated - select for diffs
Mon Jun 24 10:01:35 2002 (7 years ago) by itojun
Branches: MAIN
Diff to previous 1.97: preferred, colored
Changes since revision 1.97: +20 -8 lines
do not consult routing table under the following condition:
- the destination is IPv4 multicast or 255.255.255.255, and
- outgoing interface is specified via socket option

this simplifies operation of routed
(no longer reqiure 224.0.0.0/4 to be set up)

Revision 1.86.2.5: download - view: text, markup, annotated - select for diffs
Sun Jun 23 19:50:56 2002 (7 years ago) by jdolecek
Branches: kqueue
Diff to previous 1.86.2.4: preferred, colored
Changes since revision 1.86.2.4: +8 -8 lines
catch up with -current on kqueue branch

Revision 1.95.8.1: download - view: text, markup, annotated - select for diffs
Thu Jun 20 17:52:24 2002 (7 years ago) by gehenna
Branches: gehenna-devsw
Diff to previous 1.95: preferred, colored
Changes since revision 1.95: +8 -8 lines
catch up with -current.

Revision 1.83.2.10: download - view: text, markup, annotated - select for diffs
Thu Jun 20 05:48:49 2002 (7 years ago) by nathanw
Branches: nathanw_sa
Diff to previous 1.83.2.9: preferred, colored
Changes since revision 1.83.2.9: +8 -8 lines
Catch up to -current.

Revision 1.97: download - view: text, markup, annotated - select for diffs
Sun Jun 9 18:33:42 2002 (7 years ago) by itojun
Branches: MAIN
Diff to previous 1.96: preferred, colored
Changes since revision 1.96: +7 -7 lines
whitespace

Revision 1.96: download - view: text, markup, annotated - select for diffs
Fri May 31 07:26:42 2002 (7 years, 1 month ago) by itojun
Branches: MAIN
Diff to previous 1.95: preferred, colored
Changes since revision 1.95: +3 -3 lines
since if_mtu is u_long, use u_long for mtu.

Revision 1.86.2.4: download - view: text, markup, annotated - select for diffs
Sat Mar 16 17:02:13 2002 CET (7 years, 3 months ago) by jdolecek
Branches: kqueue
Diff to previous 1.86.2.3: preferred, colored
Changes since revision 1.86.2.3: +5 -4 lines
Catch up with -current.

Revision 1.83.2.9: download - view: text, markup, annotated - select for diffs
Thu Feb 28 05:15:09 2002 CET (7 years, 4 months ago) by nathanw
Branches: nathanw_sa
Diff to previous 1.83.2.8: preferred, colored
Changes since revision 1.83.2.8: +16 -4 lines
Catch up to -current.

Revision 1.86.2.3: download - view: text, markup, annotated - select for diffs
Mon Feb 11 21:10:36 2002 CET (7 years, 4 months ago) by jdolecek
Branches: kqueue
Diff to previous 1.86.2.2: preferred, colored
Changes since revision 1.86.2.2: +13 -2 lines
Sync w/ -current.

Revision 1.95: download - view: text, markup, annotated - select for diffs
Thu Feb 7 22:47:45 2002 CET (7 years, 4 months ago) by thorpej
Branches: MAIN
CVS tags: newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, ifpoll-base, ifpoll, eeh-devprop-base, eeh-devprop
Branch point for: netbsd-1-6, gehenna-devsw
Diff to previous 1.94: preferred, colored
Changes since revision 1.94: +5 -4 lines
IFF_POINTTOPOINT interfaces can also transmit packets to broadcast
destinations.

Revision 1.94: download - view: text, markup, annotated - select for diffs
Wed Feb 6 19:00:01 2002 CET (7 years, 4 months ago) by thorpej
Branches: MAIN
Diff to previous 1.93: preferred, colored
Changes since revision 1.93: +3 -3 lines
ip_mloopback(): process the delayed checksum on the copy, not
the original mbuf.

Revision 1.93: download - view: text, markup, annotated - select for diffs
Thu Jan 31 08:45:22 2002 CET (7 years, 5 months ago) by itojun
Branches: MAIN
Diff to previous 1.92: preferred, colored
Changes since revision 1.92: +9 -2 lines
correct bad ip checksum on multicast loopback packet.  PR14597

Revision 1.92: download - view: text, markup, annotated - select for diffs
Tue Jan 22 04:53:55 2002 CET (7 years, 5 months ago) by itojun
Branches: MAIN
Diff to previous 1.91: preferred, colored
Changes since revision 1.91: +6 -2 lines
make sure to check address family on route cache.  with IPv4 mapped
address we can see both AF_INET/INET6.

Revision 1.74.4.2: download - view: text, markup, annotated - select for diffs
Mon Jan 14 16:44:38 2002 CET (7 years, 5 months ago) by he
Branches: netbsd-1-5
CVS tags: netbsd-1-5-PATCH003
Diff to previous 1.74.4.1: preferred, colored to branchpoint 1.74: preferred, colored
Changes since revision 1.74.4.1: +5 -1 lines
Pull up revision 1.91 (requested by itojun):
  Avoid kernel panic on IPv4 multicast packet transmission if there
  is no IPv4 address assigned to the specified outgoing interface.

Revision 1.83.2.8: download - view: text, markup, annotated - select for diffs
Sat Jan 12 00:39:46 2002 CET (7 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to previous 1.83.2.7: preferred, colored
Changes since revision 1.83.2.7: +6 -2 lines
More catchup.

Revision 1.86.2.2: download - view: text, markup, annotated - select for diffs
Thu Jan 10 21:02:54 2002 CET (7 years, 5 months ago) by thorpej
Branches: kqueue
Diff to previous 1.86.2.1: preferred, colored
Changes since revision 1.86.2.1: +13 -5 lines
Sync kqueue branch with -current.

Revision 1.91: download - view: text, markup, annotated - select for diffs
Tue Jan 8 11:05:13 2002 CET (7 years, 5 months ago) by itojun
Branches: MAIN
Diff to previous 1.90: preferred, colored
Changes since revision 1.90: +6 -2 lines
don't panic when there's no interface address exist for the specified multicast
outgoing interface (ia == NULL after IFP_TO_IA).

historic behavior (up to revision 1.43) was to use 0.0.0.0 as source address,
but it seems like a mistake according to RFC1112/1122.

Revision 1.83.2.7: download - view: text, markup, annotated - select for diffs
Tue Jan 8 01:34:09 2002 CET (7 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to previous 1.83.2.6: preferred, colored
Changes since revision 1.83.2.6: +5 -4 lines
Catch up to -current.

Revision 1.90: download - view: text, markup, annotated - select for diffs
Wed Nov 21 07:28:08 2001 CET (7 years, 7 months ago) by itojun
Branches: MAIN
Diff to previous 1.89: preferred, colored
Changes since revision 1.89: +5 -4 lines
update outgoing ifp, only if tunnel mode ipsec is used.  this is to
honor IP_MULTICAST_IF setsockopt on ipsec-over-multicast.  sync with kame

Revision 1.83.2.6: download - view: text, markup, annotated - select for diffs
Wed Nov 14 20:17:53 2001 CET (7 years, 7 months ago) by nathanw
Branches: nathanw_sa
Diff to previous 1.83.2.5: preferred, colored
Changes since revision 1.83.2.5: +4 -1 lines
Catch up to -current.

Revision 1.89: download - view: text, markup, annotated - select for diffs
Tue Nov 13 01:32:39 2001 CET (7 years, 7 months ago) by lukem
Branches: MAIN
Diff to previous 1.88: preferred, colored
Changes since revision 1.88: +4 -1 lines
add RCSIDs

Revision 1.87.2.1: download - view: text, markup, annotated - select for diffs
Mon Oct 1 14:47:44 2001 (7 years, 9 months ago) by fvdl
Branches: thorpej-devvp
Diff to previous 1.87: preferred, colored next main 1.88: preferred, colored
Changes since revision 1.87: +3 -3 lines
Catch up with -current.

Revision 1.83.2.5: download - view: text, markup, annotated - select for diffs
Sat Sep 22 00:36:49 2001 (7 years, 9 months ago) by nathanw
Branches: nathanw_sa
Diff to previous 1.83.2.4: preferred, colored
Changes since revision 1.83.2.4: +3 -3 lines
Catch up to -current.

Revision 1.88: download - view: text, markup, annotated - select for diffs
Mon Sep 17 19:27:00 2001 (7 years, 9 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2
Diff to previous 1.87: preferred, colored
Changes since revision 1.87: +3 -3 lines
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.86.2.1: download - view: text, markup, annotated - select for diffs
Sat Aug 25 08:17:03 2001 (7 years, 10 months ago) by thorpej
Branches: kqueue
Diff to previous 1.86: preferred, colored
Changes since revision 1.86: +6 -4 lines
Merge Aug 24 -current into the kqueue branch.

Revision 1.83.2.4: download - view: text, markup, annotated - select for diffs
Fri Aug 24 02:12:27 2001 (7 years, 10 months ago) by nathanw
Branches: nathanw_sa
Diff to previous 1.83.2.3: preferred, colored
Changes since revision 1.83.2.3: +6 -4 lines
Catch up with -current.

Revision 1.87: download - view: text, markup, annotated - select for diffs
Sat Aug 11 14:26:50 2001 (7 years, 10 months ago) by yamt
Branches: MAIN
CVS tags: thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp
Diff to previous 1.86: preferred, colored
Changes since revision 1.86: +6 -4 lines
fix cksum error of udp and tcp packet with ip options

Revision 1.83.2.3: download - view: text, markup, annotated - select for diffs
Thu Jun 21 22:08:41 2001 (8 years ago) by nathanw
Branches: nathanw_sa
Diff to previous 1.83.2.2: preferred, colored
Changes since revision 1.83.2.2: +79 -10 lines
Catch up to -current.

Revision 1.86: download - view: text, markup, annotated - select for diffs
Sat Jun 2 18:17:10 2001 (8 years, 1 month ago) by thorpej
Branches: MAIN
Branch point for: kqueue
Diff to previous 1.85: preferred, colored
Changes since revision 1.85: +77 -4 lines
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.85: download - view: text, markup, annotated - select for diffs
Sat May 26 23:27:09 2001 (8 years, 1 month ago) by ragge
Branches: MAIN
Diff to previous 1.84: preferred, colored
Changes since revision 1.84: +2 -6 lines
Remove one #ifdef vax, bugfix another. Should probably be #ifdef i386 also.

Revision 1.62.2.6: download - view: text, markup, annotated - select for diffs
Sat Apr 21 19:46:51 2001 (8 years, 2 months ago) by bouyer
Branches: thorpej_scsipi
Diff to previous 1.62.2.5: preferred, colored to branchpoint 1.62: preferred, colored next main 1.63: preferred, colored
Changes since revision 1.62.2.5: +2 -2 lines
Sync with HEAD

Revision 1.84: download - view: text, markup, annotated - select for diffs
Sat Apr 14 01:30:24 2001 (8 years, 2 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Diff to previous 1.83: preferred, colored
Changes since revision 1.83: +2 -2 lines
Remove the use of splimp() from the NetBSD kernel.  splnet()
and only splnet() is allowed for the protection of data structures
used by network devices.

Revision 1.74.4.1: download - view: text, markup, annotated - select for diffs
Fri Apr 6 02:25:20 2001 (8 years, 3 months ago) by he
Branches: netbsd-1-5
CVS tags: netbsd-1-5-PATCH002, netbsd-1-5-PATCH001
Diff to previous 1.74: preferred, colored
Changes since revision 1.74: +30 -21 lines
Pull up revision 1.82 (via patch, 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.83.2.2: download - view: text, markup, annotated - select for diffs
Tue Mar 13 21:29:49 2001 CET (8 years, 3 months ago) by nathanw
Branches: nathanw_sa
Diff to previous 1.83.2.1: preferred, colored
Changes since revision 1.83.2.1: +2 -2 lines
Be more careful not to dereference curproc when there might not be
a process context.

Revision 1.62.2.5: download - view: text, markup, annotated - select for diffs
Mon Mar 12 14:31:50 2001 CET (8 years, 3 months ago) by bouyer
Branches: thorpej_scsipi
Diff to previous 1.62.2.4: preferred, colored to branchpoint 1.62: preferred, colored
Changes since revision 1.62.2.4: +1 -11 lines
Sync with HEAD.

Revision 1.83.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 5 23:49:56 2001 CET (8 years, 4 months ago) by nathanw
Branches: nathanw_sa
Diff to previous 1.83: preferred, colored
Changes since revision 1.83: +3 -2 lines
Initial commit of scheduler activations and lightweight process support.

Revision 1.83: download - view: text, markup, annotated - select for diffs
Tue Feb 27 11:32:03 2001 CET (8 years, 4 months ago) by itojun
Branches: MAIN
Branch point for: nathanw_sa
Diff to previous 1.82: preferred, colored
Changes since revision 1.82: +1 -11 lines
remove obsolete #if 0'ed section
(IPsec and DF bit interaction - the code was incorrect anyways)

Revision 1.62.2.4: download - view: text, markup, annotated - select for diffs
Sun Feb 11 20:17:16 2001 CET (8 years, 4 months ago) by bouyer
Branches: thorpej_scsipi
Diff to previous 1.62.2.3: preferred, colored to branchpoint 1.62: preferred, colored
Changes since revision 1.62.2.3: +23 -15 lines
Sync with HEAD.

Revision 1.82: download - view: text, markup, annotated - select for diffs
Wed Jan 24 10:04:15 2001 CET (8 years, 5 months ago) by itojun
Branches: MAIN
Diff to previous 1.81: preferred, colored
Changes since revision 1.81: +23 -15 lines
- 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.62.2.3: download - view: text, markup, annotated - select for diffs
Thu Jan 18 10:23:56 2001 CET (8 years, 5 months ago) by bouyer
Branches: thorpej_scsipi
Diff to previous 1.62.2.2: preferred, colored to branchpoint 1.62: preferred, colored
Changes since revision 1.62.2.2: +41 -5 lines
Sync with head (for UBC+NFS fixes, mostly).

Revision 1.81: download - view: text, markup, annotated - select for diffs
Sat Jan 13 08:19:33 2001 CET (8 years, 5 months ago) by itojun
Branches: MAIN
Diff to previous 1.80: preferred, colored
Changes since revision 1.80: +41 -5 lines
allow IP_MULTICAST_IF and IP_ADD/DROP_MEMBERSHIP to specify interface
by interface index.  if the interface address specified is in 0.0.0.0/8
it will be considered as interface index in network byteorder.

getsockopt(IP_MULTICAST_IF) preserves old behavior if
setsockopt(IP_MULTICAST_IF) was done with interface address, and
returns interface index if setsockopt(IP_MULTICAST_IF) was done with
interface index (again using the form in 0.0.0.0/8).

Suggested by Dave Thaler, based on RIPv2 MIB spec (RFC1724 section 3.3).

http://mail-index.netbsd.org/tech-net/2001/01/13/0003.html

Revision 1.80: download - view: text, markup, annotated - select for diffs
Sat Jan 13 07:01:18 2001 CET (8 years, 5 months ago) by itojun
Branches: MAIN
Diff to previous 1.79: preferred, colored
Changes since revision 1.79: +2 -2 lines
on getsockopt(IP_IPSEC_POLICY), make sure to initialize len

Revision 1.62.2.2: download - view: text, markup, annotated - select for diffs
Wed Nov 22 17:06:11 2000 CET (8 years, 7 months ago) by bouyer
Branches: thorpej_scsipi
Diff to previous 1.62.2.1: preferred, colored to branchpoint 1.62: preferred, colored
Changes since revision 1.62.2.1: +37 -30 lines
Sync with HEAD.

Revision 1.62.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 20 19:10:32 2000 CET (8 years, 7 months ago) by bouyer
Branches: thorpej_scsipi
Diff to previous 1.62: preferred, colored
Changes since revision 1.62: +111 -66 lines
Update thorpej_scsipi to -current as of a month ago

Revision 1.79: download - view: text, markup, annotated - select for diffs
Sat Nov 11 01:55:51 2000 CET (8 years, 7 months ago) by thorpej
Branches: MAIN
Diff to previous 1.78: preferred, colored
Changes since revision 1.78: +2 -4 lines
Actually, our local ip_off variable isn't needed.

Revision 1.78: download - view: text, markup, annotated - select for diffs
Sat Nov 11 01:52:39 2000 CET (8 years, 7 months ago) by thorpej
Branches: MAIN
Diff to previous 1.77: preferred, colored
Changes since revision 1.77: +39 -30 lines
Restructure the PFIL_HOOKS mechanism a bit:
- All packets are passed to PFIL_HOOKS as they come off the wire, i.e.
  fields in protocol headers in network order, etc.
- Allow for multiple hooks to be registered, using a "key" and a "dlt".
  The "dlt" is a BPF data link type, indicating what type of header is
  present.
- INET and INET6 register with key == AF_INET or AF_INET6, and
  dlt == DLT_RAW.
- PFIL_HOOKS now take an argument for the filter hook, and mbuf **,
  an ifnet *, and a direction (PFIL_IN or PFIL_OUT), thus making them
  less IP (really, IP Filter) centric.

Maintain compatibility with IP Filter by adding wrapper functions for
IP Filter.

Revision 1.77: download - view: text, markup, annotated - select for diffs
Mon Oct 23 05:42:18 2000 (8 years, 8 months ago) by itojun
Branches: MAIN
Diff to previous 1.76: preferred, colored
Changes since revision 1.76: +4 -15 lines
fix IFA_STATS.
- use hashed in_ifaddr lookup.
- correct endianness.

Revision 1.76: download - view: text, markup, annotated - select for diffs
Tue Oct 17 04:57:01 2000 (8 years, 8 months ago) by thorpej
Branches: MAIN
Diff to previous 1.75: preferred, colored
Changes since revision 1.75: +9 -1 lines
Add an IP_MTUDISC flag to the flags that can be passed to
ip_output().  This flag, if set, causes ip_output() to set
DF in the IP header if the MTU in the route is not locked.

This allows a bunch of redundant code, which I was never
really all that happy about adding in the first place, to
be eliminated.

Inspired by a similar change made by provos@openbsd.org when
he integrated NetBSD's Path MTU Discovery code into OpenBSD.

Revision 1.75: download - view: text, markup, annotated - select for diffs
Wed Jun 28 04:59:32 2000 (9 years ago) by mrg
Branches: MAIN
Diff to previous 1.74: preferred, colored
Changes since revision 1.74: +1 -3 lines
remove include of <vm/vm.h>

Revision 1.74: download - view: text, markup, annotated - select for diffs
Wed May 10 05:31:30 2000 (9 years, 1 month ago) by itojun
Branches: MAIN
CVS tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Diff to previous 1.73: preferred, colored
Changes since revision 1.73: +14 -4 lines
add missing boundary checks to ip options processing.
correct timestamp option validation (len and ptr upper/lower bound
based on RFC791).
fill "pointer" field for parameter problem in timestamp option processing.

Revision 1.58.2.3: download - view: text, markup, annotated - select for diffs
Sun Apr 30 12:34:33 2000 (9 years, 2 months ago) by he
Branches: netbsd-1-4
CVS tags: netbsd-1-4-PATCH003
Diff to previous 1.58.2.2: preferred, colored to branchpoint 1.58: preferred, colored next main 1.59: preferred, colored
Changes since revision 1.58.2.2: +3 -1 lines
Pull up revision 1.73 (requested by is):
  Pass M_BCAST and M_MCAST flags to fragments.  Fixes PR#9772.

Revision 1.73: download - view: text, markup, annotated - select for diffs
Thu Apr 13 13:48:07 2000 (9 years, 2 months ago) by is
Branches: MAIN
Diff to previous 1.72: preferred, colored
Changes since revision 1.72: +3 -1 lines
Copy M_BCAST and M_MCAST flags when fragmenting a packet (else
Multicast packets won't be send to the correct link layer address
by the interface driver).
By Artur Grabowski, PR 9772.

Revision 1.72: download - view: text, markup, annotated - select for diffs
Fri Mar 31 16:31:03 2000 (9 years, 3 months ago) by jdolecek
Branches: MAIN
Diff to previous 1.71: preferred, colored
Changes since revision 1.71: +5 -1 lines
Since last duplicate prototype cleanup, we need to include
<netinet/ip_mroute.h> to get ip_mforward() prototype if MROUTING
is defined.

Revision 1.71: download - view: text, markup, annotated - select for diffs
Thu Mar 30 15:25:02 2000 (9 years, 3 months ago) by augustss
Branches: MAIN
Diff to previous 1.70: preferred, colored
Changes since revision 1.70: +29 -29 lines
Remove register declarations.

Revision 1.70: download - view: text, markup, annotated - select for diffs
Wed Mar 22 07:10:39 2000 CET (9 years, 3 months ago) by itojun
Branches: MAIN
Diff to previous 1.69: preferred, colored
Changes since revision 1.69: +2 -2 lines
tabify a line.

Revision 1.69: download - view: text, markup, annotated - select for diffs
Wed Mar 1 13:49:35 2000 CET (9 years, 4 months ago) by itojun
Branches: MAIN
Diff to previous 1.68: preferred, colored
Changes since revision 1.68: +4 -3 lines
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.68: download - view: text, markup, annotated - select for diffs
Sun Feb 20 01:56:40 2000 CET (9 years, 4 months ago) by darrenr
Branches: MAIN
Diff to previous 1.67: preferred, colored
Changes since revision 1.67: +2 -2 lines
pass "struct pfil_head *" to pfil_add_hook and pfil_remove hook rather
than "struct protosw *".

Revision 1.67: download - view: text, markup, annotated - select for diffs
Thu Feb 17 11:59:35 2000 CET (9 years, 4 months ago) by darrenr
Branches: MAIN
Diff to previous 1.66: preferred, colored
Changes since revision 1.66: +3 -2 lines
Change the use of pfil hooks.  There is no longer a single list of all
pfil information, instead, struct protosw now contains a structure
which caontains list heads, etc.  The per-protosw pfil struct is passed
to pfil_hook_get(), along with an in/out flag to get the head of the
relevant filter list.  This has been done for only IPv4 and IPv6, at
present, with these patches only enabling filtering for IPPROTO_IP and
IPPROTO_IPV6, although it is possible to have tcp/udp, etc, dedicated
filters now also.  The ipfilter code has been updated to only filter
IPv4 packets - next major release of ipfilter is required for ipv6.

Revision 1.66: download - view: text, markup, annotated - select for diffs
Mon Jan 31 15:18:55 2000 CET (9 years, 5 months ago) by itojun
Branches: MAIN
CVS tags: chs-ubc2-newbase
Diff to previous 1.65: preferred, colored
Changes since revision 1.65: +18 -9 lines
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.62.8.1: download - view: text, markup, annotated - select for diffs
Mon Dec 27 19:36:17 1999 CET (9 years, 6 months ago) by wrstuden
Branches: wrstuden-devbsize
Diff to previous 1.62: preferred, colored next main 1.63: preferred, colored
Changes since revision 1.62: +42 -19 lines
Pull up to last week's -current.

Revision 1.58.2.2: download - view: text, markup, annotated - select for diffs
Mon Dec 20 16:48:26 1999 CET (9 years, 6 months ago) by he
Branches: netbsd-1-4
CVS tags: netbsd-1-4-PATCH002
Diff to previous 1.58.2.1: preferred, colored to branchpoint 1.58: preferred, colored
Changes since revision 1.58.2.1: +4 -1 lines
Pull up revision 1.65 (requested by itojun):
  Avoid panic caused by shared cluster mbuf overwrite on multicast
  packet loopback for packets with certain sizes.  Fixes PR#9020.

Revision 1.65: download - view: text, markup, annotated - select for diffs
Mon Dec 20 06:46:33 1999 CET (9 years, 6 months ago) by itojun
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Diff to previous 1.64: preferred, colored
Changes since revision 1.64: +4 -1 lines
avoid shared cluster mbuf overwrite on multicast packet loopback.
(bsdi and freebsd fixed this a long time ago...)

PR: 9020
From: pavlin@catarina.usc.edu

Revision 1.64: download - view: text, markup, annotated - select for diffs
Mon Dec 13 18:04:11 1999 CET (9 years, 6 months ago) by is
Branches: MAIN
Diff to previous 1.63: preferred, colored
Changes since revision 1.63: +9 -4 lines
Handle packets to 255.255.255.255 like multicast packets. Fixes PR 7682 by
Darren Reed.

Revision 1.63: download - view: text, markup, annotated - select for diffs
Mon Dec 13 16:17:20 1999 CET (9 years, 6 months ago) by itojun
Branches: MAIN
Diff to previous 1.62: preferred, colored
Changes since revision 1.62: +31 -16 lines
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.58.6.3: download - view: text, markup, annotated - select for diffs
Tue Nov 30 14:35:33 1999 CET (9 years, 7 months ago) by itojun
Branches: kame
CVS tags: kame_141_19991130
Diff to previous 1.58.6.2: preferred, colored to branchpoint 1.58: preferred, colored next main 1.59: preferred, colored
Changes since revision 1.58.6.2: +45 -27 lines
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.58.4.3: download - view: text, markup, annotated - select for diffs
Tue Aug 3 00:34:58 1999 (9 years, 11 months ago) by thorpej
Branches: chs-ubc2
Diff to previous 1.58.4.2: preferred, colored to branchpoint 1.58: preferred, colored next main 1.59: preferred, colored
Changes since revision 1.58.4.2: +2 -1 lines
Update from trunk.

Revision 1.62: download - view: text, markup, annotated - select for diffs
Sat Jul 10 00:57:19 1999 (9 years, 11 months ago) by thorpej
Branches: MAIN
CVS tags: fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-base
Branch point for: wrstuden-devbsize, thorpej_scsipi
Diff to previous 1.61: preferred, colored
Changes since revision 1.61: +2 -1 lines
defopt IPSEC and IPSEC_ESP (both into opt_ipsec.h).

Revision 1.58.6.2: download - view: text, markup, annotated - select for diffs
Tue Jul 6 13:02:46 1999 (10 years ago) by itojun
Branches: kame
CVS tags: kame_14_19990705
Diff to previous 1.58.6.1: preferred, colored to branchpoint 1.58: preferred, colored
Changes since revision 1.58.6.1: +30 -1 lines
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.58.4.2: download - view: text, markup, annotated - select for diffs
Fri Jul 2 01:47:02 1999 (10 years ago) by thorpej
Branches: chs-ubc2
Diff to previous 1.58.4.1: preferred, colored to branchpoint 1.58: preferred, colored
Changes since revision 1.58.4.1: +222 -1 lines
Sync w/ -current.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Thu Jul 1 10:12:51 1999 (10 years ago) by itojun
Branches: MAIN
Diff to previous 1.60: preferred, colored
Changes since revision 1.60: +222 -1 lines
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.58.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 28 08:37:00 1999 (10 years ago) by itojun
Branches: kame
CVS tags: kame_14_19990628
Diff to previous 1.58: preferred, colored
Changes since revision 1.58: +193 -1 lines
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.58.2.1: download - view: text, markup, annotated - select for diffs
Tue Jun 22 19:05:50 1999 (10 years ago) by perry
Branches: netbsd-1-4
CVS tags: netbsd-1-4-PATCH001
Diff to previous 1.58: preferred, colored
Changes since revision 1.58: +2 -2 lines
pullup 1.59->1.60 (mrg): ipfilter should filter multicast traffic...

Revision 1.58.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 21 03:27:49 1999 (10 years ago) by thorpej
Branches: chs-ubc2
Diff to previous 1.58: preferred, colored
Changes since revision 1.58: +13 -2 lines
Sync w/ -current.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Mon Jun 7 03:26:04 1999 (10 years, 1 month ago) by mrg
Branches: MAIN
Diff to previous 1.59: preferred, colored
Changes since revision 1.59: +2 -2 lines
oops.  move sendit: above the PFIL_HOOKS so that multicast traffic is filtered.  from darren reed.

Revision 1.59: download - view: text, markup, annotated - select for diffs
Tue May 4 21:50:23 1999 (10 years, 2 months ago) by hwr
Branches: MAIN
Diff to previous 1.58: preferred, colored
Changes since revision 1.58: +12 -1 lines
Don't let packets with a Class-D source address escape the host.
Fixes second half of kern/7003 by Jonathan Stone <jonathan@DSG.Stanford.EDU>.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Sat Mar 27 02:24:50 1999 CET (10 years, 3 months ago) by aidan
Branches: MAIN
CVS tags: netbsd-1-4-base, netbsd-1-4-RELEASE
Branch point for: netbsd-1-4, kame, chs-ubc2
Diff to previous 1.57: preferred, colored
Changes since revision 1.57: +17 -1 lines
Added per-addr input/output statistics.  Currently just support netatalk
and netinet, currently only tested under netinet.

Disabled by default, enabled by compiling the kernel with option
IFA_STATS.  Enabling this feature seems to make the ip_output function
take 13% longer than before, which should be OK for people that need
this feature.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Fri Mar 12 23:42:31 1999 CET (10 years, 3 months ago) by perry
Branches: MAIN
Diff to previous 1.56: preferred, colored
Changes since revision 1.56: +5 -6 lines
exterminate ovbcopy. patches provided by Erik Bertelsen, pr-7145

Revision 1.56: download - view: text, markup, annotated - select for diffs
Wed Jan 20 00:39:57 1999 CET (10 years, 5 months ago) by mycroft
Branches: MAIN
Diff to previous 1.55: preferred, colored
Changes since revision 1.55: +1 -2 lines
There's just no plausible reason to byte-swap ip_id internally.  It's opaque.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Mon Jan 11 23:35:06 1999 CET (10 years, 5 months ago) by thorpej
Branches: MAIN
Diff to previous 1.54: preferred, colored
Changes since revision 1.54: +9 -7 lines
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.54: download - view: text, markup, annotated - select for diffs
Sat Dec 19 03:46:12 1998 CET (10 years, 6 months ago) by thorpej
Branches: MAIN
Diff to previous 1.53: preferred, colored
Changes since revision 1.53: +38 -38 lines
Reverse the copyright-notice-swap.  It went against existing practice.

Revision 1.53.4.1: download - view: text, markup, annotated - select for diffs
Fri Dec 11 05:53:09 1998 CET (10 years, 6 months ago) by kenh
Branches: kenh-if-detach
Diff to previous 1.53: preferred, colored next main 1.54: preferred, colored
Changes since revision 1.53: +37 -11 lines
The beginnings of interface detach support.  Still some bugs, but mostly
works for me.

This work was originally by Bill Studenmund, and cleaned up by me.

Revision 1.40.2.4: download - view: text, markup, annotated - select for diffs
Thu Oct 29 03:37:23 1998 CET (10 years, 8 months ago) by cgd
Branches: netbsd-1-3
CVS tags: netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003
Diff to previous 1.40.2.3: preferred, colored to branchpoint 1.40: preferred, colored next main 1.41: preferred, colored
Changes since revision 1.40.2.3: +2 -1 lines
pull up rev 1.53 from trunk (ws)

Revision 1.53: download - view: text, markup, annotated - select for diffs
Mon Oct 26 18:31:01 1998 CET (10 years, 8 months ago) by ws
Branches: MAIN
CVS tags: kenh-if-detach-base, chs-ubc-base, chs-ubc
Branch point for: kenh-if-detach
Diff to previous 1.52: preferred, colored
Changes since revision 1.52: +2 -1 lines
Fix a buglet when looking up an interface for multicast:
Zero out the routing structure before calling the route lookup code
in order to correctly match addresses.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Tue Oct 20 03:46:27 1998 (10 years, 8 months ago) by matt
Branches: MAIN
Diff to previous 1.51: preferred, colored
Changes since revision 1.51: +2 -2 lines
vax -> __vax__ (and mips to __mips__ in ultrix_misc.c)

Revision 1.40.2.3: download - view: text, markup, annotated - select for diffs
Thu Oct 1 19:57:51 1998 (10 years, 9 months ago) by cgd
Branches: netbsd-1-3
Diff to previous 1.40.2.2: preferred, colored to branchpoint 1.40: preferred, colored
Changes since revision 1.40.2.2: +41 -7 lines
pull up revisions 1.44-1.45, 1.51 (via patch) from trunk. (tls)

Revision 1.51: download - view: text, markup, annotated - select for diffs
Wed Sep 30 23:52:25 1998 (10 years, 9 months ago) by tls
Branches: MAIN
Diff to previous 1.50: preferred, colored
Changes since revision 1.50: +38 -38 lines
Switch order of TNF and UCB copyrights so UCB copyright is first; this seems more appropriate since UCB wrote the original code, after all.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Sun Aug 9 10:58:19 1998 (10 years, 10 months ago) by mrg
Branches: MAIN
Diff to previous 1.49: preferred, colored
Changes since revision 1.49: +2 -1 lines
defopt PFIL_HOOKS.

Revision 1.40.2.2: download - view: text, markup, annotated - select for diffs
Thu Jul 23 01:54:37 1998 (10 years, 11 months ago) by mellon
Branches: netbsd-1-3
Diff to previous 1.40.2.1: preferred, colored to branchpoint 1.40: preferred, colored
Changes since revision 1.40.2.1: +6 -3 lines
Pull up 1.46 and 1.49 (veego)

Revision 1.49: download - view: text, markup, annotated - select for diffs
Fri Jul 17 02:28:01 1998 (10 years, 11 months ago) by sommerfe
Branches: MAIN
CVS tags: eeh-paddr_t-base, eeh-paddr_t
Diff to previous 1.48: preferred, colored
Changes since revision 1.48: +5 -2 lines
Fix PR5508: ipfil cut-through forwarding causes panic

Revision 1.40.2.1: download - view: text, markup, annotated - select for diffs
Sat May 9 05:33:00 1998 (11 years, 1 month ago) by mycroft
Branches: netbsd-1-3
CVS tags: netbsd-1-3-PATCH002
Diff to previous 1.40: preferred, colored
Changes since revision 1.40: +21 -1 lines
Pull up patch from kml.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Tue Apr 28 17:26:00 1998 (11 years, 2 months ago) by matt
Branches: MAIN
Diff to previous 1.47: preferred, colored
Changes since revision 1.47: +23 -6 lines
Only transmit fragments if the send queue of interface can actually hold
all of the fragments.  Use the mtu of route in preference of the MTU of the
interface when doing fragmentation decisions.  (ie. Fragment to the path
mtu if it is available).

Revision 1.47: download - view: text, markup, annotated - select for diffs
Tue Mar 24 04:10:02 1998 CET (11 years, 3 months ago) by kml
Branches: MAIN
Diff to previous 1.46: preferred, colored
Changes since revision 1.46: +19 -1 lines
Ensure that we take the IP option length into account when we calculate
the effective maximum send size for TCP.  ip_optlen() and tcp_optlen()
should probably be inlined for efficiency.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Thu Mar 19 16:46:43 1998 CET (11 years, 3 months ago) by mrg
Branches: MAIN
Diff to previous 1.45: preferred, colored
Changes since revision 1.45: +2 -2 lines
convert pfil(9) in and out lists from <sys/queue.h> LISTs to TAILQs, and
change pfil_add_hook to put output filters at the tail of the queue,
while continuing to place input filters at the head of the queue.  update
the two users of these functions, and document these changes.

fixes PR#4593.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Sun Feb 15 19:24:28 1998 CET (11 years, 4 months ago) by tls
Branches: MAIN
Diff to previous 1.44: preferred, colored
Changes since revision 1.44: +38 -1 lines
Add correct copyright notice for IP address hash change.  This code is donated to TNF by the original copyright holder, Panix.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Fri Feb 13 19:21:45 1998 CET (11 years, 4 months ago) by tls
Branches: MAIN
Diff to previous 1.43: preferred, colored
Changes since revision 1.43: +4 -7 lines
Change list of interface IP addresses to a hash.  Improves performance on hosts with a large number of IP addresses significantly.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Fri Feb 13 11:23:49 1998 CET (11 years, 4 months ago) by kleink
Branches: MAIN
Diff to previous 1.42: preferred, colored
Changes since revision 1.42: +2 -2 lines
Fix variable declarations:  register -> register int.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Mon Jan 12 04:02:52 1998 CET (11 years, 5 months ago) by scottr
Branches: MAIN
Diff to previous 1.41: preferred, colored
Changes since revision 1.41: +3 -1 lines
Use option header file for MROUTING

Revision 1.41: download - view: text, markup, annotated - select for diffs
Wed Jan 7 23:51:25 1998 CET (11 years, 5 months ago) by lukem
Branches: MAIN
Diff to previous 1.40: preferred, colored
Changes since revision 1.40: +37 -1 lines
add the following, derived from FreeBSD:
* IP_PORTRANGE socket option, which controls how the ephemeral ports
  are allocated. it takes the following settings:
	IP_PORTRANGE_DEFAULT	use anonportmin (49152) -> anonportmax (65535)
	IP_PORTRANGE_HIGH	as IP_PORTRANGE_DEFAULT (retained for FreeBSD
				compat reasons, where these are separate)
	IP_PORTRANGE_LOW	use 600 -> 1023. only works if uid==0.
* in_pcb flag INP_ANONPORT. set if port was allocated ephmerally

Revision 1.1.1.2 (vendor branch): download - view: text, markup, annotated - select for diffs
Mon Jan 5 10:54:14 1998 CET (11 years, 6 months ago) by thorpej
Branches: WFJ-920714, CSRG
CVS tags: lite-2, lite-1, date-03-may-96
Diff to previous 1.1.1.1: preferred, colored
Changes since revision 1.1.1.1: +503 -41 lines
Import sys/netinet from 4.4BSD-Lite for reference purposes.

Revision 1.39.4.1: download - view: text, markup, annotated - select for diffs
Tue Oct 14 12:29:30 1997 (11 years, 8 months ago) by thorpej
Branches: marc-pcmcia
Diff to previous 1.39: preferred, colored next main 1.40: preferred, colored
Changes since revision 1.39: +13 -1 lines
Update marc-pcmcia branch from trunk.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Tue Oct 14 02:52:59 1997 (11 years, 8 months ago) by matt
Branches: MAIN
CVS tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH001, netbsd-1-3-BETA, marc-pcmcia-base
Branch point for: netbsd-1-3
Diff to previous 1.39: preferred, colored
Changes since revision 1.39: +13 -1 lines
Add support for returning maximum supported MTU when ip_output fails with
EMSGSIZE.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Tue Apr 15 02:41:53 1997 (12 years, 2 months ago) by christos
Branches: MAIN
CVS tags: thorpej-signal-base, thorpej-signal, marc-pcmcia-bp, bouyer-scsipi
Branch point for: marc-pcmcia
Diff to previous 1.38: preferred, colored
Changes since revision 1.38: +2 -2 lines
Move the mtod calls *after* we've made sure that the packet has passed the
filter successfully. Otherwise it can be NULL if the filter blocked it,
and we die. How did this ever work?

Revision 1.37.4.1: download - view: text, markup, annotated - select for diffs
Wed Mar 12 22:24:47 1997 CET (12 years, 3 months ago) by is
Branches: is-newarp
Diff to previous 1.37: preferred, colored next main 1.38: preferred, colored
Changes since revision 1.37: +2 -5 lines
Merge in changes from Trunk

Revision 1.38: download - view: text, markup, annotated - select for diffs
Tue Feb 18 21:49:36 1997 CET (12 years, 4 months ago) by mrg
Branches: MAIN
CVS tags: is-newarp-before-merge
Diff to previous 1.37: preferred, colored
Changes since revision 1.37: +2 -5 lines
pseudo-device ipfilter brings in PFIL_HOOKS.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Sat Jan 11 06:21:11 1997 CET (12 years, 5 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-setroot, mrg-vm-swap, is-newarp-base
Branch point for: is-newarp
Diff to previous 1.36: preferred, colored
Changes since revision 1.36: +11 -1 lines
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.36: download - view: text, markup, annotated - select for diffs
Fri Dec 20 10:08:16 1996 CET (12 years, 6 months ago) by mrg
Branches: MAIN
Diff to previous 1.35: preferred, colored
Changes since revision 1.35: +5 -4 lines
always reassign ip after calling function.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Fri Dec 20 09:39:29 1996 CET (12 years, 6 months ago) by mrg
Branches: MAIN
Diff to previous 1.34: preferred, colored
Changes since revision 1.34: +1 -9 lines
in pfil_hooks:  always reassign ip after calling hook.

Revision 1.29.4.1: download - view: text, markup, annotated - select for diffs
Wed Dec 11 03:00:33 1996 CET (12 years, 6 months ago) by mycroft
Branches: netbsd-1-2
CVS tags: netbsd-1-2-PATCH001
Diff to previous 1.29: preferred, colored next main 1.30: preferred, colored
Changes since revision 1.29: +2 -2 lines
From trunk:
Fix a mbuf leak when fragmentation fails due to lack of memory.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Tue Oct 22 13:27:07 1996 (12 years, 8 months ago) by veego
Branches: MAIN
Diff to previous 1.33: preferred, colored
Changes since revision 1.33: +4 -3 lines
Fix a panic from the pfil_hooks.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Fri Oct 11 20:19:08 1996 (12 years, 8 months ago) by is
Branches: MAIN
Diff to previous 1.32: preferred, colored
Changes since revision 1.32: +2 -2 lines
Fix a mbuf leak in ip_output().

Scenario: If ip_insertoptions() prepends a new mbuf to the chain, the
bad: label's m_freem(m0) still would free only the original mbuf chain
if the transmission failed for, e.g., no route to host; resulting in
one lost mbuf per failed packet. (The original posting included a
demonstration program).

Original report of this bug was by jinmei@isl.rdc.toshiba.co.jp
(JINMEI Tatuya) on comp.bugs.4bsd.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Sat Sep 14 16:40:27 1996 (12 years, 9 months ago) by mrg
Branches: MAIN
Diff to previous 1.31: preferred, colored
Changes since revision 1.31: +11 -7 lines
move the packet filter hooks in to a saner location.  while i'm here, rename
PACKET_FILTER to PFIL_HOOKS.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Mon Sep 9 16:51:19 1996 (12 years, 9 months ago) by mycroft
Branches: MAIN
Diff to previous 1.30: preferred, colored
Changes since revision 1.30: +21 -22 lines
Add in_nullhost() and in_hosteq() macros, to hide some protocol
details.  Also, fix a bug in TCP wrt SYN+URG packets.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Fri Sep 6 07:07:45 1996 (12 years, 10 months ago) by mrg
Branches: MAIN
Diff to previous 1.29: preferred, colored
Changes since revision 1.29: +27 -1 lines
add packet filter interface code.  see pfil(9) for more details.  you
need the PACKET_FILTER option to enable this code.  currently, ipfilter
version 3.1.1-beta has been converted to use this new interface.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Tue Feb 27 00:17:12 1996 CET (13 years, 4 months ago) by mrg
Branches: MAIN
CVS tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-BETA
Branch point for: netbsd-1-2
Diff to previous 1.28: preferred, colored
Changes since revision 1.28: +2 -3 lines
two more local addr changes, all done differently now (idea from charles)

Revision 1.28: download - view: text, markup, annotated - select for diffs
Wed Feb 14 00:43:07 1996 CET (13 years, 4 months ago) by christos
Branches: MAIN
Diff to previous 1.27: preferred, colored
Changes since revision 1.27: +25 -7 lines
netinet prototypes

Revision 1.27: download - view: text, markup, annotated - select for diffs
Sat Jul 1 05:44:55 1995 (14 years ago) by cgd
Branches: MAIN
CVS tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Diff to previous 1.26: preferred, colored
Changes since revision 1.26: +2 -2 lines
null mbuf pointer could cause system crash; avoid it.  From
Torsten Duwe <duwe@immd4.informatik.uni-erlangen.de>.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Mon Jun 12 02:47:44 1995 (14 years ago) by mycroft
Branches: MAIN
Diff to previous 1.25: preferred, colored
Changes since revision 1.25: +2 -2 lines
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.25: download - view: text, markup, annotated - select for diffs
Sun Jun 4 07:58:28 1995 (14 years, 1 month ago) by mycroft
Branches: MAIN
Diff to previous 1.24: preferred, colored
Changes since revision 1.24: +4 -4 lines
Don't cast things unnecessarily.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sun Jun 4 07:07:08 1995 (14 years, 1 month ago) by mycroft
Branches: MAIN
Diff to previous 1.23: preferred, colored
Changes since revision 1.23: +9 -12 lines
Clean up many more casts.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Thu Jun 1 23:36:40 1995 (14 years, 1 month ago) by mycroft
Branches: MAIN
Diff to previous 1.22: preferred, colored
Changes since revision 1.22: +5 -6 lines
Avoid byte-swapping IP addresses at run time.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Mon May 15 03:24:53 1995 (14 years, 1 month ago) by cgd
Branches: MAIN
Diff to previous 1.21: preferred, colored
Changes since revision 1.21: +5 -5 lines
simplify ip_output() out-of-memory condition slightly, and style nits.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Thu Apr 13 08:35:38 1995 (14 years, 2 months ago) by cgd
Branches: MAIN
Diff to previous 1.20: preferred, colored
Changes since revision 1.20: +17 -17 lines
be a bit more careful and explicit with types.  (basically a large no-op.)

Revision 1.20: download - view: text, markup, annotated - select for diffs
Tue Apr 11 06:30:56 1995 (14 years, 2 months ago) by mycroft
Branches: MAIN
Diff to previous 1.19: preferred, colored
Changes since revision 1.19: +2 -3 lines
Remove some explicit references to loif.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Wed Jun 29 08:38:27 1994 (15 years ago) by cgd
Branches: 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
Diff to previous 1.18: preferred, colored
Changes since revision 1.18: +3 -2 lines
New RCS ID's, take two.  they're more aesthecially pleasant, and use 'NetBSD'

Revision 1.18: download - view: text, markup, annotated - select for diffs
Fri May 13 08:06:26 1994 (15 years, 1 month ago) by mycroft
Branches: MAIN
Diff to previous 1.17: preferred, colored
Changes since revision 1.17: +63 -58 lines
Update to 4.4-Lite networking code, with a few local changes.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Wed Feb 2 06:59:06 1994 CET (15 years, 5 months ago) by hpeyerl
Branches: MAIN
Diff to previous 1.16: preferred, colored
Changes since revision 1.16: +1 -11 lines
Multicast is no longer optional.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Wed Jan 19 22:36:56 1994 CET (15 years, 5 months ago) by brezak
Branches: MAIN
Diff to previous 1.15: preferred, colored
Changes since revision 1.15: +16 -16 lines
Fix arguments to ip_getmoptions.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Tue Jan 18 04:26:53 1994 CET (15 years, 5 months ago) by brezak
Branches: MAIN
Diff to previous 1.14: preferred, colored
Changes since revision 1.14: +3 -3 lines
Fix some prototype detected warnings/errors.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Tue Jan 18 03:36:53 1994 CET (15 years, 5 months ago) by brezak
Branches: MAIN
Diff to previous 1.13: preferred, colored
Changes since revision 1.13: +2 -2 lines
Patch for ip-multicast bugs from mccanne@ee.lbl.gov (Steven McCanne)

Revision 1.13: download - view: text, markup, annotated - select for diffs
Mon Jan 10 21:14:23 1994 CET (15 years, 5 months ago) by mycroft
Branches: MAIN
Diff to previous 1.12: preferred, colored
Changes since revision 1.12: +3 -9 lines
Should compile now with or without `options MULTICAST'.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun Jan 9 02:06:18 1994 CET (15 years, 5 months ago) by mycroft
Branches: MAIN
Diff to previous 1.11: preferred, colored
Changes since revision 1.11: +11 -5 lines
Prototype the rest.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sat Jan 8 22:21:52 1994 CET (15 years, 5 months ago) by mycroft
Branches: MAIN
Diff to previous 1.10: preferred, colored
Changes since revision 1.10: +12 -12 lines
Fix some inconsistent spacing; spaces at the end of lines, etc.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Fri Jan 7 23:16:11 1994 CET (15 years, 5 months ago) by cgd
Branches: MAIN
Diff to previous 1.9: preferred, colored
Changes since revision 1.9: +1 -10 lines
kill COMPAT_OLDSOCKOPT

Revision 1.9: download - view: text, markup, annotated - select for diffs
Fri Jan 7 00:00:22 1994 CET (15 years, 6 months ago) by ws
Branches: MAIN
Diff to previous 1.8: preferred, colored
Changes since revision 1.8: +3 -3 lines
Apparently noone ever tested the COMPAT_OLDSOCKOPT flag...

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sat Dec 18 01:41:59 1993 CET (15 years, 6 months ago) by mycroft
Branches: MAIN
Diff to previous 1.7: preferred, colored
Changes since revision 1.7: +17 -17 lines
Canonicalize all #includes.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Dec 6 08:14:45 1993 CET (15 years, 7 months ago) by cgd
Branches: MAIN
Diff to previous 1.6: preferred, colored
Changes since revision 1.6: +2 -2 lines
oops; fix that last...

Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon Dec 6 07:46:28 1993 CET (15 years, 7 months ago) by cgd
Branches: MAIN
Diff to previous 1.5: preferred, colored
Changes since revision 1.5: +10 -1 lines
the ugliest compatibility hack i think i've ever seen...
define COMPAT_OLDSOCKOPT to get new kernels to work with the
old args to [sg]sockopt.  this is going to go away "soon".
note that this option only has effect if MULTICAST is not defined.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Dec 6 05:59:40 1993 CET (15 years, 7 months ago) by hpeyerl
Branches: MAIN
Diff to previous 1.4: preferred, colored
Changes since revision 1.4: +458 -2 lines
multicast support.
>From Chris Maeda, cmaeda@cs.washington.edu
These patches are derived from the IP Multicast patches for BSDI.

Revision 1.3.4.2: download - view: text, markup, annotated - select for diffs
Sat Nov 6 01:10:44 1993 CET (15 years, 8 months ago) by mycroft
Branches: magnum
Diff to previous 1.3.4.1: preferred, colored to branchpoint 1.3: preferred, colored next main 1.4: preferred, colored
Changes since revision 1.3.4.1: +29 -18 lines
Merge changes from trunk.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat Nov 6 00:06:26 1993 CET (15 years, 8 months ago) by cgd
Branches: MAIN
Diff to previous 1.3: preferred, colored
Changes since revision 1.3: +12 -1 lines
fix from david greenman, davidg@freefall.cdrom.com:
fixed bug where large amounts of unidirectional UDP traffic would fill
the interface output queue and further udp packets would be fragmented
and only partially sent - keeping the output queue full and jamming the
network, but not actually getting any real work done (because you can't
send just 'part' of a udp packet - if you fragment it, you must send
the whole thing). The fix involves adding a check to make sure that the
output queue has sufficient space for all of the fragments.

Revision 1.3.4.1: download - view: text, markup, annotated - select for diffs
Sat Oct 16 11:51:46 1993 CET (15 years, 8 months ago) by mycroft
Branches: magnum
Diff to previous 1.3: preferred, colored
Changes since revision 1.3: +1 -5 lines
Nuke references to machine/mtpr.h.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat May 22 13:42:35 1993 (16 years, 1 month ago) by cgd
Branches: 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
Diff to previous 1.2: preferred, colored
Changes since revision 1.2: +1 -2 lines
add include of select.h if necessary for protos, or delete if extraneous

Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue May 18 20:20:11 1993 (16 years, 1 month ago) by cgd
Branches: MAIN
Diff to previous 1.1: preferred, colored
Changes since revision 1.1: +3 -1 lines
make kernel select interface be one-stop shopping & clean it all up.

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 21 10:46:10 1993 CET (16 years, 3 months ago) by cgd
Branches: WFJ-920714, CSRG
CVS tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-8, WFJ-386bsd-01
Diff to previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
initial import of 386bsd-0.1 sources

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Mar 21 10:46:09 1993 CET (16 years, 3 months ago) by cgd
Branches: MAIN
Initial revision

Diff request

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

Log view options

cvsweb.de.netbsd.org <zafer@aydogan.de>