diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-06-10 01:09:09 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-06-12 03:19:08 +0900 |
commit | 8d71f2b3a6c9ef26a3a39fcaa4281776e9420976 (patch) | |
tree | 3685140d12fade2dd6590bf61b7c8172838c7bed /src/libsystemd-network/dhcp-internal.h | |
parent | 0299deab53d2a087727a5d04c1500c322c48b63e (diff) | |
download | systemd-8d71f2b3a6c9ef26a3a39fcaa4281776e9420976.tar.gz |
dhcp: do not use ifindex when generating iaid in tests
Diffstat (limited to 'src/libsystemd-network/dhcp-internal.h')
-rw-r--r-- | src/libsystemd-network/dhcp-internal.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libsystemd-network/dhcp-internal.h b/src/libsystemd-network/dhcp-internal.h index d8c42757aa..16999971d2 100644 --- a/src/libsystemd-network/dhcp-internal.h +++ b/src/libsystemd-network/dhcp-internal.h @@ -30,6 +30,8 @@ typedef struct DHCPServerData { extern const struct hash_ops dhcp_option_hash_ops; +typedef struct sd_dhcp_client sd_dhcp_client; + int dhcp_network_bind_raw_socket(int ifindex, union sockaddr_union *link, uint32_t xid, const uint8_t *mac_addr, size_t mac_addr_len, const uint8_t *bcast_addr, size_t bcast_addr_len, @@ -62,6 +64,8 @@ void dhcp_packet_append_ip_headers(DHCPPacket *packet, be32_t source_addr, int dhcp_packet_verify_headers(DHCPPacket *packet, size_t len, bool checksum, uint16_t port); +void dhcp_client_set_test_mode(sd_dhcp_client *client, bool test_mode); + /* If we are invoking callbacks of a dhcp-client, ensure unreffing the * client from the callback doesn't destroy the object we are working * on */ |