def dhcp_option_def(msg_type):
 def f(cls):
  _dhcp_option_unpackers[msg_type] = cls.unpack
  cls.CODE = msg_type
  return cls
 return f

def dhcp_option_def ( msg_type ) : def f ( cls ) : _dhcp_option_unpackers [ msg_type ] = cls . unpack cls . CODE = msg_type return cls return f
dpcp option decorator .