File: host.h

package info (click to toggle)
uml-utilities 20070815.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 728 kB
  • sloc: ansic: 3,391; perl: 1,277; makefile: 239; exp: 129; sh: 122
file content (27 lines) | stat: -rw-r--r-- 832 bytes parent folder | download | duplicates (10)
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
/* Copyright 2001 Jeff Dike
 * Licensed under the GPL
 */

#ifndef __HOST_H
#define __HOST_H

#include "output.h"

enum change_type { ADD_ADDR, DEL_ADDR };

extern int do_exec(char **args, int need_zero, struct output *output);
extern int route_and_arp(char *dev, char *addr, char *netmask, int need_route, 
			 struct output *output);
extern int no_route_and_arp(char *dev, char *addr, char *netmask, 
			    struct output *output);
extern void forward_ip(struct output *output);

extern void address_change(enum change_type what, unsigned char *addr_str, 
			   char *dev, unsigned char *netmask, 
			   struct output *output);
extern int mk_node(char *devname, int major, int minor);
extern void change_addr(char *op, char *dev, char *address, char *netmask,
			struct output *output);
extern int is_a_device(char *dev);

#endif