Package dns :: Module flags |
[hide private]
[frames] | no frames]

# Module flags

source code

DNS Message Flags.

Functions | [hide private]
_order_flags(table) | source code
_from_text(text, table) | source code
_to_text(flags, table, order) | source code
int |
from_text(text) Convert a space-separated list of flag text values into a flags value. | source code
string |
to_text(flags) Convert a flags value into a space-separated list of flag text values. | source code
int |
edns_from_text(text) Convert a space-separated list of EDNS flag text values into a EDNS flags value. | source code
string |
edns_to_text(flags) Convert an EDNS flags value into a space-separated list of EDNS flag text values. | source code

Variables | [hide private]
| QR = `32768`
| AA = `1024`
| TC = `512`
| RD = `256`
| RA = `128`
| AD = `32`
| CD = `16`
| DO = `32768`
| _by_text = ``{``'``AA``'``:` 1024`,` `'``AD``'``:` 32`,` `'``CD``'``:` 16`,` `'``QR``'``:` 32768`,` `'``RA``'``:``...``
| _edns_by_text = ``{``'``DO``'``:` 32768`}``
| _by_value = ``{`16`:` `'``CD``'``,` 32`:` `'``AD``'``,` 128`:` `'``RA``'``,` 256`:` `'``RD``'``,` 512`:` `'``T``...``
| _edns_by_value = ``{`32768`:` `'``DO``'``}``
| _flags_order = ``[``(`32768`,` `'``QR``'``)``,` `(`1024`,` `'``AA``'``)``,` `(`512`,` `'``TC``'``)``,` `(`256`...``
| _edns_flags_order = ``[``(`32768`,` `'``DO``'``)``]``
| __package__ = `None` hash(x)
| x = ``'``DO``'``
| y = `32768`

Variables Details | [hide private]

  ### _by_text Value:
      {'AA': 1024,
       'AD': 32,
       'CD': 16,
       'QR': 32768,
       'RA': 128,
       'RD': 256,
       'TC': 512}

  ### _by_value Value:
      {16: 'CD',
       32: 'AD',
       128: 'RA',
       256: 'RD',
       512: 'TC',
       1024: 'AA',
       32768: 'QR'}

  ### _flags_order Value:
      [(32768, 'QR'),
       (1024, 'AA'),
       (512, 'TC'),
       (256, 'RD'),
       (128, 'RA'),
       (32, 'AD'),
       (16, 'CD')]