Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 May 2017 07:44:07 +0000 (UTC)
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r317789 - head/lib/libsysdecode
Message-ID:  <201705040744.v447i7S8034323@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tuexen
Date: Thu May  4 07:44:07 2017
New Revision: 317789
URL: https://svnweb.freebsd.org/changeset/base/317789

Log:
  Add support for socket option names related to the level IPPROTO_UDPLITE.

Modified:
  head/lib/libsysdecode/flags.c
  head/lib/libsysdecode/mktables

Modified: head/lib/libsysdecode/flags.c
==============================================================================
--- head/lib/libsysdecode/flags.c	Thu May  4 06:45:43 2017	(r317788)
+++ head/lib/libsysdecode/flags.c	Thu May  4 07:44:07 2017	(r317789)
@@ -50,6 +50,7 @@ __FBSDID("$FreeBSD$");
 #include <netinet/sctp.h>
 #include <netinet/tcp.h>
 #include <netinet/udp.h>
+#include <netinet/udplite.h>
 #include <nfsserver/nfs.h>
 #include <ufs/ufs/quota.h>
 #include <vm/vm.h>
@@ -759,6 +760,8 @@ sysdecode_sockopt_name(int level, int op
 		return (lookup_value(sockopttcp, optname));
 	if (level == IPPROTO_UDP)
 		return (lookup_value(sockoptudp, optname));
+	if (level == IPPROTO_UDPLITE)
+		return (lookup_value(sockoptudplite, optname));
 	return (NULL);
 }
 

Modified: head/lib/libsysdecode/mktables
==============================================================================
--- head/lib/libsysdecode/mktables	Thu May  4 06:45:43 2017	(r317788)
+++ head/lib/libsysdecode/mktables	Thu May  4 07:44:07 2017	(r317789)
@@ -134,6 +134,7 @@ gen_table "sockoptipv6"     "IPV6_[[:aln
 gen_table "sockoptsctp"     "SCTP_[[:alnum:]_]+[[:space:]]+[0-9]+"         "netinet/sctp.h"
 gen_table "sockopttcp"      "TCP_[[:alnum:]_]+[[:space:]]+[0-9]+"          "netinet/tcp.h"      "TCP_MIN|TCP_MAX[^S]|TCP_MSS|TCP_[[:alnum:]_]+_MAX"
 gen_table "sockoptudp"      "UDP_[[:alnum:]]+[[:space:]]+[0-9]+"           "netinet/udp.h"      "UDP_ENCAP_"
+gen_table "sockoptudplite"  "UDPLITE_[[:alnum:]_]+[[:space:]]+[0-9]+"      "netinet/udplite.h"
 gen_table "socktype"        "SOCK_[A-Z]+[[:space:]]+[1-9]+[0-9]*"          "sys/socket.h"
 gen_table "thrcreateflags"  "THR_[A-Z]+[[:space:]]+0x[0-9]+"               "sys/thr.h"
 gen_table "umtxop"          "UMTX_OP_[[:alnum:]_]+[[:space:]]+[0-9]+"      "sys/umtx.h"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705040744.v447i7S8034323>