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>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/ipf/tools/Makefile.tools
          +++ new/usr/src/cmd/ipf/tools/Makefile.tools
↓ open down ↓ 15 lines elided ↑ open up ↑
  16   16  # fields enclosed by brackets "[]" replaced with your own identifying
  17   17  # information: Portions Copyright [yyyy] [name of copyright owner]
  18   18  #
  19   19  # CDDL HEADER END
  20   20  #
  21   21  #
  22   22  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23   23  # Use is subject to license terms.
  24   24  #
  25   25  # Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
  26      -# Copyright (c) 2012, Joyent Inc. All rights reserved.
       26 +# Copyright 2019 Joyent, Inc.
  27   27  #
  28   28  
  29   29  PROG=           ipf ipfs ipmon ipnat ippool ipfstat
  30   30  IPFPROG=        ipftest
  31   31  
  32   32  IPF_OBJS=       ipf.o ipfcomp.o ipfzone.o ipf_y.o ipf_l.o
  33   33  IPFS_OBJS=      ipfs.o ipfzone.o
  34   34  IPFSTAT_OBJS=   ipfstat.o ipfzone.o
  35   35  IPMON_OBJS=     ipmon.o ipfzone.o ipmon_y.o ipmon_l.o
  36   36  IPNAT_OBJS=     ipnat.o ipfzone.o ipnat_y.o ipnat_l.o
  37   37  IPPOOL_OBJS=    ippool.o ipfzone.o ippool_y.o ippool_l.o
  38      -IPFTEST_OBJS=   ipftest.o ipfzone.o \
       38 +IPFTEST_OBJS=   cfw.o ipftest.o ipfzone.o \
  39   39                  ip_fil.o ip_state.o ip_compat.o \
  40   40                  ip_frag.o ip_nat.o ip_nat6.o fil.o \
  41   41                  ip_htable.o ip_lookup.o \
  42   42                  ip_proxy.o ip_auth.o ip_log.o \
  43   43                  ipf_y.o ipf_l.o \
  44   44                  ipnat_y.o ipnat_l.o \
  45   45                  ippool_y.o ippool_l.o \
  46   46                  ip_pool.o radix.o
  47   47  
  48   48  OBJS=           $(IPF_OBJS) $(IPFS_OBJS) $(IPFSTAT_OBJS) \
  49   49                  $(IPMON_OBJS) $(IPNAT_OBJS) $(IPPOOL_OBJS) $(IPFTEST_OBJS)
  50   50  
  51   51  OBJSL=          $(IPF_OBJS) $(IPFS_OBJS) $(IPFSTAT_OBJS) \
  52   52                  $(IPMON_OBJS) $(IPNAT_OBJS)
  53   53  
  54   54  SRCS=           $(OBJSL:%.o=../%.c)
  55   55  
  56   56  include ../../../Makefile.cmd
  57   57  include ../../Makefile.ipf
  58   58  
  59      -LDLIBS          += $(LIBBPF)
       59 +LDLIBS          += $(LIBBPF) -luuid
  60   60  LDFLAGS         += $(MAPFILE.NGB:%=-M%)
  61   61  
  62   62  CPPFLAGS        += -I. -DIPFILTER_LOOKUP -DIPFILTER_LOG
  63   63  
  64   64  ipfstat.o       :=      CPPFLAGS += -DSTATETOP
  65   65  ipfstat         :=      LDLIBS += -lcurses
  66   66  
  67   67  ipf             :=      LDLIBS += -lsocket -lnsl
  68   68  ipftest         :=      LDLIBS += -lsocket -lnsl -lmd
  69   69  ipfstat         :=      LDLIBS += -lsocket -lnsl -lkvm -lelf
↓ open down ↓ 202 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX