summaryrefslogtreecommitdiffstats
path: root/src/customdhcpcd/interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/customdhcpcd/interface.h')
-rw-r--r--src/customdhcpcd/interface.h60
1 files changed, 30 insertions, 30 deletions
diff --git a/src/customdhcpcd/interface.h b/src/customdhcpcd/interface.h
index 8215d48..8431080 100644
--- a/src/customdhcpcd/interface.h
+++ b/src/customdhcpcd/interface.h
@@ -1,4 +1,4 @@
-/*
+/*
* dhcpcd - DHCP client daemon
* Copyright 2006-2008 Roy Marples <roy@marples.name>
* All rights reserved
@@ -93,48 +93,48 @@
typedef struct route_t
{
- struct in_addr destination;
- struct in_addr netmask;
- struct in_addr gateway;
- STAILQ_ENTRY (route_t) entries;
+ struct in_addr destination;
+ struct in_addr netmask;
+ struct in_addr gateway;
+ STAILQ_ENTRY (route_t) entries;
} route_t;
STAILQ_HEAD (route_head, route_t);
typedef struct address_t
{
- struct in_addr address;
- STAILQ_ENTRY (address_t) entries;
+ struct in_addr address;
+ STAILQ_ENTRY (address_t) entries;
} address_t;
STAILQ_HEAD (address_head, address_t);
typedef struct interface_t
{
- char name[IF_NAMESIZE];
- sa_family_t family;
- unsigned char hwaddr[HWADDR_LEN];
- size_t hwlen;
- bool arpable;
- unsigned short mtu;
+ char name[IF_NAMESIZE];
+ sa_family_t family;
+ unsigned char hwaddr[HWADDR_LEN];
+ size_t hwlen;
+ bool arpable;
+ unsigned short mtu;
- int fd;
- size_t buffer_length;
+ int fd;
+ size_t buffer_length;
#ifdef __linux__
- int listen_fd;
- int socket_protocol;
+ int listen_fd;
+ int socket_protocol;
#endif
- char infofile[PATH_MAX];
+ char infofile[PATH_MAX];
- unsigned short previous_mtu;
- struct in_addr previous_address;
- struct in_addr previous_netmask;
- struct route_head *previous_routes;
+ unsigned short previous_mtu;
+ struct in_addr previous_address;
+ struct in_addr previous_netmask;
+ struct route_head *previous_routes;
- time_t start_uptime;
+ time_t start_uptime;
- unsigned char *clientid;
- size_t clientid_len;
+ unsigned char *clientid;
+ size_t clientid_len;
} interface_t;
void free_address (struct address_head *addresses);
@@ -148,20 +148,20 @@ int get_mtu (const char *ifname);
int set_mtu (const char *ifname, short int mtu);
int add_address (const char *ifname, struct in_addr address,
- struct in_addr netmask, struct in_addr broadcast);
+ struct in_addr netmask, struct in_addr broadcast);
int del_address (const char *ifname, struct in_addr address,
- struct in_addr netmask);
+ struct in_addr netmask);
int flush_addresses (const char *ifname);
in_addr_t get_address (const char *ifname);
int has_address (const char *ifname, struct in_addr address);
int add_route (const char *ifname, struct in_addr destination,
- struct in_addr netmask, struct in_addr gateway, int metric);
+ struct in_addr netmask, struct in_addr gateway, int metric);
int change_route (const char *ifname, struct in_addr destination,
- struct in_addr netmask, struct in_addr gateway, int metric);
+ struct in_addr netmask, struct in_addr gateway, int metric);
int del_route (const char *ifname, struct in_addr destination,
- struct in_addr netmask, struct in_addr gateway, int metric);
+ struct in_addr netmask, struct in_addr gateway, int metric);
int inet_ntocidr (struct in_addr address);
int inet_cidrtoaddr (int cidr, struct in_addr *addr);