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
str x
int y

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                                                                    

x

Type:
str
Value:
'DO'                                                                   

y

Type:
int
Value:
32768                                                                  

Generated by Epydoc 1.1 on Sun Aug 10 21:36:14 2003 http://epydoc.sf.net