Skip to content

Commit a32442f

Browse files
committed
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>
1 parent bb4f07f commit a32442f

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12367,6 +12367,7 @@ F: include/trace/misc/sunrpc.h
1236712367
F: include/uapi/linux/nfsd/
1236812368
F: include/uapi/linux/sunrpc/
1236912369
F: net/sunrpc/
12370+
F: tools/net/sunrpc/
1237012371

1237112372
KERNEL PACMAN PACKAGING (in addition to generic KERNEL BUILD)
1237212373
M: Thomas Weißschuh <linux@weissschuh.net>

tools/net/sunrpc/extract.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#! /bin/sh
2+
# SPDX-License-Identifier: GPL-2.0
3+
#
4+
# Extract an RPC protocol specification from an RFC document.
5+
# The version of this script comes from RFC 8166.
6+
#
7+
# Usage:
8+
# $ extract.sh < rfcNNNN.txt > protocol.x
9+
#
10+
11+
grep '^ *///' | sed 's?^ */// ??' | sed 's?^ *///$??'

0 commit comments

Comments
 (0)