summaryrefslogtreecommitdiff
path: root/src/libsystemd-dhcp/dhcp-internal.h
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-02-24 01:09:21 +0100
committerTom Gundersen <teg@jklm.no>2014-02-24 03:28:19 +0100
commit55dab2ed837c17236b7df12decaffbc4388d1dff (patch)
tree44b39f61128131327baf3311277d4694311b7446 /src/libsystemd-dhcp/dhcp-internal.h
parent872c2ab3e2887c1c2b6c9815a201683e246e56fc (diff)
sd-dhcp-client: respect TP_STATUS_CSUMNOTREADY
If an UDP packet has not passed through a hardware device, its checksum may not have been computed. This is exposed through the TP_STATUS_CSUMNOTREADY sockopt. When using raw sockets, skip checksum validation when TP_STATUS_CSUMNOTREADY is set. This is necessary for dhcp to work directly over a veth tunnel, e.g. as done in systemd-nspawn.
Diffstat (limited to 'src/libsystemd-dhcp/dhcp-internal.h')
-rw-r--r--src/libsystemd-dhcp/dhcp-internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-dhcp/dhcp-internal.h b/src/libsystemd-dhcp/dhcp-internal.h
index 7b2e35cac6..ce83b81631 100644
--- a/src/libsystemd-dhcp/dhcp-internal.h
+++ b/src/libsystemd-dhcp/dhcp-internal.h
@@ -50,6 +50,6 @@ int dhcp_message_init(DHCPMessage *message, uint8_t op, uint32_t xid, uint8_t ty
void dhcp_packet_append_ip_headers(DHCPPacket *packet, uint16_t len);
-int dhcp_packet_verify_headers(DHCPPacket *packet, size_t len);
+int dhcp_packet_verify_headers(DHCPPacket *packet, size_t len, bool checksum);
#define log_dhcp_client(client, fmt, ...) log_meta(LOG_DEBUG, __FILE__, __LINE__, __func__, "DHCP CLIENT: " fmt, ##__VA_ARGS__)