[systemd-commits] src/libsystemd-dhcp

Tom Gundersen tomegun at kemper.freedesktop.org
Wed Feb 19 19:58:55 CET 2014


 src/libsystemd-dhcp/sd-dhcp-client.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 8f61afd8d8e17c4e4970435e857d84465f019354
Author: Tom Gundersen <teg at jklm.no>
Date:   Wed Feb 19 19:44:06 2014 +0100

    sd-dhcp-client: fix mixup between raw and udp sockets

diff --git a/src/libsystemd-dhcp/sd-dhcp-client.c b/src/libsystemd-dhcp/sd-dhcp-client.c
index d58755a..ed81ab2 100644
--- a/src/libsystemd-dhcp/sd-dhcp-client.c
+++ b/src/libsystemd-dhcp/sd-dhcp-client.c
@@ -798,7 +798,7 @@ error:
         return 0;
 }
 
-static int client_receive_message_raw(sd_event_source *s, int fd,
+static int client_receive_message_udp(sd_event_source *s, int fd,
                                       uint32_t revents, void *userdata) {
         sd_dhcp_client *client = userdata;
         uint8_t buf[sizeof(DHCPMessage) + DHCP_MIN_OPTIONS_SIZE];
@@ -822,7 +822,7 @@ static int client_receive_message_raw(sd_event_source *s, int fd,
                                      time_now);
 }
 
-static int client_receive_message_udp(sd_event_source *s, int fd,
+static int client_receive_message_raw(sd_event_source *s, int fd,
                                       uint32_t revents, void *userdata) {
         sd_dhcp_client *client = userdata;
         uint8_t buf[sizeof(DHCPPacket) + DHCP_MIN_OPTIONS_SIZE];
@@ -876,7 +876,7 @@ int sd_dhcp_client_start(sd_dhcp_client *client) {
         client->start_time = now(CLOCK_MONOTONIC);
         client->secs = 0;
 
-        return client_initialize_events(client, client_receive_message_udp,
+        return client_initialize_events(client, client_receive_message_raw,
                                         client->start_time);
 }
 



More information about the systemd-commits mailing list