Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 846 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 846 Bytes

RFC4506 XDR generator for Go

CI

Run make to build the go-rpcgen tool and compile several specs, including NFS (rfc1813) and SUNRPC (rfc1057).

You will likely need to go install golang.org/x/tools/cmd/goyacc@latest to run make in order to re-generate the encoders and decoders.

There is an example client in example/client/main.go that connects to an NFS server and issues some NFS RPCs, and an example server in example/server/main.go.

Fuzzing the decoders

( cd rfc1057 && ulimit -d 1048576 && go test -v . -fuzz=Fuzz )
( cd rfc1813 && ulimit -d 1048576 && go test -v . -fuzz=Fuzz )

TODO

  • Validate that encoded/decoded enums match one of the allowed values.