Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Dec 2014 20:54:24 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r275690 - stable/10/sys/contrib/ipfilter/netinet
Message-ID:  <201412102054.sBAKsOB3009317@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cy
Date: Wed Dec 10 20:54:23 2014
New Revision: 275690
URL: https://svnweb.freebsd.org/changeset/base/275690

Log:
  MFC r275199.
  
  Correctly define constants.

Modified:
  stable/10/sys/contrib/ipfilter/netinet/fil.c
  stable/10/sys/contrib/ipfilter/netinet/ip_frag.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/contrib/ipfilter/netinet/fil.c
==============================================================================
--- stable/10/sys/contrib/ipfilter/netinet/fil.c	Wed Dec 10 20:44:51 2014	(r275689)
+++ stable/10/sys/contrib/ipfilter/netinet/fil.c	Wed Dec 10 20:54:23 2014	(r275690)
@@ -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: stable/10/sys/contrib/ipfilter/netinet/ip_frag.c
==============================================================================
--- stable/10/sys/contrib/ipfilter/netinet/ip_frag.c	Wed Dec 10 20:44:51 2014	(r275689)
+++ stable/10/sys/contrib/ipfilter/netinet/ip_frag.c	Wed Dec 10 20:54:23 2014	(r275690)
@@ -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),



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412102054.sBAKsOB3009317>