The NetBSD Project

CVS log for src/sys/netinet/in_var.h

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.103 / (download) - annotate - [select for diffs], Sat Nov 19 08:00:51 2022 UTC (15 months, 2 weeks ago) by yamt
Branch: MAIN
CVS Tags: triaxx-drm, thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, HEAD
Changes since 1.102: +4 -1 lines
Diff to previous 1.102 (colored)

Make arp have its own mowner

This helped me to debug mbuf leaks in arp.
(if_arp.c rev. 1.298)

Revision 1.98.2.1 / (download) - annotate - [select for diffs], Sat Apr 3 22:29:01 2021 UTC (2 years, 11 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.98: +11 -10 lines
Diff to previous 1.98 (colored) next main 1.99 (colored)

Sync with HEAD.

Revision 1.95.2.1 / (download) - annotate - [select for diffs], Tue Mar 9 15:56:51 2021 UTC (2 years, 11 months ago) by martin
Branch: netbsd-8
Changes since 1.95: +4 -2 lines
Diff to previous 1.95 (colored) next main 1.96 (colored)

Pull up following revision(s) (requested by christos in ticket #1662):

	sys/netinet/tcp_subr.c: revision 1.286
	sys/netinet/tcp_timer.c: revision 1.96
	sys/netinet/in_var.h: revision 1.102
	sys/netinet/in_var.h: revision 1.99

Don't increment the iss sequence on each connection because it exposes
information (Amit Klein)

Add some randomness to the iss offset

Use a random IPv4 ID because the shuffling algorithm used before could expose
information (Amit Klein)

mv <sys/cprng.h> include to the kernel portion

Revision 1.97.4.1 / (download) - annotate - [select for diffs], Tue Mar 9 15:54:32 2021 UTC (2 years, 11 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE
Changes since 1.97: +4 -2 lines
Diff to previous 1.97 (colored) next main 1.98 (colored)

Pull up following revision(s) (requested by christos in ticket #1229):

	sys/netinet/tcp_subr.c: revision 1.286
	sys/netinet/tcp_timer.c: revision 1.96
	sys/netinet/in_var.h: revision 1.102
	sys/netinet/in_var.h: revision 1.99

Don't increment the iss sequence on each connection because it exposes
information (Amit Klein)

Add some randomness to the iss offset

Use a random IPv4 ID because the shuffling algorithm used before could expose
information (Amit Klein)

mv <sys/cprng.h> include to the kernel portion

Revision 1.102 / (download) - annotate - [select for diffs], Mon Mar 8 22:01:18 2021 UTC (2 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.101: +2 -2 lines
Diff to previous 1.101 (colored)

mv <sys/cprng.h> include to the kernel portion

Revision 1.101 / (download) - annotate - [select for diffs], Mon Mar 8 20:01:54 2021 UTC (2 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.100: +10 -3 lines
Diff to previous 1.100 (colored)

reinstate a simple version of ip_randomid()

Revision 1.100 / (download) - annotate - [select for diffs], Mon Mar 8 18:03:25 2021 UTC (2 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.99: +1 -9 lines
Diff to previous 1.99 (colored)

remove now unused pseudo-random ip id code.

Revision 1.99 / (download) - annotate - [select for diffs], Mon Mar 8 17:54:23 2021 UTC (2 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.98: +4 -2 lines
Diff to previous 1.98 (colored)

Use a random IPv4 ID because the shuffling algorithm used before could expose
information (Amit Klein)

Revision 1.98 / (download) - annotate - [select for diffs], Fri Sep 11 15:22:12 2020 UTC (3 years, 5 months ago) by roy
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.97: +9 -1 lines
Diff to previous 1.97 (colored)

inet: Add SIOCGNBRINFO to retrieve neighbor state about an address

Revision 1.96.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:47 2019 UTC (4 years, 8 months ago) by christos
Branch: phil-wifi
Changes since 1.96: +12 -1 lines
Diff to previous 1.96 (colored) next main 1.97 (colored)

Sync with HEAD

Revision 1.95.8.2 / (download) - annotate - [select for diffs], Wed Dec 26 14:02:05 2018 UTC (5 years, 2 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.95.8.1: +12 -1 lines
Diff to previous 1.95.8.1 (colored) to branchpoint 1.95 (colored) next main 1.96 (colored)

Sync with HEAD, resolve a few conflicts

Revision 1.97 / (download) - annotate - [select for diffs], Thu Nov 29 09:51:20 2018 UTC (5 years, 3 months ago) by ozaki-r
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, netbsd-9-base, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: netbsd-9
Changes since 1.96: +12 -1 lines
Diff to previous 1.96 (colored)

Introduce and use ip_dad_enabled() and ip6_dad_enabled() functions

Revision 1.95.8.1 / (download) - annotate - [select for diffs], Sun Apr 22 07:20:28 2018 UTC (5 years, 10 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.95: +9 -9 lines
Diff to previous 1.95 (colored)

Sync with HEAD

Revision 1.96 / (download) - annotate - [select for diffs], Thu Apr 19 21:21:44 2018 UTC (5 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422
Branch point for: phil-wifi
Changes since 1.95: +9 -9 lines
Diff to previous 1.95 (colored)

s/static inline/static __inline/g for consistency.

Revision 1.65.18.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:39:04 2017 UTC (6 years, 3 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.65.18.1: +227 -49 lines
Diff to previous 1.65.18.1 (colored) to branchpoint 1.65 (colored) next main 1.66 (colored)

update from HEAD

Revision 1.70.4.7 / (download) - annotate - [select for diffs], Mon Aug 28 17:53:12 2017 UTC (6 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.70.4.6: +2 -3 lines
Diff to previous 1.70.4.6 (colored) to branchpoint 1.70 (colored) next main 1.71 (colored)

Sync with HEAD

Revision 1.94.4.1 / (download) - annotate - [select for diffs], Fri May 19 00:22:58 2017 UTC (6 years, 9 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.94: +2 -3 lines
Diff to previous 1.94 (colored) next main 1.95 (colored)

Resolve conflicts from previous merge (all resulting from $NetBSD
keywork expansion)

Revision 1.95 / (download) - annotate - [select for diffs], Fri May 12 17:53:54 2017 UTC (6 years, 9 months ago) by ryo
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, pgoyette-compat-base, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek
Branch point for: pgoyette-compat, netbsd-8
Changes since 1.94: +2 -3 lines
Diff to previous 1.94 (colored)

replace in_fmtaddr() by IN_PRINT(), and delete function in_fmtaddr()

Revision 1.91.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:54:05 2017 UTC (6 years, 10 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.91: +11 -5 lines
Diff to previous 1.91 (colored) next main 1.92 (colored)

Sync with HEAD

Revision 1.78.2.4 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:50 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.78.2.3: +11 -5 lines
Diff to previous 1.78.2.3 (colored) to branchpoint 1.78 (colored) next main 1.79 (colored)

Sync with HEAD

Revision 1.70.4.6 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:59 2017 UTC (7 years ago) by skrll
Branch: nick-nhusb
Changes since 1.70.4.5: +13 -7 lines
Diff to previous 1.70.4.5 (colored) to branchpoint 1.70 (colored)

Sync with HEAD

Revision 1.94 / (download) - annotate - [select for diffs], Mon Jan 16 15:44:05 2017 UTC (7 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, nick-nhusb-base-20170204, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: prg-localcount2
Changes since 1.93: +3 -2 lines
Diff to previous 1.93 (colored)

really, use.

Revision 1.93 / (download) - annotate - [select for diffs], Mon Jan 16 15:14:16 2017 UTC (7 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.92: +9 -4 lines
Diff to previous 1.92 (colored)

rename arplog -> ARPLOG to make it clear that it is a macro and tuck-in the
buffer used for address formatting.

Revision 1.92 / (download) - annotate - [select for diffs], Mon Jan 16 07:33:36 2017 UTC (7 years, 1 month ago) by ryo
Branch: MAIN
Changes since 1.91: +2 -2 lines
Diff to previous 1.91 (colored)

Make ip6_sprintf(), in_fmtaddr(), lla_snprintf() and icmp6_redirect_diag() mpsafe.

Reviewed by ozaki-r@

Revision 1.78.2.3 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:51 2017 UTC (7 years, 1 month ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.78.2.2: +4 -3 lines
Diff to previous 1.78.2.2 (colored) to branchpoint 1.78 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.91 / (download) - annotate - [select for diffs], Mon Jan 2 23:00:25 2017 UTC (7 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.90: +1 -3 lines
Diff to previous 1.90 (colored)

- You can't just call the pfil hook to remove an address before an address
  is removed! Hold a reference instead, remove it, and then free it.
- GC iatoifa()

Revision 1.90 / (download) - annotate - [select for diffs], Tue Dec 6 07:01:47 2016 UTC (7 years, 2 months ago) by knakahara
Branch: MAIN
Changes since 1.89: +3 -1 lines
Diff to previous 1.89 (colored)

add API to manipulate ifa->ia_hash and ia_hash_pslist_entry, and fix ia_hash_pslist_entry race by using them.

in_ifaddr_lock is required before writing ifa->ia_hash and
ia_hash_pslist_entry to serialize writer processings.

reviewed by ozaki-r@n.o.

Revision 1.70.4.5 / (download) - annotate - [select for diffs], Mon Dec 5 10:55:28 2016 UTC (7 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.70.4.4: +3 -1 lines
Diff to previous 1.70.4.4 (colored) to branchpoint 1.70 (colored)

Sync with HEAD

Revision 1.89 / (download) - annotate - [select for diffs], Fri Nov 18 10:38:55 2016 UTC (7 years, 3 months ago) by knakahara
Branch: MAIN
CVS Tags: nick-nhusb-base-20161204
Changes since 1.88: +2 -1 lines
Diff to previous 1.88 (colored)

We must use PSLIST_ENTRY_DESTROY after PSLIST_WRITER_REMOVE and waiting all readers done.

And then, if we want to re-insert the removed pslist element, we need to
call PSLIST_ENTERY_INIT again.

advised by riastradh@n.o and reviewed by ozaki-r@n.o, thanks.

Revision 1.78.2.2 / (download) - annotate - [select for diffs], Fri Nov 4 14:49:21 2016 UTC (7 years, 4 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.78.2.1: +11 -4 lines
Diff to previous 1.78.2.1 (colored) to branchpoint 1.78 (colored)

Sync with HEAD

Revision 1.88 / (download) - annotate - [select for diffs], Tue Oct 11 13:59:30 2016 UTC (7 years, 4 months ago) by roy
Branch: MAIN
CVS Tags: pgoyette-localcount-20161104
Changes since 1.87: +2 -1 lines
Diff to previous 1.87 (colored)

Implement RFC 5227 2.4 Ongoing Conflict Detection and Address Defence.

If ip_dad_count is 0, then the conflict is just logged and the address
is not marked as duplicated.

Revision 1.70.4.4 / (download) - annotate - [select for diffs], Wed Oct 5 20:56:09 2016 UTC (7 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.70.4.3: +79 -4 lines
Diff to previous 1.70.4.3 (colored) to branchpoint 1.70 (colored)

Sync with HEAD

Revision 1.87 / (download) - annotate - [select for diffs], Thu Sep 29 15:18:18 2016 UTC (7 years, 5 months ago) by roy
Branch: MAIN
CVS Tags: nick-nhusb-base-20161004
Changes since 1.86: +1 -2 lines
Diff to previous 1.86 (colored)

in_ifscrub is no longer needed.

Revision 1.86 / (download) - annotate - [select for diffs], Thu Sep 29 15:04:17 2016 UTC (7 years, 5 months ago) by roy
Branch: MAIN
Changes since 1.85: +3 -3 lines
Diff to previous 1.85 (colored)

Set dstaddr in in_ifinit so that sppp consumers announce the correct
dstaddr in routing messages.

Revision 1.85 / (download) - annotate - [select for diffs], Sun Sep 18 02:17:43 2016 UTC (7 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.84: +2 -2 lines
Diff to previous 1.84 (colored)

Dealing with arplog is a bit more complicated...

Revision 1.84 / (download) - annotate - [select for diffs], Sat Sep 17 02:37:59 2016 UTC (7 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.83: +5 -1 lines
Diff to previous 1.83 (colored)

protect arplog with INET

Revision 1.83 / (download) - annotate - [select for diffs], Fri Sep 16 14:17:23 2016 UTC (7 years, 5 months ago) by roy
Branch: MAIN
Changes since 1.82: +2 -2 lines
Diff to previous 1.82 (colored)

Drop hostIsNew from in_ifinit, let the function work out if the address
has changed.
Sync address flag setup with the IPv6 counterpart.
When scrubbing the address, or setting up the address fails, restore the
old address flags as well as the old address.

Revision 1.82 / (download) - annotate - [select for diffs], Thu Sep 15 18:17:29 2016 UTC (7 years, 5 months ago) by roy
Branch: MAIN
Changes since 1.81: +4 -1 lines
Diff to previous 1.81 (colored)

Allow arplog to be used outside of if_arp.c

Revision 1.81 / (download) - annotate - [select for diffs], Tue Sep 13 00:45:15 2016 UTC (7 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: localcount-20160914
Changes since 1.80: +2 -2 lines
Diff to previous 1.80 (colored)

remove trailing spaces. userland does not catch this?

Revision 1.80 / (download) - annotate - [select for diffs], Tue Sep 13 00:19:28 2016 UTC (7 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.79: +4 -1 lines
Diff to previous 1.79 (colored)

add bits for address flags

Revision 1.78.2.1 / (download) - annotate - [select for diffs], Sat Aug 6 00:19:10 2016 UTC (7 years, 7 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.78: +67 -1 lines
Diff to previous 1.78 (colored)

Sync with HEAD

Revision 1.79 / (download) - annotate - [select for diffs], Mon Aug 1 03:15:30 2016 UTC (7 years, 7 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-localcount-20160806
Changes since 1.78: +67 -1 lines
Diff to previous 1.78 (colored)

Apply pserialize and psref to struct ifaddr and its variants

This change makes struct ifaddr and its variants (in_ifaddr and in6_ifaddr)
MP-safe by using pserialize and psref. At this moment, pserialize_perform
and psref_target_destroy are disabled because (1) we don't need them
because of softnet_lock (2) they cause a deadlock because of softnet_lock.
So we'll enable them when we remove softnet_lock in the future.

Revision 1.70.4.3 / (download) - annotate - [select for diffs], Sat Jul 9 20:25:22 2016 UTC (7 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.70.4.2: +114 -46 lines
Diff to previous 1.70.4.2 (colored) to branchpoint 1.70 (colored)

Sync with HEAD

Revision 1.78 / (download) - annotate - [select for diffs], Fri Jul 8 04:33:30 2016 UTC (7 years, 7 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160726, nick-nhusb-base-20160907
Branch point for: pgoyette-localcount
Changes since 1.77: +37 -46 lines
Diff to previous 1.77 (colored)

Replace macros to get an IP address with proper inline functions

The inline functions are more friendly for applying psz/psref;
they consist of only simple interations.

Revision 1.77 / (download) - annotate - [select for diffs], Fri Jul 8 03:40:34 2016 UTC (7 years, 7 months ago) by ozaki-r
Branch: MAIN
Changes since 1.76: +6 -4 lines
Diff to previous 1.76 (colored)

Kill remaining use of the old lists of IP addresses

Revision 1.76 / (download) - annotate - [select for diffs], Wed Jul 6 08:42:34 2016 UTC (7 years, 8 months ago) by ozaki-r
Branch: MAIN
Changes since 1.75: +52 -1 lines
Diff to previous 1.75 (colored)

Switch the IPv4 address list to pslist(9)

Note that we leave the old list just in case; it seems there are some
kvm(3) users accessing the list. We can remove it later if we confirmed
nobody does actually.

Revision 1.75 / (download) - annotate - [select for diffs], Wed Jul 6 05:27:52 2016 UTC (7 years, 8 months ago) by ozaki-r
Branch: MAIN
Changes since 1.74: +25 -1 lines
Diff to previous 1.74 (colored)

Add and use pslist(9)-based hashtable for IPv4 addresses

Note that we leave the old hashtable to keep vmstat -H working.

Revision 1.70.4.2 / (download) - annotate - [select for diffs], Tue Sep 22 12:06:11 2015 UTC (8 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.70.4.1: +15 -2 lines
Diff to previous 1.70.4.1 (colored) to branchpoint 1.70 (colored)

Sync with HEAD

Revision 1.74 / (download) - annotate - [select for diffs], Mon Aug 31 08:05:20 2015 UTC (8 years, 6 months ago) by ozaki-r
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921
Changes since 1.73: +4 -1 lines
Diff to previous 1.73 (colored)

Replace ARP cache (llinfo) with lltable/llentry

Highlights of the change are:
- Use llentry instead of llinfo to manage ARP caches
  - ARP specific data are stored in the hashed list
    of an interface instead of the global list (llinfo_arp)
- Fine-grain locking on llentry
- arptimer (callout) per ARP cache
  - the global timer callout with the big locks can be
    removed (though softnet_lock is still required for now)
- net.inet.arp.prune is now obsoleted
  - it was the interval of the global timer callout
- net.inet.arp.refresh is now obsoleted
  - it was a parameter that prevents expiration of active caches
  - Removed to simplify the timer logic, but we may be able to
    restore the feature if really needed

Proposed on tech-kern and tech-net.

Revision 1.73 / (download) - annotate - [select for diffs], Mon Aug 31 08:02:44 2015 UTC (8 years, 6 months ago) by ozaki-r
Branch: MAIN
Changes since 1.72: +12 -2 lines
Diff to previous 1.72 (colored)

Hook up lltable/llentry with the kernel (and rumpkernel)

It is built and initialized on bootup, but there is no user for now.

Most codes in in.c are imported from FreeBSD as well as lltable/llentry.

Revision 1.70.4.1 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:25 2015 UTC (8 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.70: +17 -2 lines
Diff to previous 1.70 (colored)

Sync with HEAD

Revision 1.72 / (download) - annotate - [select for diffs], Sat May 16 12:12:46 2015 UTC (8 years, 9 months ago) by roy
Branch: MAIN
CVS Tags: nick-nhusb-base-20150606
Changes since 1.71: +6 -2 lines
Diff to previous 1.71 (colored)

Separate ARP handling DAD from inet.
This is done by signalling the intent to try tentative addresses
and then clearing the intent once the address is setup.
When the ARP handler is installed (arp_ifinit) then it adds
dad start and stop functions to the address which are used instead
of calling ARP directly.

Revision 1.71 / (download) - annotate - [select for diffs], Sat May 2 14:41:32 2015 UTC (8 years, 10 months ago) by roy
Branch: MAIN
Changes since 1.70: +13 -2 lines
Diff to previous 1.70 (colored)

Add IPv4 address flags IN_IFF_TENTATIVE, IN_IFF_DUPLICATED and
IN_IFF_DETATCHED to mimic the IPv6 address behaviour.
Add SIOCGIFAFLAG_IN ioctl to retrieve the address flag via the
ifreq structure.
Add IPv4 DAD detection via the ARP methods described in RFC 5227.
Add sysctls net.inet.ip.dad_count and net.inet.arp.debug.

Discussed on tech-net@

Revision 1.65.18.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:35 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-maxphys
Changes since 1.65: +24 -76 lines
Diff to previous 1.65 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.65.32.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:56:25 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.65: +24 -76 lines
Diff to previous 1.65 (colored) next main 1.66 (colored)

Rebase.

Revision 1.70 / (download) - annotate - [select for diffs], Tue Jul 1 05:49:18 2014 UTC (9 years, 8 months ago) by rtr
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Branch point for: nick-nhusb
Changes since 1.69: +2 -3 lines
Diff to previous 1.69 (colored)

fix parameter types in pr_ioctl, called xx_control() functions and remove
abuse of pointer to struct mbuf type.

param2 changed to u_long type and uses parameter name 'cmd' (ioctl command)
param3 changed to void * type and uses parameter name 'data'
param4 changed to struct ifnet * and uses parameter name 'ifp'
param5 has been removed (formerly struct lwp *) and uses of 'l' have been
       replaced with curlwp from curproc(9).

callers have had (now unnecessary) casts to struct mbuf * removed, called
code has had (now unnecessary) casts to u_long, void * and struct ifnet *
respectively removed.

reviewed by rmind@

Revision 1.69 / (download) - annotate - [select for diffs], Thu Jun 5 23:48:16 2014 UTC (9 years, 9 months ago) by rmind
Branch: MAIN
Changes since 1.68: +6 -2 lines
Diff to previous 1.68 (colored)

- Implement pktqueue interface for lockless IP input queue.
- Replace ipintrq and ip6intrq with the pktqueue mechanism.
- Eliminate kernel-lock from ipintr() and ip6intr().
- Some preparation work to push softnet_lock out of ipintr().

Discussed on tech-net.

Revision 1.68 / (download) - annotate - [select for diffs], Thu May 29 23:02:48 2014 UTC (9 years, 9 months ago) by rmind
Branch: MAIN
Changes since 1.67: +18 -67 lines
Diff to previous 1.67 (colored)

Make IGMP and multicast group management code MP-safe.  Use a read-write
lock to protect the hash table of multicast address records; also, make it
private and eliminate some macros.  In the long term, the lookup path ought
to be optimised.

Revision 1.67 / (download) - annotate - [select for diffs], Fri May 23 19:27:48 2014 UTC (9 years, 9 months ago) by rmind
Branch: MAIN
Changes since 1.66: +1 -3 lines
Diff to previous 1.66 (colored)

Make ip_input() static, there is no need to expose it.

Revision 1.66 / (download) - annotate - [select for diffs], Thu May 22 22:01:12 2014 UTC (9 years, 9 months ago) by rmind
Branch: MAIN
Changes since 1.65: +1 -5 lines
Diff to previous 1.65 (colored)

- Add in_init() and move some functions, variables and sysctls into in.c
  where they belong to.  Make some functions and variables static.
- ip_input.c: reduce some #ifdefs, cleanup a little.
- Move some sysctls into ip_flow.c as they belong there.

No functional change.

Revision 1.65.22.1 / (download) - annotate - [select for diffs], Wed Jul 17 03:16:31 2013 UTC (10 years, 7 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.65: +1 -8 lines
Diff to previous 1.65 (colored) next main 1.66 (colored)

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

Revision 1.62.22.1 / (download) - annotate - [select for diffs], Sat Mar 5 20:55:57 2011 UTC (13 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.62: +20 -17 lines
Diff to previous 1.62 (colored) next main 1.63 (colored)

sync with head

Revision 1.62.20.1 / (download) - annotate - [select for diffs], Sat Nov 6 08:08:49 2010 UTC (13 years, 4 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.62: +20 -17 lines
Diff to previous 1.62 (colored) next main 1.63 (colored)

Sync with HEAD.

Revision 1.65 / (download) - annotate - [select for diffs], Fri Nov 5 01:35:57 2010 UTC (13 years, 4 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, uebayasi-xip-base4, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, khorben-n900, jruoho-x86intr-base, jruoho-x86intr, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, agc-symver-base, agc-symver
Branch point for: tls-maxphys, tls-earlyentropy, rmind-smpnet
Changes since 1.64: +20 -17 lines
Diff to previous 1.64 (colored)

ip_randomid: make mechanism MP-safe and more modular.

OK matt@

Revision 1.64 / (download) - annotate - [select for diffs], Mon Jul 19 14:09:44 2010 UTC (13 years, 7 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base3, uebayasi-xip-base2
Changes since 1.63: +1 -2 lines
Diff to previous 1.63 (colored)

Abstract IP reassembly into single generic routine - ip_reass_packet().
Make struct ipq private and struct ipqent not visible to userland.
Push ip_len adjustment into reassembly layer.

OK matt@

Revision 1.63 / (download) - annotate - [select for diffs], Tue Jul 13 22:16:10 2010 UTC (13 years, 7 months ago) by rmind
Branch: MAIN
Changes since 1.62: +2 -1 lines
Diff to previous 1.62 (colored)

Split-off IPv4 re-assembly mechanism into a separate module.  Abstract
into ip_reass_init(), ip_reass_lookup(), etc (note: abstraction is not
yet complete).  No functional changes to the actual mechanism.

OK matt@

Revision 1.61.6.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:24 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.61: +1 -8 lines
Diff to previous 1.61 (colored) next main 1.62 (colored)

Sync with HEAD.

Revision 1.61.8.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:28 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-pf42
Changes since 1.61: +1 -8 lines
Diff to previous 1.61 (colored) next main 1.62 (colored)

sync with head.

Revision 1.61.10.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:41 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.61: +1 -8 lines
Diff to previous 1.61 (colored) next main 1.62 (colored)

sync with head.

Revision 1.62 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:09 2008 UTC (15 years, 10 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, yamt-nfs-mp-base2, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, uebayasi-xip-base1, uebayasi-xip-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, matt-premerge-20091211, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, hpcarm-cleanup-nbase, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.61: +1 -8 lines
Diff to previous 1.61 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.58.16.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:05:06 2008 UTC (15 years, 11 months ago) by matt
Branch: matt-armv6
Changes since 1.58.16.2: +42 -1 lines
Diff to previous 1.58.16.2 (colored) to branchpoint 1.58 (colored) next main 1.59 (colored)

sync with HEAD

Revision 1.59.6.2 / (download) - annotate - [select for diffs], Mon Feb 18 21:07:08 2008 UTC (16 years ago) by mjf
Branch: mjf-devfs
Changes since 1.59.6.1: +42 -1 lines
Diff to previous 1.59.6.1 (colored) to branchpoint 1.59 (colored) next main 1.60 (colored)

Sync with HEAD.

Revision 1.55.4.5 / (download) - annotate - [select for diffs], Mon Feb 11 15:00:04 2008 UTC (16 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.55.4.4: +42 -1 lines
Diff to previous 1.55.4.4 (colored) to branchpoint 1.55 (colored) next main 1.56 (colored)

sync with head.

Revision 1.61 / (download) - annotate - [select for diffs], Wed Feb 6 03:20:51 2008 UTC (16 years, 1 month ago) by matt
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, 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: yamt-pf42, yamt-nfs-mp, mjf-devfs2
Changes since 1.60: +42 -1 lines
Diff to previous 1.60 (colored)

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.58.16.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:57:26 2008 UTC (16 years, 1 month ago) by matt
Branch: matt-armv6
Changes since 1.58.16.1: +2 -2 lines
Diff to previous 1.58.16.1 (colored) to branchpoint 1.58 (colored)

sync with HEAD

Revision 1.58.14.2 / (download) - annotate - [select for diffs], Sun Dec 9 19:38:36 2007 UTC (16 years, 2 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.58.14.1: +2 -2 lines
Diff to previous 1.58.14.1 (colored) to branchpoint 1.58 (colored) next main 1.59 (colored)

Sync with HEAD.

Revision 1.59.6.1 / (download) - annotate - [select for diffs], Sat Dec 8 18:21:12 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.59: +2 -2 lines
Diff to previous 1.59 (colored)

Sync with HEAD.

Revision 1.59.8.1 / (download) - annotate - [select for diffs], Sat Dec 8 17:57:56 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.59: +2 -2 lines
Diff to previous 1.59 (colored) next main 1.60 (colored)

Sync with head.

Revision 1.55.4.4 / (download) - annotate - [select for diffs], Fri Dec 7 17:34:28 2007 UTC (16 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.55.4.3: +2 -2 lines
Diff to previous 1.55.4.3 (colored) to branchpoint 1.55 (colored)

sync with head

Revision 1.60 / (download) - annotate - [select for diffs], Wed Dec 5 23:47:18 2007 UTC (16 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, matt-armv6-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386
Changes since 1.59: +2 -2 lines
Diff to previous 1.59 (colored)

Extract common code, creating a subroutine if_purgeaddrs(ifp,
family, purgeaddr) which applies function `purgeaddr' to each
address on `ifp' belonging to `family'.

Revision 1.58.16.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:33:48 2007 UTC (16 years, 4 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.58: +2 -2 lines
Diff to previous 1.58 (colored)

sync with HEAD

Revision 1.58.2.1 / (download) - annotate - [select for diffs], Tue Oct 9 13:44:49 2007 UTC (16 years, 4 months ago) by ad
Branch: vmlocking
Changes since 1.58: +2 -2 lines
Diff to previous 1.58 (colored) next main 1.59 (colored)

Sync with head.

Revision 1.58.14.1 / (download) - annotate - [select for diffs], Mon Sep 3 16:49:03 2007 UTC (16 years, 6 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.58: +2 -2 lines
Diff to previous 1.58 (colored)

Sync with HEAD.

Revision 1.55.4.3 / (download) - annotate - [select for diffs], Mon Sep 3 14:42:49 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.55.4.2: +3 -3 lines
Diff to previous 1.55.4.2 (colored) to branchpoint 1.55 (colored)

sync with head.

Revision 1.58.10.1 / (download) - annotate - [select for diffs], Mon Sep 3 10:23:44 2007 UTC (16 years, 6 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.58: +2 -2 lines
Diff to previous 1.58 (colored) next main 1.59 (colored)

Sync with HEAD.

Revision 1.59 / (download) - annotate - [select for diffs], Sat Sep 1 04:32:51 2007 UTC (16 years, 6 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking2-base1, vmlocking-nbase, vmlocking-base, nick-csl-alignment-base5, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: vmlocking2, mjf-devfs
Changes since 1.58: +2 -2 lines
Diff to previous 1.58 (colored)

Use ifreq_setaddr(), ifreq_getaddr(), sockaddr_in_init(), and
sockaddr_copy().  Constify.  Compare pointers with NULL, not 0.
Don't "test truth" of pointers, but compare with NULL.

Revision 1.57.10.1 / (download) - annotate - [select for diffs], Mon Mar 12 05:59:36 2007 UTC (16 years, 11 months ago) by rmind
Branch: yamt-idlelwp
Changes since 1.57: +2 -2 lines
Diff to previous 1.57 (colored) next main 1.58 (colored)

Sync with HEAD.

Revision 1.58 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:20 2007 UTC (17 years ago) by christos
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, nick-csl-alignment-base, mjf-ufs-trans-base, mjf-ufs-trans, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: vmlocking, nick-csl-alignment, matt-armv6, jmcneill-pm
Changes since 1.57: +2 -2 lines
Diff to previous 1.57 (colored)

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

Revision 1.55.4.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:33 2006 UTC (17 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.55.4.1: +2 -2 lines
Diff to previous 1.55.4.1 (colored) to branchpoint 1.55 (colored)

sync with head.

Revision 1.56.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:58:47 2006 UTC (17 years, 5 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.56: +2 -2 lines
Diff to previous 1.56 (colored) next main 1.57 (colored)

sync with head

Revision 1.56.8.1 / (download) - annotate - [select for diffs], Fri Aug 11 15:46:33 2006 UTC (17 years, 6 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.56: +2 -2 lines
Diff to previous 1.56 (colored) next main 1.57 (colored)

sync with head

Revision 1.57 / (download) - annotate - [select for diffs], Sun Jul 23 22:06:13 2006 UTC (17 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, rpaulo-netinet-merge-pcb-base, post-newlock2-merge, newlock2-nbase, newlock2-base, newlock2, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm, ad-audiomp-base, ad-audiomp, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-idlelwp
Changes since 1.56: +2 -2 lines
Diff to previous 1.56 (colored)

Use the LWP cached credentials where sane.

Revision 1.55.4.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:11:01 2006 UTC (17 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.55: +2 -2 lines
Diff to previous 1.55 (colored)

sync with head.

Revision 1.46.2.6 / (download) - annotate - [select for diffs], Sun Dec 11 10:29:24 2005 UTC (18 years, 2 months ago) by christos
Branch: ktrace-lwp
Changes since 1.46.2.5: +2 -2 lines
Diff to previous 1.46.2.5 (colored) next main 1.47 (colored)

Sync with head.

Revision 1.56 / (download) - annotate - [select for diffs], Sat Dec 10 23:36:23 2005 UTC (18 years, 2 months ago) by elad
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, peter-altq-base, peter-altq, ktrace-lwp-base, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base, chap-midi
Branch point for: yamt-pdpolicy, rpaulo-netinet-merge-pcb
Changes since 1.55: +2 -2 lines
Diff to previous 1.55 (colored)

Multiple inclusion protection, as suggested by christos@ on tech-kern@
few days ago.

Revision 1.53.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:33 2005 UTC (18 years, 10 months ago) by kent
Branch: kent-audio2
Changes since 1.53: +6 -2 lines
Diff to previous 1.53 (colored) next main 1.54 (colored)

sync with -current

Revision 1.46.2.5 / (download) - annotate - [select for diffs], Fri Apr 1 14:31:50 2005 UTC (18 years, 11 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.46.2.4: +5 -1 lines
Diff to previous 1.46.2.4 (colored)

Sync with HEAD.

Revision 1.54.2.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:36:38 2005 UTC (18 years, 11 months ago) by yamt
Branch: yamt-km
Changes since 1.54: +5 -1 lines
Diff to previous 1.54 (colored) next main 1.55 (colored)

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

Revision 1.55 / (download) - annotate - [select for diffs], Wed Mar 9 05:07:19 2005 UTC (19 years ago) by atatat
Branch: 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, yamt-km-base4, yamt-km-base3, thorpej-vnode-attr-base, thorpej-vnode-attr, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, kent-audio2-base
Branch point for: yamt-lazymbuf
Changes since 1.54: +5 -1 lines
Diff to previous 1.54 (colored)

Add the following nodes to the sysctl tree:

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

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

Revision 1.46.2.4 / (download) - annotate - [select for diffs], Fri Feb 4 11:47:48 2005 UTC (19 years, 1 month ago) by skrll
Branch: ktrace-lwp
Changes since 1.46.2.3: +2 -2 lines
Diff to previous 1.46.2.3 (colored)

Sync with HEAD.

Revision 1.54 / (download) - annotate - [select for diffs], Mon Jan 24 21:25:09 2005 UTC (19 years, 1 month ago) by matt
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base
Branch point for: yamt-km
Changes since 1.53: +2 -2 lines
Diff to previous 1.53 (colored)

Add IFNET_FOREACH and IFADDR_FOREACH macros and start using them.

Revision 1.46.2.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:37:11 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.46.2.2: +1 -1 lines
Diff to previous 1.46.2.2 (colored)

Fix the sync with head I botched.

Revision 1.46.2.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:54:53 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.46.2.1: +0 -0 lines
Diff to previous 1.46.2.1 (colored)

Sync with HEAD.

Revision 1.46.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:54:37 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.46: +25 -32 lines
Diff to previous 1.46 (colored)

Sync with HEAD

Revision 1.53 / (download) - annotate - [select for diffs], Wed Apr 21 17:49:46 2004 UTC (19 years, 10 months ago) by itojun
Branch: MAIN
CVS Tags: kent-audio1-beforemerge, kent-audio1-base, kent-audio1, BEFORE-IPF413
Branch point for: kent-audio2
Changes since 1.52: +15 -15 lines
Diff to previous 1.52 (colored)

no space between function name and paren: foo (blah) -> foo(blah)

Revision 1.52 / (download) - annotate - [select for diffs], Sun Apr 18 21:00:35 2004 UTC (19 years, 10 months ago) by matt
Branch: MAIN
Changes since 1.51: +17 -17 lines
Diff to previous 1.51 (colored)

De __P()

Revision 1.51 / (download) - annotate - [select for diffs], Tue Nov 11 20:25:26 2003 UTC (20 years, 3 months ago) by jonathan
Branch: 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
Changes since 1.50: +2 -2 lines
Diff to previous 1.50 (colored)

Change global head-of-local-IP-address list from in_ifaddr to
in_ifaddrhead. Recent changes in struct names caused a namespace
collision in fast-ipsec, which are most cleanly fixed by using
"in_ifaddrhead" as the listhead name.

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

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

Revision 1.49 / (download) - annotate - [select for diffs], Mon Aug 18 22:28:51 2003 UTC (20 years, 6 months ago) by itojun
Branch: MAIN
Changes since 1.48: +2 -6 lines
Diff to previous 1.48 (colored)

since we cope with packets with addess on !IFF_UP interface in ip_input()
properly, IFF_UP check in INADDR_TO_IA is obsolete (or too much).

Revision 1.48 / (download) - annotate - [select for diffs], Thu Aug 7 16:33:11 2003 UTC (20 years, 7 months ago) by agc
Branch: MAIN
Changes since 1.47: +2 -6 lines
Diff to previous 1.47 (colored)

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

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

Revision 1.47 / (download) - annotate - [select for diffs], Mon Jul 14 16:39:44 2003 UTC (20 years, 7 months ago) by itojun
Branch: MAIN
Changes since 1.46: +6 -4 lines
Diff to previous 1.46 (colored)

correct igmp.  from love

Revision 1.46 / (download) - annotate - [select for diffs], Thu Jun 26 00:43:32 2003 UTC (20 years, 8 months ago) by itojun
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.45: +2 -2 lines
Diff to previous 1.45 (colored)

tabify

Revision 1.45 / (download) - annotate - [select for diffs], Sun Jun 15 02:49:33 2003 UTC (20 years, 8 months ago) by matt
Branch: MAIN
Changes since 1.44: +25 -28 lines
Diff to previous 1.44 (colored)

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

Revision 1.41.4.2 / (download) - annotate - [select for diffs], Sun Jun 23 17:50:45 2002 UTC (21 years, 8 months ago) by jdolecek
Branch: kqueue
Changes since 1.41.4.1: +3 -3 lines
Diff to previous 1.41.4.1 (colored) to branchpoint 1.41 (colored) next main 1.42 (colored)

catch up with -current on kqueue branch

Revision 1.41.2.2 / (download) - annotate - [select for diffs], Thu Jun 20 03:48:36 2002 UTC (21 years, 8 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.41.2.1: +3 -3 lines
Diff to previous 1.41.2.1 (colored) to branchpoint 1.41 (colored) next main 1.42 (colored)

Catch up to -current.

Revision 1.44 / (download) - annotate - [select for diffs], Sun May 12 20:33:50 2002 UTC (21 years, 9 months ago) by matt
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, gehenna-devsw-base, gehenna-devsw, fvdl_fs64_base
Changes since 1.43: +3 -3 lines
Diff to previous 1.43 (colored)

Eliminate commons.

Revision 1.41.4.1 / (download) - annotate - [select for diffs], Thu Jan 10 20:02:42 2002 UTC (22 years, 1 month ago) by thorpej
Branch: kqueue
Changes since 1.41: +15 -17 lines
Diff to previous 1.41 (colored)

Sync kqueue branch with -current.

Revision 1.41.2.1 / (download) - annotate - [select for diffs], Wed Nov 14 19:17:45 2001 UTC (22 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.41: +15 -17 lines
Diff to previous 1.41 (colored)

Catch up to -current.

Revision 1.41.8.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:19:23 2001 UTC (22 years, 3 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.41: +15 -17 lines
Diff to previous 1.41 (colored) next main 1.42 (colored)

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

Revision 1.43 / (download) - annotate - [select for diffs], Sun Nov 4 20:55:27 2001 UTC (22 years, 4 months ago) by matt
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, newlock-base, newlock, ifpoll-base, eeh-devprop-base, eeh-devprop
Changes since 1.42: +14 -16 lines
Diff to previous 1.42 (colored)

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

Revision 1.42 / (download) - annotate - [select for diffs], Sun Nov 4 13:42:27 2001 UTC (22 years, 4 months ago) by matt
Branch: MAIN
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (colored)

Change a few variable/tables to const since they are read-only.

Revision 1.35.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:10:23 2000 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.35: +13 -5 lines
Diff to previous 1.35 (colored) next main 1.36 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.39.4.1 / (download) - annotate - [select for diffs], Tue Oct 17 00:46:09 2000 UTC (23 years, 4 months ago) by tv
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA
Changes since 1.39: +6 -1 lines
Diff to previous 1.39 (colored) next main 1.40 (colored)

Pullup 1.41 [enami]:
- Keep track of allhost multicast address record we joined into
  each in_ifaddr and delete it when an address is purged.
- Don't simply try to delete a multicast address record listed in the
  ia_multiaddrs.  It results a dangling pointer.  Let who holds a
  reference to it to delete it.

Also 1.40 [itojun, req by enami]:
implement multicast kludge table for IPv4.
- when all the interface address is removed from an interface, and there's
  multicast groups still left joined, keep it in kludge table.
- when an interface address is added again, recover multicast groups from
  kludge table.
this will avoid problem with dangling in_ifaddr on pcmcia card removal,
due to the link from multicast group info (in_multi).

Revision 1.41 / (download) - annotate - [select for diffs], Sun Oct 8 09:15:28 2000 UTC (23 years, 5 months ago) by enami
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-mips-cache, nathanw_sa, kqueue
Changes since 1.40: +3 -1 lines
Diff to previous 1.40 (colored)

- Keep track of allhost multicast address record we joined into
  each in_ifaddr and delete it when an address is purged.
- Don't simply try to delete a multicast address record listed in the
  ia_multiaddrs.  It results a dangling pointer.  Let who holds a
  reference to it to delete it.

Revision 1.40 / (download) - annotate - [select for diffs], Sun Oct 8 02:05:48 2000 UTC (23 years, 5 months ago) by itojun
Branch: MAIN
Changes since 1.39: +4 -1 lines
Diff to previous 1.39 (colored)

implement multicast kludge table for IPv4.
- when all the interface address is removed from an interface, and there's
  multicast groups still left joined, keep it in kludge table.
- when an interface address is added again, recover multicast groups from
  kludge table.
this will avoid problem with dangling in_ifaddr on pcmcia card removal,
due to the link from multicast group info (in_multi).

the code is basically from sys/netinet6/in6.c (jinmei@kame).

pointed out by: Shiva Shenoy <shiva_s@yahoo.com>

Revision 1.39 / (download) - annotate - [select for diffs], Thu Mar 30 13:24:57 2000 UTC (23 years, 11 months ago) by augustss
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.38: +4 -4 lines
Diff to previous 1.38 (colored)

Remove register declarations.

Revision 1.38 / (download) - annotate - [select for diffs], Thu Mar 30 02:33:45 2000 UTC (23 years, 11 months ago) by simonb
Branch: MAIN
Changes since 1.37: +1 -2 lines
Diff to previous 1.37 (colored)

Delete redundant decl of in_socktrim() - it's in <netinet/in.h>.

Revision 1.37 / (download) - annotate - [select for diffs], Wed Feb 2 23:28:09 2000 UTC (24 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.36: +2 -1 lines
Diff to previous 1.36 (colored)

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

Revision 1.36 / (download) - annotate - [select for diffs], Tue Feb 1 22:52:08 2000 UTC (24 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.35: +4 -1 lines
Diff to previous 1.35 (colored)

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

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

Revision 1.32.2.1.4.3 / (download) - annotate - [select for diffs], Tue Nov 30 13:35:26 1999 UTC (24 years, 3 months ago) by itojun
Branch: kame
CVS Tags: kame_141_19991130
Changes since 1.32.2.1.4.2: +7 -5 lines
Diff to previous 1.32.2.1.4.2 (colored) to branchpoint 1.32.2.1 (colored) next main 1.32.2.2 (colored)

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

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

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

Revision 1.32.2.1.4.2 / (download) - annotate - [select for diffs], Tue Jul 6 11:02:44 1999 UTC (24 years, 8 months ago) by itojun
Branch: kame
CVS Tags: kame_14_19990705
Changes since 1.32.2.1.4.1: +1 -30 lines
Diff to previous 1.32.2.1.4.1 (colored) to branchpoint 1.32.2.1 (colored)

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

Revision 1.32.2.1.2.2 / (download) - annotate - [select for diffs], Thu Jul 1 23:47:01 1999 UTC (24 years, 8 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.32.2.1.2.1: +7 -1 lines
Diff to previous 1.32.2.1.2.1 (colored) to branchpoint 1.32.2.1 (colored) next main 1.32.2.2 (colored)

Sync w/ -current.

Revision 1.35 / (download) - annotate - [select for diffs], Thu Jul 1 08:12:50 1999 UTC (24 years, 8 months ago) by itojun
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-base
Branch point for: thorpej_scsipi
Changes since 1.34: +7 -1 lines
Diff to previous 1.34 (colored)

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

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

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

Revision 1.32.2.1.4.1 / (download) - annotate - [select for diffs], Mon Jun 28 06:36:59 1999 UTC (24 years, 8 months ago) by itojun
Branch: kame
CVS Tags: kame_14_19990628
Changes since 1.32.2.1: +36 -1 lines
Diff to previous 1.32.2.1 (colored)

KAME/NetBSD 1.4 SNAP kit, dated 19990628.

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

Revision 1.32.2.1.2.1 / (download) - annotate - [select for diffs], Mon Jun 21 01:27:48 1999 UTC (24 years, 8 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.32.2.1: +7 -5 lines
Diff to previous 1.32.2.1 (colored)

Sync w/ -current.

Revision 1.32.2.2 / (download) - annotate - [select for diffs], Mon Jun 7 19:57:17 1999 UTC (24 years, 9 months ago) by perry
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001
Changes since 1.32.2.1: +7 -5 lines
Diff to previous 1.32.2.1 (colored) to branchpoint 1.32 (colored) next main 1.33 (colored)

pullup 1.33->1.34 (thorpej): fix INADDR_TO_IA()

Revision 1.34 / (download) - annotate - [select for diffs], Sun May 16 19:33:27 1999 UTC (24 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.33: +7 -5 lines
Diff to previous 1.33 (colored)

Sigh, fix some broken logic in the last change to INADDR_TO_IA(), and make
the macro a little more obvious.  Should fix kern/7589, from Jens A Nilsson.

Revision 1.32.2.1 / (download) - annotate - [select for diffs], Mon May 3 22:24:49 1999 UTC (24 years, 10 months ago) by perry
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-RELEASE
Branch point for: kame, chs-ubc2
Changes since 1.32: +6 -2 lines
Diff to previous 1.32 (colored)

pullup 1.32->1.33 (thorpej)

Revision 1.33 / (download) - annotate - [select for diffs], Mon May 3 22:12:45 1999 UTC (24 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.32: +6 -2 lines
Diff to previous 1.32 (colored)

In INADDR_TO_IA(), skip interfaces which are not up.  Revert previous change
to ip_input.c to check the interface status after INADDR_TO_IA().

Fix cooked up by Heiko Rupp and myself.

Fixes PR 7480.

Revision 1.32 / (download) - annotate - [select for diffs], Sat Dec 19 02:46:12 1998 UTC (25 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-4-base
Branch point for: netbsd-1-4
Changes since 1.31: +37 -37 lines
Diff to previous 1.31 (colored)

Reverse the copyright-notice-swap.  It went against existing practice.

Revision 1.31.4.1 / (download) - annotate - [select for diffs], Fri Dec 11 04:53:08 1998 UTC (25 years, 3 months ago) by kenh
Branch: kenh-if-detach
Changes since 1.31: +26 -3 lines
Diff to previous 1.31 (colored) next main 1.32 (colored)

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.18.6.1 / (download) - annotate - [select for diffs], Thu Oct 1 17:57:19 1998 UTC (25 years, 5 months ago) by cgd
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003
Changes since 1.18: +93 -13 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

pull up revisions 1.21-1.22, 1.27, 1.29-1.30, 1.31 (via patch) from
trunk. (tls)

Revision 1.31 / (download) - annotate - [select for diffs], Wed Sep 30 21:52:25 1998 UTC (25 years, 5 months ago) by tls
Branch: MAIN
CVS Tags: kenh-if-detach-base, chs-ubc-base, chs-ubc
Branch point for: kenh-if-detach
Changes since 1.30: +38 -38 lines
Diff to previous 1.30 (colored)

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.30 / (download) - annotate - [select for diffs], Fri Aug 14 06:57:54 1998 UTC (25 years, 6 months ago) by scottr
Branch: MAIN
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

Fix the NEXT_IA_WITH_SAME_ADDR macro introduced in 1.27:  it was finding
the first in_ifaddr structure with a different internet address!  Reverse
the sense of the test.  Spotted by and fix from Eric Haszlakiewicz.

Revision 1.29 / (download) - annotate - [select for diffs], Wed Jul 29 05:18:54 1998 UTC (25 years, 7 months ago) by tls
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

change IN_IFADDR_HASH_SIZE to 509, which actually uses no more space than 293 due to rounding up to nearest power of two in hashinit.

Revision 1.28 / (download) - annotate - [select for diffs], Thu Jul 16 06:45:09 1998 UTC (25 years, 7 months ago) by tls
Branch: MAIN
Changes since 1.27: +8 -2 lines
Diff to previous 1.27 (colored)

Put original hash function back.  It wastes a little bit of space, but is much more even -- think of the case of a web service provider, some of whose customers end up getting 'inferior service' because they're on addresses that happen to be out at the end of a hash chain.  With webservers with thousands of addresses, this is a real issue.  If the wasted space is a big deal, we could pick a prime number that's slightly _less_ than a power of two...

Revision 1.27 / (download) - annotate - [select for diffs], Thu Jul 2 11:39:56 1998 UTC (25 years, 8 months ago) by is
Branch: MAIN
Changes since 1.26: +17 -1 lines
Diff to previous 1.26 (colored)

The rewrite of if_arp.c to work with the hashed interface address lists
(1.44) missed a test for the right interface, making some machines answer
to some bogus arp requests (like for WHO-HAS 127.0.0.1).

The quick patch in 1.46-1.47 does not work for so-called "unnumbered"
interfaces, that is, (point-to-point) interfaces that share their local
address with another (e.g., the Ethernet) interface.

We add a macro to in_var.h, to step (in the current implementation) through
the hash chain and fine more entries with the same address, and use that
in if_arp.c to find one which belongs to our interface.

Revision 1.26 / (download) - annotate - [select for diffs], Mon Jun 1 00:50:07 1998 UTC (25 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)

Eek, we were wasting almost half of the in_ifaddr hash space by modulo'ing
with IN_IFADDR_HASH_SIZE.  Instead, AND with the hash mask computed by
hashinit().

Revision 1.25 / (download) - annotate - [select for diffs], Fri May 29 15:34:25 1998 UTC (25 years, 9 months ago) by matt
Branch: MAIN
Changes since 1.24: +3 -2 lines
Diff to previous 1.24 (colored)

Change arp so its console log messages print out IP addresses in
dotted quad format instead of hex.

Revision 1.24 / (download) - annotate - [select for diffs], Mon May 4 19:24:53 1998 UTC (25 years, 10 months ago) by matt
Branch: MAIN
Changes since 1.23: +1 -4 lines
Diff to previous 1.23 (colored)

Default IP flow to being enabled.  Add a sysctl to control the maximum
number of flows (net.inet.ip.maxflows).  If set to 0, will disable fast
path forwarding.

Revision 1.23 / (download) - annotate - [select for diffs], Wed Apr 29 21:37:54 1998 UTC (25 years, 10 months ago) by matt
Branch: MAIN
Changes since 1.22: +5 -1 lines
Diff to previous 1.22 (colored)

Add support for "fast" forwarding.  Add hooks in if_ethersubr.c and
if_fddisubr.c to fastpath IP forwarding.  If ip_forward successfully
forwards a packet, it will create a cache (ipflow) entry.  ether_input
and fddi_input will first call ipflow_fastforward with the received
packet and if the packet passes enough tests, it will be forwarded (the
ttl is decremented and the cksum is adjusted incrementally).

Revision 1.22 / (download) - annotate - [select for diffs], Sun Feb 15 18:24:26 1998 UTC (26 years ago) by tls
Branch: MAIN
Changes since 1.21: +38 -1 lines
Diff to previous 1.21 (colored)

Add correct copyright notice for IP address hash change.  This code is donated to TNF by the original copyright holder, Panix.

Revision 1.21 / (download) - annotate - [select for diffs], Fri Feb 13 18:21:42 1998 UTC (26 years ago) by tls
Branch: MAIN
Changes since 1.20: +40 -13 lines
Diff to previous 1.20 (colored)

Change list of interface IP addresses to a hash.  Improves performance on hosts with a large number of IP addresses significantly.

Revision 1.20 / (download) - annotate - [select for diffs], Tue Feb 10 01:26:42 1998 UTC (26 years, 1 month ago) by perry
Branch: MAIN
Changes since 1.19: +6 -1 lines
Diff to previous 1.19 (colored)

add/cleanup multiple inclusion protection.

Revision 1.19 / (download) - annotate - [select for diffs], Mon Jan 5 10:31:56 1998 UTC (26 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

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

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

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

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

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

Revision 1.18 / (download) - annotate - [select for diffs], Wed Jul 23 21:26:47 1997 UTC (26 years, 7 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, marc-pcmcia-bp, marc-pcmcia-base, marc-pcmcia
Branch point for: netbsd-1-3
Changes since 1.17: +2 -1 lines
Diff to previous 1.17 (colored)

Pull SYN_cache_branch down into the main line.

Revision 1.17.8.1 / (download) - annotate - [select for diffs], Wed May 14 17:03:03 1997 UTC (26 years, 9 months ago) by mellon
Branch: SYN_cache_branch
Changes since 1.17: +2 -1 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

Add prototype for in_setmaxmtu()

Revision 1.16.4.1 / (download) - annotate - [select for diffs], Wed Dec 11 04:01:04 1996 UTC (27 years, 3 months ago) by mycroft
Branch: netbsd-1-2
CVS Tags: netbsd-1-2-PATCH001
Changes since 1.16: +3 -2 lines
Diff to previous 1.16 (colored) next main 1.17 (colored)

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

Revision 1.17 / (download) - annotate - [select for diffs], Wed May 22 13:55:28 1996 UTC (27 years, 9 months ago) by mycroft
Branch: MAIN
CVS Tags: thorpej-setroot, mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp, bouyer-scsipi, SYN_cache_cur_base
Branch point for: SYN_cache_branch
Changes since 1.16: +3 -2 lines
Diff to previous 1.16 (colored)

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

Revision 1.16 / (download) - annotate - [select for diffs], Tue Feb 13 23:42:15 1996 UTC (28 years ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-BETA
Branch point for: netbsd-1-2
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

netinet prototypes

Revision 1.15 / (download) - annotate - [select for diffs], Mon Jun 12 00:47:37 1995 UTC (28 years, 9 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.14: +19 -16 lines
Diff to previous 1.14 (colored)

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

Revision 1.14 / (download) - annotate - [select for diffs], Sun Jun 4 05:58:23 1995 UTC (28 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.13: +4 -4 lines
Diff to previous 1.13 (colored)

Don't cast things unnecessarily.

Revision 1.13 / (download) - annotate - [select for diffs], Thu Jun 1 21:36:16 1995 UTC (28 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.12: +1 -4 lines
Diff to previous 1.12 (colored)

Avoid byte-swapping IP addresses at run time.

Revision 1.12 / (download) - annotate - [select for diffs], Wed May 31 06:08:29 1995 UTC (28 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.11: +13 -1 lines
Diff to previous 1.11 (colored)

Implement IGMP v2.  Based on the Multicast 3.5 distribution.

Revision 1.11 / (download) - annotate - [select for diffs], Thu Apr 13 06:30:32 1995 UTC (28 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.10: +7 -7 lines
Diff to previous 1.10 (colored)

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

Revision 1.10 / (download) - annotate - [select for diffs], Wed Mar 29 22:09:30 1995 UTC (28 years, 11 months ago) by briggs
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

KERNEL -> _KERNEL

Revision 1.9 / (download) - annotate - [select for diffs], Sun Mar 26 20:32:27 1995 UTC (28 years, 11 months ago) by jtc
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

KERNEL -> _KERNEL

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

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

Revision 1.7 / (download) - annotate - [select for diffs], Fri May 13 06:06:14 1994 UTC (29 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.6: +24 -23 lines
Diff to previous 1.6 (colored)

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

Revision 1.6 / (download) - annotate - [select for diffs], Sun Jan 9 01:06:11 1994 UTC (30 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.5: +3 -2 lines
Diff to previous 1.5 (colored)

Prototype the rest.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Jan 8 21:21:43 1994 UTC (30 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.4: +10 -10 lines
Diff to previous 1.4 (colored)

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

Revision 1.4 / (download) - annotate - [select for diffs], Wed Dec 8 23:48:05 1993 UTC (30 years, 3 months ago) by hpeyerl
Branch: MAIN
Changes since 1.3: +118 -1 lines
Diff to previous 1.3 (colored)

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

Revision 1.3 / (download) - annotate - [select for diffs], Thu May 20 03:50:13 1993 UTC (30 years, 9 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-0-9-patch-001, netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9, magnum-base, magnum
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

more rcsid additions and file header cleanups

Revision 1.2 / (download) - annotate - [select for diffs], Mon Apr 19 03:48:30 1993 UTC (30 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.1: +5 -0 lines
Diff to previous 1.1 (colored)

Add consistent multiple-inclusion protection.

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

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (30 years, 11 months ago) by cgd
Branch: MAIN

Initial revision

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




CVSweb <webmaster@jp.NetBSD.org>