Config.h revision 413d704a1c05e34dfbbec2695dd209523239fa99
59190ecd61435d19ba3515b876272aee7bd12298vboxsync * Copyright (C) 2013 Oracle Corporation
c55c68b6a3324172e9dc207926215845880b0f90vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
c55c68b6a3324172e9dc207926215845880b0f90vboxsync * available from http://www.virtualbox.org. This file is free software;
c55c68b6a3324172e9dc207926215845880b0f90vboxsync * you can redistribute it and/or modify it under the terms of the GNU
c55c68b6a3324172e9dc207926215845880b0f90vboxsync * General Public License (GPL) as published by the Free Software
c55c68b6a3324172e9dc207926215845880b0f90vboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
c55c68b6a3324172e9dc207926215845880b0f90vboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
c55c68b6a3324172e9dc207926215845880b0f90vboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
59190ecd61435d19ba3515b876272aee7bd12298vboxsync#include "../NetLib/cpp/utils.h"
59190ecd61435d19ba3515b876272aee7bd12298vboxsyncstatic bool operator > (const RTNETADDRIPV4& a, const RTNETADDRIPV4& b)
59190ecd61435d19ba3515b876272aee7bd12298vboxsync return (b < a);
59190ecd61435d19ba3515b876272aee7bd12298vboxsync * it's a basic representation of
59190ecd61435d19ba3515b876272aee7bd12298vboxsync * of out undestanding what client is
59190ecd61435d19ba3515b876272aee7bd12298vboxsync * XXX: Client might sends Option 61 (RFC2132 9.14 "Client-identifier") signalling
a01baba2de7ca040689fb847c5e6b5e282e10fc4vboxsync * that we may identify it in special way
59190ecd61435d19ba3515b876272aee7bd12298vboxsync * XXX: Client might send Option 60 (RFC2132 9.13 "Vendor class undentifier")
59190ecd61435d19ba3515b876272aee7bd12298vboxsync * in response it's expected server sends Option 43 (RFC2132 8.4. "Vendor Specific Information")
void dump();
Lease();
bool isExpired() const;
void expire();
void bindingPhase(bool);
bool isInBindingPhase() const;
int matchingLevel = 0)
int m_MatchLevel;
NullConfigEntity(){}
int matchingLevel = 0):
if (!m_u32ExpirationPeriod)
return m_u32ExpirationPeriod;
int matchlvl,
int saveToFile();
void init();
struct Data;
Data *m;
~NetworkManager();
int processParameterReqList(const Client& client, const uint8_t *pu8ReqList, int cReqList, std::vector<RawOption>& extra);
struct Data;
Data *m;
m_fUsed(0),
m_fOverflowed(false)
bool useBpFile(void)
if ( m_pfOverload
bool overloadMore(void)
if (!m_pfOverload)
if (!overloadMore())
m_fOverflowed = true;
m_fOverflowed = true;
for (size_t i = 0; i < c; i++)
if (!cch)
bool hasOverflowed(void) const
return m_fOverflowed;
bool optEnd(void)
return !hasOverflowed();