Print this page
OS-7667 IPFilter needs to keep and report state for cloud firewall logging
Portions contributed by: Mike Gerdts <mike.gerdts@joyent.com>

@@ -6,11 +6,11 @@
  * $Id: ip_log.c,v 2.75.2.7 2005/06/11 07:47:44 darrenr Exp $
  *
  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  *
- * Copyright (c) 2014, Joyent, Inc.  All rights reserved.
+ * Copyright 2019 Joyent, Inc.
  */
 
 #include <sys/param.h>
 #if defined(KERNEL) || defined(_KERNEL)
 # undef KERNEL

@@ -378,10 +378,11 @@
                 ipfl.fl_logtag = FR_NOLOGTAG;
         }
         if (fin->fin_nattag != NULL)
                 bcopy(fin->fin_nattag, (void *)&ipfl.fl_nattag,
                       sizeof(ipfl.fl_nattag));
+        bcopy(fin->fin_fr->fr_uuid, ipfl.fl_uuid, sizeof (ipfl.fl_uuid));
         ipfl.fl_flags = flags;
         ipfl.fl_dir = fin->fin_out;
         ipfl.fl_lflags = fin->fin_flx;
         ptrs[0] = (void *)&ipfl;
         sizes[0] = sizeof(ipfl);