| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Have sys/net/route.c:rtrequest1(), which takes ``rt_addrinfo *''
as the argument. Pass rt_addrinfo all the way down to rtrequest1
and ifa->ifa_rtrequest. 3rd argument of ifa->ifa_rtrequest is now
``rt_addrinfo *'' instead of ``sockaddr *'' (almost noone is
using it anyways).
Benefit: the following command now works. Previously we needed
two route(8) invocations, "add" then "change".
# route add -inet6 default ::1 -ifp gif0
Remove unsafe typecast in rtrequest(), from ``rtentry *'' to
``sockaddr *''. It was introduced by 4.3BSD-Reno and never
corrected.
Obtained from: BSD/OS, NetBSD
MFC after: 1 month
PR: kern/28360
Notes:
svn path=/head/; revision=85074
|
| |
|
|
|
|
|
|
|
|
| |
Reviewed by: jdp
Approved by: jdp
Obtained from: NetBSD
MFC after: 6 weeks
Notes:
svn path=/head/; revision=84931
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
a single kern.security.seeotheruids_permitted, describes as:
"Unprivileged processes may see subjects/objects with different real uid"
NOTE: kern.ps_showallprocs exists in -STABLE, and therefore there is
an API change. kern.ipc.showallsockets does not.
- Check kern.security.seeotheruids_permitted in cr_cansee().
- Replace visibility calls to socheckuid() with cr_cansee() (retain
the change to socheckuid() in ipfw, where it is used for rule-matching).
- Remove prison_unpcb() and make use of cr_cansee() against the UNIX
domain socket credential instead of comparing root vnodes for the
UDS and the process. This allows multiple jails to share the same
chroot() and not see each others UNIX domain sockets.
- Remove unused socheckproc().
Now that cr_cansee() is used universally for socket visibility, a variety
of policies are more consistently enforced, including uid-based
restrictions and jail-based restrictions. This also better-supports
the introduction of additional MAC models.
Reviewed by: ps, billf
Obtained from: TrustedBSD Project
Notes:
svn path=/head/; revision=84736
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
to send all its data, especially when the data is less than one MSS.
This fixes an issue where the stack was delaying the sending
of data, eventhough there was enough window to send all the data and
the sending of data was emptying the socket buffer.
Problem found by Yoshihiro Tsuchiya (tsuchiya@flab.fujitsu.co.jp)
Submitted by: Jayanth Vijayaraghavan
Notes:
svn path=/head/; revision=84564
|
| |
|
|
|
|
|
|
|
|
|
|
| |
kern.ipc.showallsockets is set to 0.
Submitted by: billf (with modifications by me)
Inspired by: Dave McKay (aka pm aka Packet Magnet)
Reviewed by: peter
MFC after: 2 weeks
Notes:
svn path=/head/; revision=84527
|
| |
|
|
|
|
|
| |
Submitted by: billf
Notes:
svn path=/head/; revision=84516
|
| |
|
|
|
|
|
|
|
| |
the correct hash bucket for the entry.
Submitted by: iedowse (with some munging by me)
Notes:
svn path=/head/; revision=84317
|
| |
|
|
|
|
|
| |
Reported by: des
Notes:
svn path=/head/; revision=84315
|
| |
|
|
| |
Notes:
svn path=/head/; revision=84306
|
| |
|
|
| |
Notes:
svn path=/head/; revision=84195
|
| |
|
|
|
|
|
| |
Spotted by: ru
Notes:
svn path=/head/; revision=84137
|
| |
|
|
|
|
|
|
|
| |
walking the entire list of IP addresses.
Pointed out by: bfumerola
Notes:
svn path=/head/; revision=84109
|
| |
|
|
|
|
|
|
| |
this in place of the in_ifaddr list when appropriate. This improves
performance on hosts which have a large number of IP aliases.
Notes:
svn path=/head/; revision=84102
|
| |
|
|
|
|
|
| |
Remove local definitions.
Notes:
svn path=/head/; revision=84101
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
+ implement "limit" rules, which permit to limit the number of sessions
between certain host pairs (according to masks). These are a special
type of stateful rules, which might be of interest in some cases.
See the ipfw manpage for details.
+ merge the list pointers and ipfw rule descriptors in the kernel, so
the code is smaller, faster and more readable. This patch basically
consists in replacing "foo->rule->bar" with "rule->bar" all over
the place.
I have been willing to do this for ages!
MFC after: 1 week
Notes:
svn path=/head/; revision=84058
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
not referenced in Stevens, and does not compile with g++.
There is an equivalent structure, struct ipoption in ip_var.h
which is actually used in various parts of the kernel, and also referenced
in Stevens.
Bill Fenner also says:
... if you want the trivia, struct ip_opts was introduced
in in.h SCCS revision 7.9, on 6/28/1990, by Mike Karels.
struct ipoption was introduced in ip_var.h SCCS revision 6.5,
on 9/16/1985, by... Mike Karels.
MFC-after: 3 days
Notes:
svn path=/head/; revision=84023
|
| |
|
|
|
|
|
| |
Submitted by: LINT
Notes:
svn path=/head/; revision=83994
|
| |
|
|
|
|
|
|
|
|
| |
securelevel_gt() to check the securelevel, rather than direct access
to the securelevel variable.
Obtained from: TrustedBSD Project
Notes:
svn path=/head/; revision=83970
|
| |
|
|
| |
Notes:
svn path=/head/; revision=83934
|
| |
|
|
|
|
|
|
|
| |
remove a useless assignment and move a comment.
Submitted by: Thomas Moestl
Notes:
svn path=/head/; revision=83873
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
NAT in extended passive mode if the server's public IP address was
different from the main NAT address. This caused a wrong aliasing
link to be created that did not route the incoming packets back to
the original IP address of the server.
natd -v -n pub0 -redirect_address localFTP publicFTP
Note that even if localFTP == publicFTP, one still needs to supply
the -redirect_address directive. It is needed as a helper because
extended passive mode's 229 reply does not contain the IP address.
MFC after: 1 week
Notes:
svn path=/head/; revision=83771
|
| |
|
|
|
|
|
|
|
| |
in the face of a rename of ucred to cred, and possibly generally.
Obtained from: TrustedBSD Project
Notes:
svn path=/head/; revision=83742
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
and speed. No new functionality added (yet) apart from a bugfix.
MFC will occur in due time and probably in stages.
BUGFIX: fix a problem in old code which prevented reallocation of
the hash table for dynamic rules (there is a PR on this).
OTHER CHANGES: minor changes to the internal struct for static and dynamic rules.
Requires rebuild of ipfw binary.
Add comments to show how data structures are linked together.
(It probably makes no sense to keep the chain pointers separate
from actual rule descriptors. They will be hopefully merged soon.
keep a (sysctl-readable) counter for the number of static rules,
to speed up IP_FW_GET operations
initial support for a "grace time" for expired connections, so we
can set timeouts for closing connections to much shorter times.
merge zero_entry() and resetlog_entry(), they use basically the
same code.
clean up and reduce replication of code for removing rules,
both for readability and code size.
introduce a separate lifetime for dynamic UDP rules.
fix a problem in old code which prevented reallocation of
the hash table for dynamic rules (PR ...)
restructure dynamic rule descriptors
introduce some local variables to avoid multiple dereferencing of
pointer chains (reduces code size and hopefully increases speed).
Notes:
svn path=/head/; revision=83725
|
| |
|
|
|
|
|
| |
Reported by: bde
Notes:
svn path=/head/; revision=83708
|
| |
|
|
|
|
|
| |
encapsulation support.
Notes:
svn path=/head/; revision=83615
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Note ALL MODULES MUST BE RECOMPILED
make the kernel aware that there are smaller units of scheduling than the
process. (but only allow one thread per process at this time).
This is functionally equivalent to teh previousl -current except
that there is a thread associated with each process.
Sorry john! (your next MFC will be a doosie!)
Reviewed by: peter@freebsd.org, dillon@freebsd.org
X-MFC after: ha ha ha ha
Notes:
svn path=/head/; revision=83366
|
| |
|
|
|
|
|
|
|
| |
the 2nd previous KAME patch.
Submitted by: SUMIKAWA Munechika <sumikawa@ebina.hitachi.co.jp>
Notes:
svn path=/head/; revision=83188
|
| |
|
|
|
|
|
|
|
|
| |
IPV4 code. For now they will still have some in the developing stuff (IPv6)
Submitted by: Keiichi SHIMA / <keiichi@iij.ad.jp>
Obtained from: KAME
Notes:
svn path=/head/; revision=83187
|
| |
|
|
|
|
|
|
|
|
| |
ifnet_addrs[i - 1] -> ifaddr_byindex(i)
ifindex2ifnet[i] -> ifnet_byindex(i)
This is intended to ease the conversion to SMPng.
Notes:
svn path=/head/; revision=83130
|
| |
|
|
|
|
|
| |
Pointed out by: ru
Notes:
svn path=/head/; revision=82966
|
| |
|
|
|
|
|
| |
Submitted by: Stephen Hurd <deuce@lordlegacy.org>
Notes:
svn path=/head/; revision=82893
|
| |
|
|
|
|
|
|
| |
call ip_input directly but take the offset off the
packet first if it's an IPV4 packet encapsulated.
Notes:
svn path=/head/; revision=82892
|
| |
|
|
|
|
|
|
| |
when decoding encapsulated ipv4 packets.
(allows line to compile again)
Notes:
svn path=/head/; revision=82891
|
| |
|
|
| |
Notes:
svn path=/head/; revision=82890
|
| |
|
|
|
|
|
|
|
| |
to make ip use the standard protosw structure again.
Obtained from: Well, KAME I guess.
Notes:
svn path=/head/; revision=82884
|
| |
|
|
|
|
|
|
|
|
|
|
| |
new data is acknowledged, reset the dupacks to 0.
The problem was spotted when a connection had its send buffer full
because the congestion window was only 1 MSS and was not being incremented
because dupacks was not reset to 0.
Obtained from: Yahoo!
Notes:
svn path=/head/; revision=82529
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
to the application as a RST would, this way we're compatible with the most
applications.
MFC candidate.
Submitted by: Scott Renfro <scott@renfro.org>
Reviewed by: Mike Silbersack <silby@silby.com>
Notes:
svn path=/head/; revision=82445
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
about rules and dynamic rules. it later fills this buffer with these
rules.
it also takes the opporunity to compare the expiration of the dynamic
rules with the current time and either marks them for deletion or simply
charges the countdown.
unfortunatly it does this all (the sizing, the buffer copying, and the
expiration GC) with no spl protection whatsoever. it was possible for
the dynamic rule(s) to be ripped out from under the request before it
had completed, resulting in corrupt memory dereferencing.
Reviewed by: ps
MFC before: 4.4-RELEASE, hopefully.
Notes:
svn path=/head/; revision=82345
|
| |
|
|
|
|
|
|
| |
PR: 29970
Submitted by: Joseph Mallett <jmallett@xMach.org>
Notes:
svn path=/head/; revision=82238
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
In order to ensure security and functionality, RFC 1948 style
initial sequence number generation has been implemented. Barring
any major crypographic breakthroughs, this algorithm should be
unbreakable. In addition, the problems with TIME_WAIT recycling
which affect our currently used algorithm are not present.
Reviewed by: jesper
Notes:
svn path=/head/; revision=82122
|
| |
|
|
|
|
|
|
| |
Submitted by: Joe Clarke <marcus@marcuscom.com>
MFC after: 2 weeks
Notes:
svn path=/head/; revision=82069
|
| |
|
|
|
|
|
| |
Submitted by: Makoto MATSUSHITA <matusita@jp.FreeBSD.org>
Notes:
svn path=/head/; revision=82050
|
| |
|
|
|
|
|
| |
Previously approved by: Charles Mott <cmott@scientech.com>
Notes:
svn path=/head/; revision=82001
|
| |
|
|
|
|
|
| |
MFC after: 2 weeks
Notes:
svn path=/head/; revision=81962
|
| |
|
|
|
|
|
|
|
|
|
| |
cdevsw entries have been for a long time.
Discover that we now have two version sof the same structure.
I will shoot one of them shortly when I figure out why someone thinks
they need it. (And I can prove they don't)
(netinet/ipprotosw.h should GO AWAY)
Notes:
svn path=/head/; revision=81501
|
| |
|
|
|
|
|
|
|
|
| |
Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text.
Not only this slows down the mdoc(7) processing significantly, but it also
has an undesired (in this case) effect of disabling hyphenation within the
entire enclosed block.
Notes:
svn path=/head/; revision=81251
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
removing network card, and kill aplication.
imo_membership[].inm_ifp refer interface pointer
after removing interface.
When kill aplication, release socket,and imo_membership.
imo_membership use already not exist interface pointer.
Then, kernel panic.
PR: 29345
Submitted by: Inoue Yuichi <inoue@nd.net.fujitsu.co.jp>
Obtained from: KAME
MFC after: 3 days
Notes:
svn path=/head/; revision=81127
|
| |
|
|
|
|
|
|
|
| |
Noticed by: fenner
Submitted by: iedowse
Not committed to current by: iedowse ;-)
Notes:
svn path=/head/; revision=81111
|
| |
|
|
| |
Notes:
svn path=/head/; revision=80429
|
| |
|
|
| |
Notes:
svn path=/head/; revision=80428
|