add HIP here too
This commit is contained in:
parent
c5c7ade63b
commit
32ce3502ae
1
msg.go
1
msg.go
|
@ -109,6 +109,7 @@ var Rr_str = map[uint16]string{
|
|||
TypeOPT: "OPT",
|
||||
TypeDS: "DS",
|
||||
TypeDHCID: "DHCID",
|
||||
TypeHIP: "HIP"
|
||||
TypeIPSECKEY: "IPSECKEY",
|
||||
TypeSSHFP: "SSHFP",
|
||||
TypeRRSIG: "RRSIG",
|
||||
|
|
|
@ -409,3 +409,14 @@ moutamassey NS ns01.yahoodomains.jp.
|
|||
fmt.Printf("%s\n", x.RR)
|
||||
}
|
||||
}
|
||||
|
||||
func ExampleHIP() {
|
||||
h := `www.example.com. IN HIP ( 2 200100107B1A74DF365639CC39F1D578
|
||||
AwEAAbdxyhNuSutc5EMzxTs9LBPCIkOFH8cIvM4p
|
||||
9+LrV4e19WzK00+CI6zBCQTdtWsuxKbWIy87UOoJTwkUs7lBu+Upr1gsNrut79ryra+bSRGQ
|
||||
b1slImA8YVJyuIDsj7kwzG7jnERNqnWxZ48AWkskmdHaVDP4BcelrTI3rMXdXF5D
|
||||
rvs.example.com. )`
|
||||
if hip, err := NewRR(h); err != nil {
|
||||
fmt.Printf("%s\n", hip.String())
|
||||
}
|
||||
}
|
||||
|
|
|
@ -406,7 +406,7 @@ func setHIP(h RR_Header, c chan lex, o, f string) (RR, *ParseError) {
|
|||
}
|
||||
<-c // _BLANK
|
||||
l = <-c // _STRING
|
||||
rr.Hit = l.token // Can this have spaces? TODO
|
||||
rr.Hit = l.token // This can not contain spaces, see RFC 5205 Section 6.
|
||||
|
||||
<-c // _BLANK
|
||||
l = <-c // _STRING
|
||||
|
|
Loading…
Reference in New Issue