Summary
Add helper functions to make it easier to construct SourceDescription CNAME packets.
Motivation
Currently it's cumbersome to generate CNAME packets:
cname := &SourceDescription{
Chunks: []SourceDescriptionChunk{{
Source: 1234,
Items: []SourceDescriptionItem{{
Type: SDESCNAME,
Text: "cname",
}},
}},
}
Because every CompoundPacket requires a SourceDescription with a CNAME, we should make creating these packets easy.
Summary
Add helper functions to make it easier to construct SourceDescription CNAME packets.
Motivation
Currently it's cumbersome to generate CNAME packets:
Because every CompoundPacket requires a SourceDescription with a CNAME, we should make creating these packets easy.