summaryrefslogtreecommitdiffstats
path: root/net.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-03-19 17:52:12 +0000
committerRoy Marples <roy@marples.name>2009-03-19 17:52:12 +0000
commit1abffd5ba55b4e4a2a149001a33349ef39139457 (patch)
tree48da83c4a9a64018cfc66e5566531361b7260a9b /net.h
parent194b1fcb081f274e5759158267bf930f1bf57708 (diff)
downloaddhcpcd-1abffd5ba55b4e4a2a149001a33349ef39139457.tar.xz
We can now detected primary addresses added or changed in BSD.
As such, we can wait for a 3RDPARTY to configure the interface, such as PPP. We can then take the destination addess and automatically give it a default route or any other DHCP option such as DNS servers. This addresses #159.
Diffstat (limited to 'net.h')
-rw-r--r--net.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/net.h b/net.h
index cbac54b5..f0ff3ad0 100644
--- a/net.h
+++ b/net.h
@@ -106,7 +106,7 @@ int up_interface(const char *);
int do_interface(const char *,
void (*)(struct interface **, int, char * const *, struct ifreq *),
struct interface **, int, char * const *,
- struct in_addr *, struct in_addr *, int);
+ struct in_addr *, struct in_addr *, struct in_addr *, int);
int if_address(const struct interface *,
const struct in_addr *, const struct in_addr *,
const struct in_addr *, int);
@@ -115,9 +115,9 @@ int if_address(const struct interface *,
#define del_address(iface, addr, net) \
if_address(iface, addr, net, NULL, -1)
#define has_address(iface, addr, net) \
- do_interface(iface, NULL, NULL, 0, NULL, addr, net, 0)
-#define get_address(iface, addr, net) \
- do_interface(iface, NULL, NULL, 0, NULL, addr, net, 1)
+ do_interface(iface, NULL, NULL, 0, NULL, addr, net, NULL, 0)
+#define get_address(iface, addr, net, dst) \
+ do_interface(iface, NULL, NULL, 0, NULL, addr, net, dst, 1)
int if_route(const struct interface *, const struct in_addr *,
const struct in_addr *, const struct in_addr *, int, int);
@@ -147,9 +147,6 @@ ssize_t get_raw_packet(struct interface *, int, void *, ssize_t);
int init_socket(void);
int open_link_socket(void);
-int manage_link(int,
- void (*)(const char *),
- void (*)(const char *),
- void (*)(const char *));
+int manage_link(int);
int carrier_status(const char *);
#endif