func MustMarshalAttributes(attrs []netlink.Attribute) []byte {
	b, err := netlink.MarshalAttributes(attrs)
	if err != nil {
		panic(fmt.Sprintf("failed to marshal attributes to binary: %v", err))
	}
	return b
}
MustMarshalAttributes marshals a slice of netlink.Attributes to their binary
format, but panics if any errors occur.
package nltest
import (
	"fmt"
	"io"
	"os"
	"github.com/mdlayher/netlink"
	"github.com/mdlayher/netlink/nlenc"
)
const PID = 1