Skip to content

Commit

Permalink
xdrgen: Add a utility for extracting XDR from RFCs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chuck Lever committed Nov 19, 2024
1 parent bb4f07f commit a32442f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
11 changes: 11 additions & 0 deletions tools/net/sunrpc/extract.sh
Original file line number Diff line number Diff line change
@@ -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?^ *///$??'

0 comments on commit a32442f

Please sign in to comment.