chiark / gitweb /
libsystemd-dhcp: Add functions for sending unicast UDP messages
[elogind.git] / src / libsystemd-dhcp / dhcp-internal.h
index 814a3cdf64341884662d9a22f1a28f7a3a7b90a2..43b5b1d000568c8fe93e70316903df4eac2caf1d 100644 (file)
 ***/
 
 #include <stdint.h>
+#include <linux/if_packet.h>
+
+#include "socket-util.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_bind_udp_socket(int index, be32_t client_address);
+int dhcp_network_send_raw_socket(int s, const union sockaddr_union *link,
+                                 const void *packet, size_t len);
+int dhcp_network_send_udp_socket(int s, be32_t server_address,
+                                 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);