code: def _read_opt_type(self, kind):
          
          bin_ = bin(kind)[2:].zfill(8)
  
          type_ = {
              'copy': bool(int(bin_[0], base=2)),
              'class': opt_class.get(int(bin_[1:3], base=2)),
              'number': int(bin_[3:], base=2),
          }
  
          return type_
docs: Read option type field.
  
          Positional arguments:
              * kind -- int, option kind value
  
          Returns:
              * dict -- extracted IPv4 option
  
          Structure of option type field [RFC 791]:
  
              Octets      Bits        Name                    Descriptions
                0           0     ip.opt.type.copy        Copied Flag (0/1)
                0           1     ip.opt.type.class       Option Class (0-3)
                0           3     ip.opt.type.number      Option Number