#
dc5fd259 |
| 01-Feb-2010 |
Luigi Rizzo <luigi@FreeBSD.org> |
use u_char instead of u_int for short bitfields.
For our compiler the two constructs are completely equivalent, but some compilers (including MSC and tcc) use the base type for alignment, which in t
use u_char instead of u_int for short bitfields.
For our compiler the two constructs are completely equivalent, but some compilers (including MSC and tcc) use the base type for alignment, which in the cases touched here result in aligning the bitfields to 32 bit instead of the 8 bit that is meant here.
Note that almost all other headers where small bitfields are used have u_int8_t instead of u_int.
MFC after: 3 days
show more ...
|
Revision tags: release/8.0.0_cvs, release/8.0.0 |
|
#
7d4b968b |
| 17-Sep-2009 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Merge from head up to r188941 (last revision before the USB stack switch)
|
Revision tags: release/7.2.0_cvs, release/7.2.0 |
|
#
1829d5da |
| 12-Mar-2009 |
Warner Losh <imp@FreeBSD.org> |
Update the projects tree to a newer FreeBSD current.
|
#
d685b6ee |
| 13-Feb-2009 |
Luigi Rizzo <luigi@FreeBSD.org> |
Use uint32_t instead of n_long and n_time, and uint16_t instead of n_short. Add a note next to fields in network format.
The n_* types are not enough for compiler checks on endianness, and their use
Use uint32_t instead of n_long and n_time, and uint16_t instead of n_short. Add a note next to fields in network format.
The n_* types are not enough for compiler checks on endianness, and their use often requires an otherwise unnecessary #include <netinet/in_systm.h>
The typedef in in_systm.h are still there.
show more ...
|
Revision tags: release/7.1.0_cvs, release/7.1.0, release/6.4.0_cvs, release/6.4.0 |
|
#
d2035ffb |
| 26-Sep-2008 |
Ed Maste <emaste@FreeBSD.org> |
Move CTASSERT from header file to source file, per implementation note now in the CTASSERT man page.
Submitted by: Ryan Stone
|
Revision tags: release/7.0.0_cvs, release/7.0.0, release/6.3.0_cvs, release/6.3.0 |
|
#
bf37f5b0 |
| 19-Oct-2007 |
Rui Paulo <rpaulo@FreeBSD.org> |
Remove IPTOS_CE and IPTOS_ECT constants. They were defined in RFC 2481 but later obsoleted by RFC 3168. Discussed on freebsd-net with no objections.
Approved by: njl (mentor), rwatson
|
#
c59b9aa5 |
| 11-May-2007 |
Robert Watson <rwatson@FreeBSD.org> |
White space and style cleanup.
|
#
0befead1 |
| 12-Jan-2007 |
Warner Losh <imp@FreeBSD.org> |
Marking this as __packed was needed to get the alignment and offset of members right. However, it also said it was aligned(1), which meant that gcc generated really bad code. Mark this as aligned(4
Marking this as __packed was needed to get the alignment and offset of members right. However, it also said it was aligned(1), which meant that gcc generated really bad code. Mark this as aligned(4). This makes things a little faster on arm (a couple percent), but also saves about 30k on the size of the kernel for arm.
I talked about doing this with bde, but didn't check with him before the commit, so I'm hesitant say 'reviewed by: bde'.
show more ...
|
Revision tags: release/6.2.0_cvs, release/6.2.0, release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0, release/6.0.0_cvs, release/6.0.0, release/5.4.0_cvs, release/5.4.0, release/4.11.0_cvs, release/4.11.0 |
|
#
c398230b |
| 07-Jan-2005 |
Warner Losh <imp@FreeBSD.org> |
/* -> /*- for license, minor formatting changes
|
Revision tags: release/5.3.0_cvs, release/5.3.0, release/4.10.0_cvs, release/4.10.0 |
|
#
f36cfd49 |
| 07-Apr-2004 |
Warner Losh <imp@FreeBSD.org> |
Remove advertising clause from University of California Regent's license, per letter dated July 22, 1999 and email from Peter Wemm, Alan Cox and Robert Watson.
Approved by: core, peter, alc, rwatson
|
Revision tags: release/5.2.1_cvs, release/5.2.1 |
|
#
91179f79 |
| 16-Feb-2004 |
Bruce M Simpson <bms@FreeBSD.org> |
Spell types consistently throughout this file. Do not use the __packed attribute, as we are often #include'd from userland without <sys/cdefs.h> in front of us, and it is not strictly
Spell types consistently throughout this file. Do not use the __packed attribute, as we are often #include'd from userland without <sys/cdefs.h> in front of us, and it is not strictly necessary.
Noticed by: Sascha Blank
show more ...
|
#
1cfd4b53 |
| 11-Feb-2004 |
Bruce M Simpson <bms@FreeBSD.org> |
Initial import of RFC 2385 (TCP-MD5) digest support.
This is the first of two commits; bringing in the kernel support first. This can be enabled by compiling a kernel with options TCP_SIGNATURE and
Initial import of RFC 2385 (TCP-MD5) digest support.
This is the first of two commits; bringing in the kernel support first. This can be enabled by compiling a kernel with options TCP_SIGNATURE and FAST_IPSEC.
For the uninitiated, this is a TCP option which provides for a means of authenticating TCP sessions which came into being before IPSEC. It is still relevant today, however, as it is used by many commercial router vendors, particularly with BGP, and as such has become a requirement for interconnect at many major Internet points of presence.
Several parts of the TCP and IP headers, including the segment payload, are digested with MD5, including a shared secret. The PF_KEY interface is used to manage the secrets using security associations in the SADB.
There is a limitation here in that as there is no way to map a TCP flow per-port back to an SPI without polluting tcpcb or using the SPD; the code to do the latter is unstable at this time. Therefore this code only supports per-host keying granularity.
Whilst FAST_IPSEC is mutually exclusive with KAME IPSEC (and thus IPv6), TCP_SIGNATURE applies only to IPv4. For the vast majority of prospective users of this feature, this will not pose any problem.
This implementation is output-only; that is, the option is honoured when responding to a host initiating a TCP session, but no effort is made [yet] to authenticate inbound traffic. This is, however, sufficient to interwork with Cisco equipment.
Tested with a Cisco 2501 running IOS 12.0(27), and Quagga 0.96.4 with local patches. Patches for tcpdump to validate TCP-MD5 sessions are also available from me upon request.
Sponsored by: sentex.net
show more ...
|
Revision tags: release/5.2.0_cvs, release/5.2.0 |
|
#
59dfcba4 |
| 29-Oct-2003 |
Hajimu UMEMOTO <ume@FreeBSD.org> |
add ECN support in layer-3. - implement the tunnel egress rule in ip_ecn_egress() in ip_ecn.c. make ip{,6}_ecn_egress() return integer to tell the caller that this packet should be dropped. -
add ECN support in layer-3. - implement the tunnel egress rule in ip_ecn_egress() in ip_ecn.c. make ip{,6}_ecn_egress() return integer to tell the caller that this packet should be dropped. - handle ECN at fragment reassembly in ip_input.c and frag6.c.
Obtained from: KAME
show more ...
|
Revision tags: release/4.9.0_cvs, release/4.9.0, release/5.1.0_cvs, release/5.1.0, release/4.8.0_cvs, release/4.8.0 |
|
#
2c56e246 |
| 02-Apr-2003 |
Matthew N. Dodd <mdodd@FreeBSD.org> |
Back out support for RFC3514.
RFC3514 poses an unacceptale risk to compliant systems.
|
#
8faf6df9 |
| 02-Apr-2003 |
Matthew N. Dodd <mdodd@FreeBSD.org> |
Sync constant define with NetBSD.
Requested by: Tom Spindler <dogcow@babymeat.com>
|
#
09139a45 |
| 01-Apr-2003 |
Matthew N. Dodd <mdodd@FreeBSD.org> |
Implement support for RFC 3514 (The Security Flag in the IPv4 Header). (See: ftp://ftp.rfc-editor.org/in-notes/rfc3514.txt)
This fulfills the host requirements for userland support by way of the set
Implement support for RFC 3514 (The Security Flag in the IPv4 Header). (See: ftp://ftp.rfc-editor.org/in-notes/rfc3514.txt)
This fulfills the host requirements for userland support by way of the setsockopt() IP_EVIL_INTENT message.
There are three sysctl tunables provided to govern system behavior.
net.inet.ip.rfc3514:
Enables support for rfc3514. As this is an Informational RFC and support is not yet widespread this option is disabled by default.
net.inet.ip.hear_no_evil
If set the host will discard all received evil packets.
net.inet.ip.speak_no_evil
If set the host will discard all transmitted evil packets.
The IP statistics counter 'ips_evil' (available via 'netstat') provides information on the number of 'evil' packets recieved.
For reference, the '-E' option to 'ping' has been provided to demonstrate and test the implementation.
show more ...
|
#
aecfcdb8 |
| 22-Mar-2003 |
Maxime Henrion <mux@FreeBSD.org> |
Use __packed instead of __attribute__((__packed__)).
|
Revision tags: release/5.0.0_cvs, release/5.0.0 |
|
#
53be11f6 |
| 21-Oct-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Fix two instances of variant struct definitions in sys/netinet:
Remove the never completed _IP_VHL version, it has not caught on anywhere and it would make us incompatible with other BSD netstacks t
Fix two instances of variant struct definitions in sys/netinet:
Remove the never completed _IP_VHL version, it has not caught on anywhere and it would make us incompatible with other BSD netstacks to retain this version.
Add a CTASSERT protecting sizeof(struct ip) == 20.
Don't let the size of struct ipq depend on the IPDIVERT option.
This is a functional no-op commit.
Approved by: re
show more ...
|
Revision tags: release/4.7.0_cvs, release/4.6.2_cvs, release/4.6.2, release/4.6.1, release/4.6.0_cvs, release/4.5.0_cvs, release/4.4.0_cvs |
|
#
365979cd |
| 14-Dec-2001 |
Robert Watson <rwatson@FreeBSD.org> |
o Add IPOPT_ESO for the 'Extended Security' IP option (RFC1108)
Obtained from: TrustedBSD Project
|
#
18e2b6a9 |
| 14-Dec-2001 |
Robert Watson <rwatson@FreeBSD.org> |
o Add definition for IPOPT_CIPSO, the commercial security IP option number.
Submitted by: Ilmar S. Habibulin <ilmar@watson.org> Obtained from: TrustedBSD Project
|
Revision tags: release/4.3.0_cvs, release/4.3.0, release/4.2.0, release/4.1.1_cvs, release/4.1.0, release/3.5.0_cvs, release/4.0.0_cvs |
|
#
6a800098 |
| 22-Dec-1999 |
Yoshinobu Inoue <shin@FreeBSD.org> |
IPSEC support in the kernel. pr_input() routines prototype is also changed to support IPSEC and IPV6 chained protocol headers.
Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
|
Revision tags: release/3.4.0_cvs, release/3.3.0_cvs |
|
#
c3aac50f |
| 28-Aug-1999 |
Peter Wemm <peter@FreeBSD.org> |
$Id$ -> $FreeBSD$
|
Revision tags: release/3.2.0, release/3.1.0, release/3.0.0, release/2.2.8, release/2.2.7 |
|
#
57d05a62 |
| 07-Jun-1998 |
Bruce Evans <bde@FreeBSD.org> |
Fixed pedantic semantics errors (bitfields not of type int, signed int or unsigned int).
|
Revision tags: release/2.2.6 |
|
#
c383a33f |
| 26-Feb-1998 |
Dima Ruban <dima@FreeBSD.org> |
NetBSD PR# 2772
Reviewed by: David Greenman
|
#
d342b533 |
| 20-Dec-1997 |
Bruce Evans <bde@FreeBSD.org> |
Removed a stale comment. (We don't declare ip_len and ip_offset as short. I guess we depend on bogus ANSI value-preserving extension of u_short to int to avoid unsigned comparison bugs.)
|