The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.16 / (download) - annotate - [select for diffs], Fri Apr 8 10:27:04 2022 UTC (9 months, 3 weeks ago) by andvar
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

s/postion/position/

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

fix various typos in comments, messages and documentation.

Revision 1.9.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:47 2019 UTC (3 years, 7 months ago) by christos
Branch: phil-wifi
Changes since 1.9: +8 -11 lines
Diff to previous 1.9 (colored) next main 1.10 (colored)

Sync with HEAD

Revision 1.14 / (download) - annotate - [select for diffs], Tue May 28 08:59:35 2019 UTC (3 years, 8 months ago) by msaitoh
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, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, 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, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, 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
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

s/recieve/receive/

Revision 1.13 / (download) - annotate - [select for diffs], Sun Feb 24 21:07:59 2019 UTC (3 years, 11 months ago) by kamil
Branch: MAIN
CVS Tags: isaki-audio2-base, isaki-audio2
Changes since 1.12: +3 -2 lines
Diff to previous 1.12 (colored)

Add missing FALLTHROUGH in sctp_input.c

Requested by GCC NetBSD/i386 kUBSan KCOC build.

Revision 1.12 / (download) - annotate - [select for diffs], Tue Feb 12 14:40:38 2019 UTC (3 years, 11 months ago) by rjs
Branch: MAIN
Changes since 1.11: +3 -2 lines
Diff to previous 1.11 (colored)

Add some fallthrough annotations.

Revision 1.8.2.3 / (download) - annotate - [select for diffs], Sun Sep 30 01:45:56 2018 UTC (4 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.8.2.2: +4 -9 lines
Diff to previous 1.8.2.2 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored)

Ssync with HEAD

Revision 1.11 / (download) - annotate - [select for diffs], Fri Sep 14 05:09:51 2018 UTC (4 years, 4 months ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930
Changes since 1.10: +4 -9 lines
Diff to previous 1.10 (colored)

Use non-variadic function pointer in protosw::pr_input.

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

Sync with HEAD

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

Revision 1.10 / (download) - annotate - [select for diffs], Mon Sep 3 16:29:36 2018 UTC (4 years, 5 months ago) by riastradh
Branch: MAIN
CVS Tags: pgoyette-compat-0906
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (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.8.2.1 / (download) - annotate - [select for diffs], Wed May 2 07:20:23 2018 UTC (4 years, 9 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.8: +2 -4 lines
Diff to previous 1.8 (colored)

Synch with HEAD

Revision 1.9 / (download) - annotate - [select for diffs], Tue May 1 07:21:39 2018 UTC (4 years, 9 months ago) by maxv
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502
Branch point for: phil-wifi
Changes since 1.8: +2 -4 lines
Diff to previous 1.8 (colored)

Remove now unused net_osdep.h includes, the other BSDs did the same.

Revision 1.8 / (download) - annotate - [select for diffs], Mon Feb 26 09:04:29 2018 UTC (4 years, 11 months ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-compat-base, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

Dedup: merge ipsec4_in_reject and ipsec6_in_reject into ipsec_in_reject.
While here fix misleading comment.

ok ozaki-r@

Revision 1.7.4.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:39:04 2017 UTC (5 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.7.4.1: +4302 -0 lines
Diff to previous 1.7.4.1 (colored) to branchpoint 1.7 (colored) next main 1.8 (colored)

update from HEAD

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

Sync with HEAD

Revision 1.7.4.1, Tue Jun 27 13:27:54 2017 UTC (5 years, 7 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.7: +0 -4302 lines
FILE REMOVED

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

Revision 1.7 / (download) - annotate - [select for diffs], Tue Jun 27 13:27:54 2017 UTC (5 years, 7 months ago) by rjs
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825
Branch point for: tls-maxphys
Changes since 1.6: +16 -15 lines
Diff to previous 1.6 (colored)

Check outgoing cookie size before accessing any contents.

Spotted in FreeBSD by maya.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Jun 23 15:13:21 2017 UTC (5 years, 7 months ago) by rjs
Branch: MAIN
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

Make arguments match debug message.

Revision 1.3.2.1 / (download) - annotate - [select for diffs], Wed Apr 26 02:53:29 2017 UTC (5 years, 9 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

Sync with HEAD

Revision 1.3.4.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:54:06 2017 UTC (5 years, 9 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

Sync with HEAD

Revision 1.5 / (download) - annotate - [select for diffs], Thu Apr 20 09:19:19 2017 UTC (5 years, 9 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, 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, bouyer-socketcan-base1
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

Fix build of kernel with SCTP

Revision 1.4 / (download) - annotate - [select for diffs], Thu Apr 20 08:46:07 2017 UTC (5 years, 9 months ago) by ozaki-r
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

Remove unnecessary NULL checks for inp_socket and in6p_socket

They cannot be NULL except for programming errors.

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

Sync with HEAD

Revision 1.3 / (download) - annotate - [select for diffs], Fri Jun 10 13:31:44 2016 UTC (6 years, 7 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base
Branch point for: pgoyette-localcount, bouyer-socketcan
Changes since 1.2: +5 -5 lines
Diff to previous 1.2 (colored)

Avoid storing a pointer of an interface in a mbuf

Having a pointer of an interface in a mbuf isn't safe if we remove big
kernel locks; an interface object (ifnet) can be destroyed anytime in any
packet processing and accessing such object via a pointer is racy. Instead
we have to get an object from the interface collection (ifindex2ifnet) via
an interface index (if_index) that is stored to a mbuf instead of an
pointer.

The change provides two APIs: m_{get,put}_rcvif_psref that use psref(9)
for sleep-able critical sections and m_{get,put}_rcvif that use
pserialize(9) for other critical sections. The change also adds another
API called m_get_rcvif_NOMPSAFE, that is NOT MP-safe and for transition
moratorium, i.e., it is intended to be used for places where are not
planned to be MP-ified soon.

The change adds some overhead due to psref to performance sensitive paths,
however the overhead is not serious, 2% down at worst.

Proposed on tech-kern and tech-net.

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

Sync with HEAD

Revision 1.2 / (download) - annotate - [select for diffs], Mon Apr 25 21:21:02 2016 UTC (6 years, 9 months ago) by rjs
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529
Changes since 1.1: +7 -6 lines
Diff to previous 1.1 (colored)

Fix build when IPSEC enabled.

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Sun Dec 27 12:10:07 2015 UTC (7 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.1.2.1: +4300 -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 (7 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.1: +0 -4300 lines
FILE REMOVED

file sctp_input.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 (7 years, 3 months ago) by rjs
Branch: MAIN
CVS Tags: nick-nhusb-base-20160422, 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>