The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.26 / (download) - annotate - [select for diffs], Sat Oct 15 21:53:21 2022 UTC (17 months, 4 weeks ago) by andvar
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, 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.25: +3 -3 lines
Diff to previous 1.25 (colored)

fix various typos in documentation and comments.
mainly in words functionality, functional, function.

Revision 1.25 / (download) - annotate - [select for diffs], Sat May 28 22:16:44 2022 UTC (22 months, 2 weeks ago) by andvar
Branch: MAIN
CVS Tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)

fix various typos in comments.

Revision 1.24 / (download) - annotate - [select for diffs], Tue May 24 20:50:20 2022 UTC (22 months, 3 weeks ago) by andvar
Branch: MAIN
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored)

fix various typos in comment, documentation and log messages.

Revision 1.23 / (download) - annotate - [select for diffs], Fri Dec 10 20:36:04 2021 UTC (2 years, 4 months ago) by andvar
Branch: MAIN
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored)

s/occured/occurred/ in comments, log messages and man pages.

Revision 1.22 / (download) - annotate - [select for diffs], Sun Sep 19 10:34:10 2021 UTC (2 years, 6 months ago) by andvar
Branch: MAIN
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

fix various typos in comments, messages and documentation.

Revision 1.21 / (download) - annotate - [select for diffs], Thu Apr 30 03:30:10 2020 UTC (3 years, 11 months ago) by riastradh
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-futex, 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
Changes since 1.20: +2 -3 lines
Diff to previous 1.20 (colored)

Omit needless #include <sys/rnd.h>.

Revision 1.16.4.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:58 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.16.4.1: +3 -26 lines
Diff to previous 1.16.4.1 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored)

Merge changes from current as of 20200406

Revision 1.19.2.1 / (download) - annotate - [select for diffs], Sat Jan 25 22:38:52 2020 UTC (4 years, 2 months ago) by ad
Branch: ad-namecache
Changes since 1.19: +2 -25 lines
Diff to previous 1.19 (colored) next main 1.20 (colored)

Sync with head.

Revision 1.20 / (download) - annotate - [select for diffs], Sun Jan 19 20:51:13 2020 UTC (4 years, 2 months ago) by riastradh
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2
Changes since 1.19: +2 -25 lines
Diff to previous 1.19 (colored)

Replace kooky sctp random number generation by cprng_strong32().

Revision 1.19 / (download) - annotate - [select for diffs], Thu Dec 26 04:44:10 2019 UTC (4 years, 3 months ago) by msaitoh
Branch: MAIN
CVS Tags: ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

 Fix typo in comment.

Revision 1.16.4.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:47 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.16: +5 -5 lines
Diff to previous 1.16 (colored)

Sync with HEAD

Revision 1.16.2.2 / (download) - annotate - [select for diffs], Wed Dec 26 14:02:05 2018 UTC (5 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.16.2.1: +4 -4 lines
Diff to previous 1.16.2.1 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored)

Sync with HEAD, resolve a few conflicts

Revision 1.18 / (download) - annotate - [select for diffs], Tue Dec 11 14:38:45 2018 UTC (5 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2
Changes since 1.17: +4 -4 lines
Diff to previous 1.17 (colored)

PR/53775: Havard Eidnes: bind(2) may inaccurately return EADDRNOTAVAIL,
it should return EADDRINUSE.

Revision 1.16.2.1 / (download) - annotate - [select for diffs], Thu Sep 6 06:56:44 2018 UTC (5 years, 7 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.17 / (download) - annotate - [select for diffs], Mon Sep 3 16:29:36 2018 UTC (5 years, 7 months ago) by riastradh
Branch: MAIN
CVS Tags: pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int.  The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER!  Some subsystems have

	#define min(a, b)	((a) < (b) ? (a) : (b))
	#define max(a, b)	((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX.  Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate.  But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all.  (Who knows, maybe in some cases integer
truncation is actually intended!)

Revision 1.16 / (download) - annotate - [select for diffs], Tue Feb 27 14:44:10 2018 UTC (6 years, 1 month ago) by maxv
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-base, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

Dedup: merge

	ipsec4_get_policy and ipsec6_get_policy
	ipsec4_delete_pcbpolicy and ipsec6_delete_pcbpolicy

The already-existing ipsec_get_policy() function is inlined in the new
one.

Revision 1.15.2.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:39:04 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.15.2.1: +4770 -0 lines
Diff to previous 1.15.2.1 (colored) to branchpoint 1.15 (colored) next main 1.16 (colored)

update from HEAD

Revision 1.15.2.1, Tue Oct 17 19:23:42 2017 UTC (6 years, 5 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.15: +0 -4770 lines
FILE REMOVED

file sctp_pcb.c was added on branch tls-maxphys on 2017-12-03 11:39:04 +0000

Revision 1.15 / (download) - annotate - [select for diffs], Tue Oct 17 19:23:42 2017 UTC (6 years, 5 months ago) by rjs
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202
Branch point for: tls-maxphys
Changes since 1.14: +30 -16 lines
Diff to previous 1.14 (colored)

Make SCTP work when IPSEC is also defined.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Oct 17 19:18:30 2017 UTC (6 years, 5 months ago) by rjs
Branch: MAIN
Changes since 1.13: +5 -3 lines
Diff to previous 1.13 (colored)

Move call to sofree() to end of sctp_inpcb_free() and re-aquire
softnet_lock.

Logic copied from in_pcb.c.

Revision 1.13 / (download) - annotate - [select for diffs], Tue Oct 17 15:53:01 2017 UTC (6 years, 5 months ago) by rjs
Branch: MAIN
Changes since 1.12: +2 -5 lines
Diff to previous 1.12 (colored)

Remove duplicate assignment, comment doesn't match it anyway.

Revision 1.12 / (download) - annotate - [select for diffs], Tue Oct 17 15:49:00 2017 UTC (6 years, 5 months ago) by rjs
Branch: MAIN
Changes since 1.11: +6 -76 lines
Diff to previous 1.11 (colored)

Remove some foreign conditional code. NFC intended.

Revision 1.11 / (download) - annotate - [select for diffs], Tue Oct 17 15:02:31 2017 UTC (6 years, 5 months ago) by rjs
Branch: MAIN
Changes since 1.10: +8 -5 lines
Diff to previous 1.10 (colored)

Wrap pcb list check with #ifdef DEBUG.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Oct 17 14:53:23 2017 UTC (6 years, 5 months ago) by rjs
Branch: MAIN
Changes since 1.9: +2 -11 lines
Diff to previous 1.9 (colored)

Remove function prototype that is no longer required. NFC

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

Sync with HEAD

Revision 1.9 / (download) - annotate - [select for diffs], Wed Jun 28 13:22:28 2017 UTC (6 years, 9 months ago) by rjs
Branch: MAIN
CVS Tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

Whitespace.

Revision 1.1.2.6 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:59 2017 UTC (7 years, 2 months ago) by skrll
Branch: nick-nhusb
Changes since 1.1.2.5: +10 -3 lines
Diff to previous 1.1.2.5 (colored) to branchpoint 1.1 (colored)

Sync with HEAD

Revision 1.7.2.1 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:51 2017 UTC (7 years, 3 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.7: +10 -3 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

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

Revision 1.8 / (download) - annotate - [select for diffs], Thu Dec 8 05:16:33 2016 UTC (7 years, 4 months ago) by ozaki-r
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, nick-nhusb-base-20170204, 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, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Changes since 1.7: +10 -3 lines
Diff to previous 1.7 (colored)

Add rtcache_unref to release points of rtentry stemming from rtcache

In the MP-safe world, a rtentry stemming from a rtcache can be freed at any
points. So we need to protect rtentries somehow say by reference couting or
passive references. Regardless of the method, we need to call some release
function of a rtentry after using it.

The change adds a new function rtcache_unref to release a rtentry. At this
point, this function does nothing because for now we don't add a reference
to a rtentry when we get one from a rtcache. We will add something useful
in a further commit.

This change is a part of changes for MP-safe routing table. It is separated
to avoid one big change that makes difficult to debug by bisecting.

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

Sync with HEAD

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jul 7 09:32:02 2016 UTC (7 years, 9 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

Switch the address list of intefaces to pslist(9)

As usual, we leave the old list to avoid breaking kvm(3) users.

Revision 1.1.2.4 / (download) - annotate - [select for diffs], Sun May 29 08:44:38 2016 UTC (7 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.1.2.3: +14 -5 lines
Diff to previous 1.1.2.3 (colored) to branchpoint 1.1 (colored)

Sync with HEAD

Revision 1.6 / (download) - annotate - [select for diffs], Sun May 22 22:18:41 2016 UTC (7 years, 10 months ago) by rjs
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529
Changes since 1.5: +4 -2 lines
Diff to previous 1.5 (colored)

Remove rtcache reference to route before freeing the containing struct.

Revision 1.5 / (download) - annotate - [select for diffs], Thu May 12 02:24:17 2016 UTC (7 years, 11 months ago) by ozaki-r
Branch: MAIN
Changes since 1.4: +10 -3 lines
Diff to previous 1.4 (colored)

Protect ifnet list with psz and psref

The change ensures that ifnet objects in the ifnet list aren't freed during
list iterations by using pserialize(9) and psref(9).

Note that the change adds a pslist(9) for ifnet but doesn't remove the
original ifnet list (ifnet_list) to avoid breaking kvm(3) users. We
shouldn't use the original list in the kernel anymore.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Apr 25 21:21:02 2016 UTC (7 years, 11 months ago) by rjs
Branch: MAIN
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored)

Fix build when IPSEC enabled.

Revision 1.1.2.3 / (download) - annotate - [select for diffs], Fri Apr 22 15:44:17 2016 UTC (7 years, 11 months ago) by skrll
Branch: nick-nhusb
Changes since 1.1.2.2: +4 -5 lines
Diff to previous 1.1.2.2 (colored) to branchpoint 1.1 (colored)

Sync with HEAD

Revision 1.3 / (download) - annotate - [select for diffs], Thu Apr 14 18:36:56 2016 UTC (8 years ago) by rjs
Branch: MAIN
CVS Tags: nick-nhusb-base-20160422
Changes since 1.2: +2 -3 lines
Diff to previous 1.2 (colored)

Remove stray debug printf().

Revision 1.2 / (download) - annotate - [select for diffs], Sun Apr 3 09:57:40 2016 UTC (8 years ago) by mlelstv
Branch: MAIN
Changes since 1.1: +4 -4 lines
Diff to previous 1.1 (colored)

Replace generic queue macros with IFNET/IFADDR macros.

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Sun Dec 27 12:10:07 2015 UTC (8 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.1.2.1: +4818 -0 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored)

Sync with HEAD (as of 26th Dec)

Revision 1.1.2.1, Tue Oct 13 21:28:35 2015 UTC (8 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.1: +0 -4818 lines
FILE REMOVED

file sctp_pcb.c was added on branch nick-nhusb on 2015-12-27 12:10:07 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Tue Oct 13 21:28:35 2015 UTC (8 years, 6 months ago) by rjs
Branch: MAIN
CVS Tags: nick-nhusb-base-20160319, nick-nhusb-base-20151226
Branch point for: nick-nhusb

Add core networking support for SCTP.

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>