[systemd-devel] [PATCH 11/28] dhcp: Add function for sending a raw packet

2013-11-13 Thread Patrik Flykt
Open a packet socket, create a link level header, send packet and close socket. Adding it to a separate file makes testing of the DHCP sending much easier, as the test program can supply any socket to the DHCP client code. --- src/dhcp/internal.h |2 ++ src/dhcp/network.c | 63

Re: [systemd-devel] [PATCH 11/28] dhcp: Add function for sending a raw packet

2013-11-13 Thread Lennart Poettering
On Wed, 13.11.13 23:22, Patrik Flykt (patrik.fl...@linux.intel.com) wrote: +int __dhcp_network_send_raw_packet(int index, void *packet, int len); Shouldn't this be const void *? int __dhcp_option_append(uint8_t **buf, int *buflen, uint8_t code, buflen should better be size_t, no?