diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2024-10-07 14:07:54 -0400 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2024-11-18 20:22:59 -0500 |
commit | a32442f6ca32cf402a76856d5e713bd742481ba2 (patch) | |
tree | a147316482e4383764dd7d7917208ad44d877a23 | |
parent | bb4f07f2409c26c01e97e6f9b432545f353e3b66 (diff) |
xdrgen: Add a utility for extracting XDR from RFCs
For convenience, copy the XDR extraction script from RFC
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
-rw-r--r-- | MAINTAINERS | 1 | ||||
-rwxr-xr-x | tools/net/sunrpc/extract.sh | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/MAINTAINERS b/MAINTAINERS index 21fdaa19229a..f711449753b3 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12367,6 +12367,7 @@ F: include/trace/misc/sunrpc.h F: include/uapi/linux/nfsd/ F: include/uapi/linux/sunrpc/ F: net/sunrpc/ +F: tools/net/sunrpc/ KERNEL PACMAN PACKAGING (in addition to generic KERNEL BUILD) M: Thomas Weißschuh <linux@weissschuh.net> diff --git a/tools/net/sunrpc/extract.sh b/tools/net/sunrpc/extract.sh new file mode 100755 index 000000000000..f944066f25bc --- /dev/null +++ b/tools/net/sunrpc/extract.sh @@ -0,0 +1,11 @@ +#! /bin/sh +# SPDX-License-Identifier: GPL-2.0 +# +# Extract an RPC protocol specification from an RFC document. +# The version of this script comes from RFC 8166. +# +# Usage: +# $ extract.sh < rfcNNNN.txt > protocol.x +# + +grep '^ *///' | sed 's?^ */// ??' | sed 's?^ *///$??' |