-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsynexec_netops.h
45 lines (38 loc) · 1.29 KB
/
synexec_netops.h
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
38
39
40
41
42
43
44
45
/*
* ------------------------------------
* synexec - Synchronised Executioner
* ------------------------------------
* synexec_netops.h
* ------------------
* Copyright 2014 (c) Citrix
*
* 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, version only.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* Read the README file for the changelog and information on how to
* compile and use this program.
*/
#ifndef SYNEXEC_NETOPS_H
#define SYNEXEC_NETOPS_H
// Header files
#include <netinet/in.h>
#include "synexec_common.h"
// Definitions
#define SYNEXEC_PROC_ROUTE "/proc/net/route"
// Function prototypes
int
get_ifdef(char **defif_name, struct in_addr *gw_addr);
int
get_ifipaddr(char *if_name, struct in_addr *if_addr);
int
get_ifbroad(char *if_name, struct in_addr *if_broad);
#endif /* SYNEXEC_NETOPS_H */