summaryrefslogtreecommitdiffstats
path: root/net.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-04-20 19:02:19 +0000
committerRoy Marples <roy@marples.name>2008-04-20 19:02:19 +0000
commit35ff0dbb35b746c5594773ddc47516af440cdae7 (patch)
tree144e8a4e9e870ef40546544b9ce65cdd13930474 /net.h
parent7612d18ee2d823cbd61f156191c6b5d6cb41352f (diff)
downloaddhcpcd-35ff0dbb35b746c5594773ddc47516af440cdae7.tar.xz
We should send packets to a specific IP over the udp socket so we don't broadcast on layer 2 and unicast on layer 3, #64.
Diffstat (limited to 'net.h')
-rw-r--r--net.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/net.h b/net.h
index d767a9ee..ef968e18 100644
--- a/net.h
+++ b/net.h
@@ -166,8 +166,10 @@ int valid_udp_packet(uint8_t *);
void setup_packet_filters(void);
#endif
int open_socket(struct interface *, int);
-ssize_t send_packet(const struct interface *, int,
+ssize_t send_packet(const struct interface *, struct in_addr,
const uint8_t *, ssize_t);
+ssize_t send_raw_packet(const struct interface *, int,
+ const uint8_t *, ssize_t);
ssize_t get_packet(const struct interface *, uint8_t *,
uint8_t *, ssize_t *, ssize_t *);