Re: [PATCH] xdrgen: Add a utility for extracting XDR from RFCs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2024-10-07 at 14:07 -0400, cel@xxxxxxxxxx wrote:
> From: Chuck Lever <chuck.lever@xxxxxxxxxx>
> 
> For convenience, copy the XDR extraction script from RFC
> 
> Signed-off-by: Chuck Lever <chuck.lever@xxxxxxxxxx>
> ---
>  tools/net/sunrpc/extract.sh | 10 ++++++++++
>  1 file changed, 10 insertions(+)
>  create mode 100755 tools/net/sunrpc/extract.sh
> 
> diff --git a/tools/net/sunrpc/extract.sh b/tools/net/sunrpc/extract.sh
> new file mode 100755
> index 000000000000..13b0036eaa81
> --- /dev/null
> +++ b/tools/net/sunrpc/extract.sh
> @@ -0,0 +1,10 @@
> +#! /bin/sh
> +#
> +# 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?^ *///$??'

It might be nice to mention where to get the versions of the .txt files
that have the "///" annotation before the source code bits. Are those
available somewhere?

Reviewed-by: Jeff Layton <jlayton@xxxxxxxxxx>





[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux