Print this page
Remove include userdefs.h where not needed


  26  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  27  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  28  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  29  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  30  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  31  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  32  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  33  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  34  * SUCH DAMAGE.
  35  *
  36  * $FreeBSD: src/sbin/routed/main.c,v 1.14 2000/08/11 08:24:38 sheldonh Exp $
  37  * char copyright[] = "@(#) Copyright (c) 1983, 1988, 1993\n"
  38  * " The Regents of the University of California.  All rights reserved.\n";
  39  */
  40 
  41 #include "defs.h"
  42 #include "pathnames.h"
  43 #include <signal.h>
  44 #include <fcntl.h>
  45 #include <sys/file.h>
  46 #include <userdefs.h>
  47 #include <sys/stat.h>
  48 
  49 #define IN_ROUTED_VERSION       "2.22"
  50 
  51 int             stopint;
  52 boolean_t       supplier;       /* supply or broadcast updates */
  53 boolean_t       supplier_set;
  54 /* -S option. _B_TRUE=treat all RIP speakers as default routers. */
  55 boolean_t       save_space = _B_FALSE;
  56 
  57 static boolean_t default_gateway;       /* _B_TRUE=advertise default */
  58 static boolean_t background = _B_TRUE;
  59 boolean_t       ridhosts;       /* _B_TRUE=reduce host routes */
  60 boolean_t       mhome;          /* _B_TRUE=want multi-homed host route */
  61 boolean_t       advertise_mhome;  /* _B_TRUE=must continue advertising it */
  62 boolean_t       auth_ok = _B_TRUE; /* _B_TRUE=ignore auth if we don't care */
  63 boolean_t       no_install;     /* _B_TRUE=don't install in kernel */
  64 
  65 struct timeval epoch;           /* when started */
  66 struct timeval clk;




  26  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  27  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  28  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  29  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  30  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  31  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  32  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  33  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  34  * SUCH DAMAGE.
  35  *
  36  * $FreeBSD: src/sbin/routed/main.c,v 1.14 2000/08/11 08:24:38 sheldonh Exp $
  37  * char copyright[] = "@(#) Copyright (c) 1983, 1988, 1993\n"
  38  * " The Regents of the University of California.  All rights reserved.\n";
  39  */
  40 
  41 #include "defs.h"
  42 #include "pathnames.h"
  43 #include <signal.h>
  44 #include <fcntl.h>
  45 #include <sys/file.h>

  46 #include <sys/stat.h>
  47 
  48 #define IN_ROUTED_VERSION       "2.22"
  49 
  50 int             stopint;
  51 boolean_t       supplier;       /* supply or broadcast updates */
  52 boolean_t       supplier_set;
  53 /* -S option. _B_TRUE=treat all RIP speakers as default routers. */
  54 boolean_t       save_space = _B_FALSE;
  55 
  56 static boolean_t default_gateway;       /* _B_TRUE=advertise default */
  57 static boolean_t background = _B_TRUE;
  58 boolean_t       ridhosts;       /* _B_TRUE=reduce host routes */
  59 boolean_t       mhome;          /* _B_TRUE=want multi-homed host route */
  60 boolean_t       advertise_mhome;  /* _B_TRUE=must continue advertising it */
  61 boolean_t       auth_ok = _B_TRUE; /* _B_TRUE=ignore auth if we don't care */
  62 boolean_t       no_install;     /* _B_TRUE=don't install in kernel */
  63 
  64 struct timeval epoch;           /* when started */
  65 struct timeval clk;