48        std::cout << 
"DHCP UserCheckHook : pkt4_receive UserRegistry is null" 
   71        std::cout << 
"DHCP UserCheckHook : pkt4_receive user : " 
   72                  << hwaddr->toText() << 
" is " 
   73                  << (registered_user ? 
" registered" : 
" not registered")
 
   75    } 
catch (
const std::exception& ex) {
 
   76        std::cout << 
"DHCP UserCheckHook : pkt4_receive unexpected error: " 
   77                  << ex.what() << std::endl;
 
 
  106        std::cout << 
"DHCP UserCheckHook : pkt6_receive UserRegistry is null" 
  122            std::cout << 
"DHCP6 query is missing DUID" << std::endl;
 
  136        std::cout << 
"DHCP UserCheckHook : pkt6_receive user : " 
  137                  << duid->toText() << 
" is " 
  138                  << (registered_user ? 
" registered" : 
" not registered")
 
  140    } 
catch (
const std::exception& ex) {
 
  141        std::cout << 
"DHCP UserCheckHook : pkt6_receive unexpected error: " 
  142                  << ex.what() << std::endl;
 
 
CalloutNextStep
Specifies allowed next steps.
@ NEXT_STEP_DROP
drop the packet
@ NEXT_STEP_SKIP
skip the next processing step
Holds DUID (DHCPv6 Unique Identifier)
Per-packet callout handle.
void setContext(const std::string &name, T value)
Set context.
CalloutNextStep getStatus() const
Returns the next processing step.
void getArgument(const std::string &name, T &value) const
Get argument.
boost::shared_ptr< Pkt4 > Pkt4Ptr
A pointer to Pkt4 object.
boost::shared_ptr< DUID > DuidPtr
boost::shared_ptr< HWAddr > HWAddrPtr
Shared pointer to a hardware address structure.
boost::shared_ptr< Pkt6 > Pkt6Ptr
A pointer to Pkt6 packet.
boost::shared_ptr< Option > OptionPtr
Defines the logger used by the user check hooks library.
boost::shared_ptr< User > UserPtr
Defines a smart pointer to a User.
int pkt4_receive(CalloutHandle &handle)
This callout is called at the "pkt4_receive" hook.
int pkt6_receive(CalloutHandle &handle)
This callout is called at the "pkt6_receive" hook.
const char * query_user_id_label
Text label of user id in the inbound query in callout context.
UserRegistryPtr user_registry
Pointer to the registry instance.
const char * registered_user_label
Text label of registered user pointer in callout context.