Up to [cvs.NetBSD.org] / src / sys / kern
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: netbsd-1-4-RELEASE
Revision 1.44 / (download) - annotate - [select for diffs], Tue Mar 23 10:45:37 1999 UTC (14 years, 1 month ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-4-base,
netbsd-1-4-RELEASE
Branch point for: netbsd-1-4,
kame,
chs-ubc2
Changes since 1.43: +3 -1
lines
Diff to previous 1.43 (colored)
Ensure that you can only bind a more specific address when it is done by the
same uid or by root.
This code is from FreeBSD. (Whilst it was originally obtained from OpenBSD,
FreeBSD fixed it to work with multicast. To quote the commit message:
- Don't bother checking for conflicting sockets if we're binding to a
multicast address.
- Don't return an error if we're binding to INADDR_ANY, the conflicting
socket is bound to INADDR_ANY, and the conflicting socket has
SO_REUSEPORT set.
)