chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libsystemd-dhcp: Use be32_t for IP addresses in network order.
[elogind.git]
/
src
/
libsystemd-dhcp
/
dhcp-internal.h
diff --git
a/src/libsystemd-dhcp/dhcp-internal.h
b/src/libsystemd-dhcp/dhcp-internal.h
index 814a3cdf64341884662d9a22f1a28f7a3a7b90a2..4472d95095fbce1399565e30f2c2ec6216fe3afe 100644
(file)
--- a/
src/libsystemd-dhcp/dhcp-internal.h
+++ b/
src/libsystemd-dhcp/dhcp-internal.h
@@
-22,10
+22,15
@@
***/
#include <stdint.h>
***/
#include <stdint.h>
+#include <linux/if_packet.h>
+
+#include "socket-util.h"
#include "dhcp-protocol.h"
#include "dhcp-protocol.h"
-int dhcp_network_send_raw_packet(int index, const void *packet, size_t len);
+int dhcp_network_bind_raw_socket(int index, union sockaddr_union *link);
+int dhcp_network_send_raw_socket(int s, const union sockaddr_union *link,
+ const void *packet, size_t len);
int dhcp_option_append(uint8_t **buf, size_t *buflen, uint8_t code,
size_t optlen, const void *optval);
int dhcp_option_append(uint8_t **buf, size_t *buflen, uint8_t code,
size_t optlen, const void *optval);