diff options
author | Tom Gundersen <teg@jklm.no> | 2014-02-14 17:23:58 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-02-15 12:14:45 +0100 |
commit | 080ab27621e979e75f6bb1a055616f3d419f7ac3 (patch) | |
tree | 24fc20580762e553e984ae10a9677c03d47852ac /src/libsystemd-dhcp/dhcp-internal.h | |
parent | 818dc5e72af8a3eb772997188e2bd8ea616de844 (diff) |
sd-dhcp: network - don't hardcode ports
We want to reuse these functions for the server library too.
Diffstat (limited to 'src/libsystemd-dhcp/dhcp-internal.h')
-rw-r--r-- | src/libsystemd-dhcp/dhcp-internal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd-dhcp/dhcp-internal.h b/src/libsystemd-dhcp/dhcp-internal.h index 3f1e000365..7639069cf2 100644 --- a/src/libsystemd-dhcp/dhcp-internal.h +++ b/src/libsystemd-dhcp/dhcp-internal.h @@ -30,10 +30,10 @@ #include "dhcp-protocol.h" 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_bind_udp_socket(int index, be32_t address, uint16_t port); 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, +int dhcp_network_send_udp_socket(int s, be32_t address, uint16_t port, const void *packet, size_t len); int dhcp_option_append(uint8_t **buf, size_t *buflen, uint8_t code, |