summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/miekg/dns/internal/socket/cmsghdr.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/miekg/dns/internal/socket/cmsghdr.go')
-rw-r--r--vendor/github.com/miekg/dns/internal/socket/cmsghdr.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/vendor/github.com/miekg/dns/internal/socket/cmsghdr.go b/vendor/github.com/miekg/dns/internal/socket/cmsghdr.go
new file mode 100644
index 000000000..62f2d2f74
--- /dev/null
+++ b/vendor/github.com/miekg/dns/internal/socket/cmsghdr.go
@@ -0,0 +1,7 @@
+// +build linux
+
+package socket
+
+func (h *cmsghdr) len() int { return int(h.Len) }
+func (h *cmsghdr) lvl() int { return int(h.Level) }
+func (h *cmsghdr) typ() int { return int(h.Type) }