summaryrefslogtreecommitdiffstats
path: root/third_party/rust/dns-parser/src/rdata/opt.rs
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/rust/dns-parser/src/rdata/opt.rs')
-rw-r--r--third_party/rust/dns-parser/src/rdata/opt.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/third_party/rust/dns-parser/src/rdata/opt.rs b/third_party/rust/dns-parser/src/rdata/opt.rs
new file mode 100644
index 0000000000..694d393440
--- /dev/null
+++ b/third_party/rust/dns-parser/src/rdata/opt.rs
@@ -0,0 +1,18 @@
+/// RFC 6891 OPT RR
+#[derive(Debug)]
+pub struct Record<'a> {
+ pub udp: u16,
+ pub extrcode: u8,
+ pub version: u8,
+ pub flags: u16,
+ pub data: super::RData<'a>,
+}
+
+impl<'a> super::Record<'a> for Record<'a> {
+
+ const TYPE: isize = 41;
+
+ fn parse(_rdata: &'a [u8], _original: &'a [u8]) -> super::RDataResult<'a> {
+ unimplemented!();
+ }
+}