Print this page
NEX-13644 File access audit logging
Reviewed by: Gordon Ross <gordon.ross@nexenta.com>
Reviewed by: Roman Strashkin <roman.strashkin@nexenta.com>
Reviewed by: Saso Kiselkov <saso.kiselkov@nexenta.com>
Reviewed by: Rick McNeal <rick.mcneal@nexenta.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
NEX-3376 Want a way to extract SMB packets from a crash dump
Reviewed by: Dan Fields <dan.fields@nexenta.com>
Reviewed by: Kevin Crowe <kevin.crowe@nexenta.com>
re #7815 SMB server delivers old modification time...

@@ -20,25 +20,32 @@
 #
 #
 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
+# Copyright 2018 Nexenta Systems, Inc.  All rights reserved.
 #
 
 MODULE = smbsrv.so
 MDBTGT = kvm
 
-MODSRCS = smbsrv.c
+#
+# This signals that $(KMODSRCS) != $(MODSRCS).  Dump to a pcap file
+# is not available in kmdb, so don't bother compiling that code.
+KMOD_SOURCES_DIFFERENT=$(POUND_SIGN)
 
+KMODSRCS = smbsrv.c
+MODSRCS = smbsrv.c smbsrv_pcap.c
+
 include ../../../../Makefile.cmd
 include ../../../../Makefile.cmd.64
 include ../../Makefile.sparcv9
 
 ROOTKMOD = $(ROOT)/usr/kernel/kmdb$(MACHMODDIR)
 
 include ../../../Makefile.module
 
 CSTD=   $(CSTD_GNU99)
+CPPFLAGS += -I$(SRC)/uts/common
 
 $(ROOTKMOD):
         $(INS.dir)