File: ipmonitor.c

package info (click to toggle)
iproute 980630-1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 468 kB
  • ctags: 389
  • sloc: ansic: 8,276; makefile: 104
file content (34 lines) | stat: -rw-r--r-- 752 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
/*
 * ipmonitor.c		"ip monitor".
 *
 *		This program is free software; you can redistribute it and/or
 *		modify it under the terms of the GNU General Public License
 *		as published by the Free Software Foundation; either version
 *		2 of the License, or (at your option) any later version.
 *
 * Authors:	Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
 *
 */

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <syslog.h>
#include <fcntl.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <string.h>

#include "utils.h"

static void usage(void)
{
	fprintf(stderr, "Usage: ip monitor [ file [ name ] | all ]\n");
	exit(-1);
}

int do_ipmonitor(int argc, char **argv)
{
	return iproute_monitor(argc, argv);
}