Package DNS :: Module flags
[show private | hide private]
[frames | no frames]

Module DNS.flags

DNS Message Flags.
Function Summary
int edns_from_text(text)
Convert a space-separated list of EDNS flag text values into a EDNS flags value.
string edns_to_text(flags)
Convert an EDNS flags value into a space-separated list of EDNS flag text values.
int from_text(text)
Convert a space-separated list of flag text values into a flags value.
string to_text(flags)
Convert a flags value into a space-separated list of flag text values.

Variable Summary
int AA
int AD
int CD
int DO
int QR
int RA
int RD
int TC
dict _by_text
dict _by_value
dict _edns_by_text
dict _edns_by_value

Function Details

edns_from_text(text)

Convert a space-separated list of EDNS flag text values into a EDNS flags value.
Returns:
int

edns_to_text(flags)

Convert an EDNS flags value into a space-separated list of EDNS flag text values.
Returns:
string

from_text(text)

Convert a space-separated list of flag text values into a flags value.
Returns:
int

to_text(flags)

Convert a flags value into a space-separated list of flag text values.
Returns:
string

Variable Details

AA

Type:
int
Value:
1024                                                                   

AD

Type:
int
Value:
32                                                                     

CD

Type:
int
Value:
16                                                                     

DO

Type:
int
Value:
32768                                                                  

QR

Type:
int
Value:
32768                                                                  

RA

Type:
int
Value:
128                                                                    

RD

Type:
int
Value:
256                                                                    

TC

Type:
int
Value:
512                                                                    

_by_text

Type:
dict
Value:
{'AA': 1024, 'RD': 256, 'QR': 32768, 'AD': 32, 'CD': 16, 'TC': 512, 'R\
A': 128}                                                               

_by_value

Type:
dict
Value:
{32768: 'QR', 1024: 'AA', 512: 'TC', 32: 'AD', 128: 'RA', 256: 'RD', 1\
6: 'CD'}                                                               

_edns_by_text

Type:
dict
Value:
{'DO': 32768}                                                          

_edns_by_value

Type:
dict
Value:
{32768: 'DO'}                                                          

Generated by Epydoc 1.1 on Tue Jun 17 03:55:13 2003 http://epydoc.sf.net