svn commit: r275199 - head/sys/contrib/ipfilter/netinet
Cy Schubert
cy at FreeBSD.org
Fri Nov 28 04:07:07 UTC 2014
Author: cy
Date: Fri Nov 28 04:07:06 2014
New Revision: 275199
URL: https://svnweb.freebsd.org/changeset/base/275199
Log:
Correctly define constants.
MFC after: 1 week
Modified:
head/sys/contrib/ipfilter/netinet/fil.c
head/sys/contrib/ipfilter/netinet/ip_frag.c
Modified: head/sys/contrib/ipfilter/netinet/fil.c
==============================================================================
--- head/sys/contrib/ipfilter/netinet/fil.c Thu Nov 27 23:42:32 2014 (r275198)
+++ head/sys/contrib/ipfilter/netinet/fil.c Fri Nov 28 04:07:06 2014 (r275199)
@@ -252,7 +252,7 @@ static const struct optlist ipopts[20] =
};
#ifdef USE_INET6
-static struct optlist ip6exthdr[] = {
+static const struct optlist ip6exthdr[] = {
{ IPPROTO_HOPOPTS, 0x000001 },
{ IPPROTO_IPV6, 0x000002 },
{ IPPROTO_ROUTING, 0x000004 },
Modified: head/sys/contrib/ipfilter/netinet/ip_frag.c
==============================================================================
--- head/sys/contrib/ipfilter/netinet/ip_frag.c Thu Nov 27 23:42:32 2014 (r275198)
+++ head/sys/contrib/ipfilter/netinet/ip_frag.c Fri Nov 28 04:07:06 2014 (r275199)
@@ -112,7 +112,7 @@ static void ipf_frag_free __P((ipf_frag_
static frentry_t ipfr_block;
-ipftuneable_t ipf_tuneables[] = {
+const ipftuneable_t ipf_tuneables[] = {
{ { (void *)offsetof(ipf_frag_softc_t, ipfr_size) },
"frag_size", 1, 0x7fffffff,
stsizeof(ipf_frag_softc_t, ipfr_size),
More information about the svn-src-head
mailing list