Annotation of fwsync/patches/ip_fw_nat.patch, revision 1.2
1.1 misho 1: diff --git a/sys/netpfil/ipfw/ip_fw_nat.c b/sys/netpfil/ipfw/ip_fw_nat.c
1.2 ! misho 2: index d7b31c29d4e..a25ecec65a6 100644
1.1 misho 3: --- a/sys/netpfil/ipfw/ip_fw_nat.c
4: +++ b/sys/netpfil/ipfw/ip_fw_nat.c
1.2 ! misho 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)
1.1 misho 29:
30: c = mtod(mcl, char *);
31:
32: + if (V_sync_alias)
1.2 ! misho 33: + V_sync_alias(t, NULL);
1.1 misho 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>