Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Sep 2018 19:45:27 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r338839 - head/sys/netinet
Message-ID:  <201809201945.w8KJjR1O007113@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Thu Sep 20 19:45:27 2018
New Revision: 338839
URL: https://svnweb.freebsd.org/changeset/base/338839

Log:
  Add new field max_hdrsize to struct encap_config.
  
  It is currently unused and reserved for future use to keep KBI/KPI.
  Also add several spare pointers to be able extend structure if it
  will be needed.
  
  Approved by:	re (gjb)

Modified:
  head/sys/netinet/ip_encap.h

Modified: head/sys/netinet/ip_encap.h
==============================================================================
--- head/sys/netinet/ip_encap.h	Thu Sep 20 19:35:35 2018	(r338838)
+++ head/sys/netinet/ip_encap.h	Thu Sep 20 19:45:27 2018	(r338839)
@@ -48,12 +48,15 @@ typedef int (*encap_input_t)(struct mbuf *, int , int,
 struct encap_config {
 	int		proto;		/* protocol */
 	int		min_length;	/* minimum packet length */
+	int		max_hdrsize;	/* maximum header size */
 	int		exact_match;	/* a packet is exactly matched */
 #define	ENCAP_DRV_LOOKUP	0x7fffffff
 
 	encap_lookup_t	lookup;
 	encap_check_t	check;
 	encap_input_t	input;
+
+	void		*pad[3];
 };
 
 struct encaptab;



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