File: common.h

package info (click to toggle)
jail 1:1.5-1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 156 kB
  • ctags: 67
  • sloc: ansic: 482; makefile: 74; sh: 25
file content (37 lines) | stat: -rw-r--r-- 923 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
 * $Id: common.h,v 1.2 1998/06/16 18:21:23 ams Exp $
 * Copyright 1998 ams@wiw.org (Abhijit Menon-Sen)
 */

#include <ctype.h>
#include <getopt.h>
#include <netdb.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/syslog.h>
#include <sys/types.h>

#include "global.h"

/* maximum line length in configuration file */
#define MAXLINE 80

#define MTU 4352

/* command line parameters */
static struct option par[]={ {"file", 1, 0, 0},
                             {"no-resolve", 0, 0, 0},
                             {"version", 0, 0, 0},
                             {0, 0, 0, 0}
                           };

/* functions in common.c */

extern int background(void);
extern int excepted(unsigned long int addr, char *str);
extern char *gethost(unsigned long int addr);
extern short int loglevel(char *str);
extern short int facility(char *str);