2022-02-07 06:35:29 +05:30
|
|
|
// Copyright 2011-2020 Nicholas J. Kain <njkain at gmail dot com>
|
|
|
|
// SPDX-License-Identifier: MIT
|
2011-06-30 09:17:31 +05:30
|
|
|
#ifndef NDHC_STATE_H_
|
|
|
|
#define NDHC_STATE_H_
|
|
|
|
|
2014-03-13 02:35:43 +05:30
|
|
|
#include "ndhc.h"
|
2011-07-02 13:21:44 +05:30
|
|
|
#include "dhcp.h"
|
2011-06-30 09:17:31 +05:30
|
|
|
|
2015-02-18 16:01:13 +05:30
|
|
|
#define COR_SUCCESS 0
|
|
|
|
#define COR_ERROR -1
|
2011-06-30 09:17:31 +05:30
|
|
|
|
2022-01-12 09:05:19 +05:30
|
|
|
int dhcp_handle(struct client_state_t *cs, long long nowts,
|
|
|
|
bool sev_dhcp, struct dhcpmsg *dhcp_packet,
|
2015-02-18 21:32:13 +05:30
|
|
|
uint8_t dhcp_msgtype, uint32_t dhcp_srcaddr, bool sev_arp,
|
2020-10-20 13:53:55 +05:30
|
|
|
bool force_fingerprint, bool dhcp_timeout, bool arp_timeout);
|
2011-07-05 07:40:14 +05:30
|
|
|
|
2011-06-30 09:17:31 +05:30
|
|
|
#endif
|
|
|
|
|