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