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 = 1024                                                                  
int AD = 32                                                                    
int CD = 16                                                                    
int DO = 32768                                                                 
int QR = 32768                                                                 
int RA = 128                                                                   
int RD = 256                                                                   
int TC = 512                                                                   

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                                                                   

Generated by Epydoc 2.1 on Sun Jan 30 10:41:36 2005 http://epydoc.sf.net