Preliminary support for EDNS0_LLQ

This commit is contained in:
Miek Gieben 2013-05-08 22:34:42 +02:00
parent 6ecde82c20
commit 71e3d1dfcb
1 changed files with 26 additions and 1 deletions

27
edns.go
View File

@ -314,7 +314,6 @@ func (e *EDNS0_SUBNET) String() (s string) {
// e.Code = dns.EDNS0UL
// e.Lease = 120 // in seconds
// o.Option = append(o.Option, e)
type EDNS0_UL struct {
Code uint16 // Always EDNS0UL
Lease uint32
@ -341,3 +340,29 @@ func (e *EDNS0_UL) unpack(b []byte) {
func (e *EDNS0_UL) String() string {
return strconv.Itoa(int(e.Lease))
}
// Long Lived Queries: ....
//
//
type EDNS0_LLQ struct {
Code uint16 // Always EDNS0LLQ
}
func (e *EDNS0_LLQ) Option() uint16 {
return EDNS0LLQ
}
func (e *EDNS0_LLQ) pack() ([]byte, error) {
return nil, nil
}
func (e *EDNS0_LLQ) unpack(b []byte) {
}
func (e *EDNS0_LLQ) String() string {
return ""
}