rdata_opt_fromWire 347 B

12345678910111213141516
  1. #
  2. # various kinds of OPT RDATA stored in an input buffer
  3. #
  4. # empty RDATA (which is okay)
  5. #
  6. # 0 1 (bytes)
  7. 00 00
  8. #
  9. # an OPT RR containing an NSID Option
  10. # code=3 len=3 ID value (opaque)
  11. # 2 3 4 5 6 7 8 9 10
  12. 00 07 00 03 00 03 00 01 02
  13. #
  14. # short buffer (this can be tested only at the end of the buffer)
  15. # 1 2 3 4 5
  16. 00 04 c0 00 02