File:  [ELWIX - Embedded LightWeight unIX -] / fwsync / patches / ip_fw_nat.patch
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Thu Aug 18 11:33:20 2022 UTC (21 months, 3 weeks ago) by misho
Branches: MAIN
CVS tags: fwsync1_2, fwsync1_1, HEAD, FWSYNC1_1
sync accroding last version of fwsync driver

    1: diff --git a/sys/netpfil/ipfw/ip_fw_nat.c b/sys/netpfil/ipfw/ip_fw_nat.c
    2: index d7b31c29d4e..a25ecec65a6 100644
    3: --- a/sys/netpfil/ipfw/ip_fw_nat.c
    4: +++ b/sys/netpfil/ipfw/ip_fw_nat.c
    5: @@ -81,22 +81,6 @@ struct cfg_redir {
    6:  	LIST_HEAD(spool_chain, cfg_spool) spool_chain;
    7:  };
    8:  
    9: -/* Nat configuration data struct. */
   10: -struct cfg_nat {
   11: -	/* chain of nat instances */
   12: -	LIST_ENTRY(cfg_nat)	_next;
   13: -	int			id;		/* nat id  */
   14: -	struct in_addr		ip;		/* nat ip address */
   15: -	struct libalias		*lib;		/* libalias instance */
   16: -	int			mode;		/* aliasing mode */
   17: -	int			redir_cnt; /* number of entry in spool chain */
   18: -	/* chain of redir instances */
   19: -	LIST_HEAD(redir_chain, cfg_redir) redir_chain;  
   20: -	char			if_name[IF_NAMESIZE];	/* interface name */
   21: -	u_short			alias_port_lo;	/* low range for port aliasing */
   22: -	u_short			alias_port_hi;	/* high range for port aliasing */
   23: -};
   24: -
   25:  static eventhandler_tag ifaddr_event_tag;
   26:  
   27:  static void
   28: @@ -348,6 +332,9 @@ ipfw_nat(struct ip_fw_args *args, struct cfg_nat *t, struct mbuf *m)
   29:  
   30:  	c = mtod(mcl, char *);
   31:  
   32: +	if (V_sync_alias)
   33: +		V_sync_alias(t, NULL);
   34: +
   35:  	/* Check if this is 'global' instance */
   36:  	if (t == NULL) {
   37:  		if (args->flags & IPFW_ARGS_IN) {

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>