aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/udplite.h
diff options
context:
space:
mode:
authorMichael Tuexen <tuexen@FreeBSD.org>2018-07-31 22:56:03 +0000
committerMichael Tuexen <tuexen@FreeBSD.org>2018-07-31 22:56:03 +0000
commit7bda9663949a80e4e56006369d6df8dc8eeb6cff (patch)
tree97771f5001ef969f5548e1c95129169ba47649f7 /sys/netinet/udplite.h
parent200c27a75d0f4bd48ad118bb4fbccbb4e5896c7f (diff)
downloadsrc-7bda9663949a80e4e56006369d6df8dc8eeb6cff.tar.gz
src-7bda9663949a80e4e56006369d6df8dc8eeb6cff.zip
Add a dtrace provider for UDP-Lite.
The dtrace provider for UDP-Lite is modeled after the UDP provider. This fixes the bug that UDP-Lite packets were triggering the UDP provider. Thanks to dteske@ for providing the dwatch module. Reviewed by: dteske@, markj@, rrs@ Relnotes: yes Differential Revision: https://reviews.freebsd.org/D16377
Notes
Notes: svn path=/head/; revision=337018
Diffstat (limited to 'sys/netinet/udplite.h')
-rw-r--r--sys/netinet/udplite.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/netinet/udplite.h b/sys/netinet/udplite.h
index 0e23cd70a21b..57a1422a9407 100644
--- a/sys/netinet/udplite.h
+++ b/sys/netinet/udplite.h
@@ -29,6 +29,17 @@
#ifndef _NETINET_UDPLITE_H_
#define _NETINET_UDPLITE_H_
+/*
+ * UDP-Lite protocol header.
+ * Per RFC 3828, July, 2004.
+ */
+struct udplitehdr {
+ u_short udplite_sport; /* UDO-Lite source port */
+ u_short udplite_dport; /* UDP-Lite destination port */
+ u_short udplite_coverage; /* UDP-Lite checksum coverage */
+ u_short udplite_checksum; /* UDP-Lite checksum */
+};
+
/*
* User-settable options (used with setsockopt).
*/