ISC DHCP 4.4.3-P1
A reference DHCPv4 and DHCPv6 implementation
 
Loading...
Searching...
No Matches
failover.c File Reference
#include "cdefs.h"
#include "dhcpd.h"
#include <omapip/omapip_p.h>

Go to the source code of this file.

Functions

const char * binding_state_print (enum failover_state state)
 
const char * printable (const char *value)
 Given a char pointer, return always return a printable value.
 
void scrub_lease (struct lease *lease, const char *file, int line)
 Remove information from a prior use of a lease.
 

Function Documentation

◆ binding_state_print()

const char * binding_state_print ( enum failover_state state)

Definition at line 6505 of file failover.c.

◆ printable()

const char * printable ( const char * value)

Given a char pointer, return always return a printable value.

This function is intended to be used in within log statements, such that its invocation only occurs if the logging level is enabled.

Parameters
valuepointer the character to print
Returns
If value is null, returns the string "<none>", if it contains non-printable bytes, returns the string "<unsuitable for printing>", otherwise it returns a const pointer to value

Definition at line 6555 of file failover.c.

◆ scrub_lease()

void scrub_lease ( struct lease * lease,
const char * file,
int line )

Remove information from a prior use of a lease.

Remove information from a lease that is not germain to lease affinity

Parameters
leasethe lease to scrub

Definition at line 6577 of file failover.c.