42 std::cout <<
"DHCP UserCheckHook : pkt4_receive UserRegistry is null" 65 std::cout <<
"DHCP UserCheckHook : pkt4_receive user : " 66 << hwaddr->toText() <<
" is " 67 << (registered_user ?
" registered" :
" not registered")
69 }
catch (
const std::exception& ex) {
70 std::cout <<
"DHCP UserCheckHook : pkt4_receive unexpected error: " 71 << ex.what() << std::endl;
94 std::cout <<
"DHCP UserCheckHook : pkt6_receive UserRegistry is null" 110 std::cout <<
"DHCP6 query is missing DUID" << std::endl;
124 std::cout <<
"DHCP UserCheckHook : pkt6_receive user : " 125 << duid->toText() <<
" is " 126 << (registered_user ?
" registered" :
" not registered")
128 }
catch (
const std::exception& ex) {
129 std::cout <<
"DHCP UserCheckHook : pkt6_receive unexpected error: " 130 << ex.what() << std::endl;
boost::shared_ptr< DUID > DuidPtr
const char * query_user_id_label
Text label of user id in the inbound query in callout context.
int pkt6_receive(CalloutHandle &handle)
This callout is called at the "pkt6_receive" hook.
boost::shared_ptr< HWAddr > HWAddrPtr
Shared pointer to a hardware address structure.
boost::shared_ptr< Option > OptionPtr
boost::shared_ptr< User > UserPtr
Defines a smart pointer to a User.
const char * registered_user_label
Text label of registered user pointer in callout context.
Holds DUID (DHCPv6 Unique Identifier)
Defines the logger used by the user check hooks library.
boost::shared_ptr< Pkt6 > Pkt6Ptr
A pointer to Pkt6 packet.
Per-packet callout handle.
boost::shared_ptr< Pkt4 > Pkt4Ptr
A pointer to Pkt4 object.
void getArgument(const std::string &name, T &value) const
Get argument.
void setContext(const std::string &name, T value)
Set context.
UserRegistryPtr user_registry
Pointer to the registry instance.
int pkt4_receive(CalloutHandle &handle)
This callout is called at the "pkt4_receive" hook.