From b97dee873b419c5386b2742530c98a18dae36e2b Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 7 Feb 2020 22:26:45 +0100 Subject: pkg/compiler: allow for escaped strings This adds stringnozescapes to allow parsing of escape sequences in strings. --- sys/linux/gen/386.go | 20 ++++++++++---------- sys/linux/gen/amd64.go | 20 ++++++++++---------- sys/linux/gen/arm.go | 20 ++++++++++---------- sys/linux/gen/arm64.go | 20 ++++++++++---------- sys/linux/gen/mips64le.go | 20 ++++++++++---------- sys/linux/gen/ppc64le.go | 20 ++++++++++---------- sys/linux/socket_netlink_generic_wireguard.txt | 18 +++++++++--------- 7 files changed, 69 insertions(+), 69 deletions(-) (limited to 'sys/linux') diff --git a/sys/linux/gen/386.go b/sys/linux/gen/386.go index 261463775..4d31b4cb3 100644 --- a/sys/linux/gen/386.go +++ b/sys/linux/gen/386.go @@ -45533,17 +45533,17 @@ var structDescs_386 = []*KeyedStruct{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "upix", TypeSize: 2, ArgDir: 1}}}, }}}, {StructKey{Name: "wireguard_private_key"}, &StructDesc{TypeCommon: TypeCommon{TypeName: "wireguard_private_key", TypeSize: 128}, Fields: []Type{ - &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "zero", TypeSize: 128}, Kind: 2, Values: []string{"\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00"}, NoZ: true}, - &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "a", TypeSize: 128}, Kind: 2, Values: []string{"\\xa0\\x5c\\xa8\\x4f\\x6c\\x9c\\x8e\\x38\\x53\\xe2\\xfd\\x7a\\x70\\xae\\x0f\\xb2\\x0f\\xa1\\x52\\x60\\x0c\\xb0\\x08\\x45\\x17\\x4f\\x08\\x07\\x6f\\x8d\\x78\\x43"}, NoZ: true}, - &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "b", TypeSize: 128}, Kind: 2, Values: []string{"\\xb0\\x80\\x73\\xe8\\xd4\\x4e\\x91\\xe3\\xda\\x92\\x2c\\x22\\x43\\x82\\x44\\xbb\\x88\\x5c\\x69\\xe2\\x69\\xc8\\xe9\\xd8\\x35\\xb1\\x14\\x29\\x3a\\x4d\\xdc\\x6e"}, NoZ: true}, - &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "c", TypeSize: 128}, Kind: 2, Values: []string{"\\xa0\\xcb\\x87\\x9a\\x47\\xf5\\xbc\\x64\\x4c\\x0e\\x69\\x3f\\xa6\\xd0\\x31\\xc7\\x4a\\x15\\x53\\xb6\\xe9\\x01\\xb9\\xff\\x2f\\x51\\x8c\\x78\\x04\\x2f\\xb5\\x42"}, NoZ: true}, + &BufferType{TypeCommon: TypeCommon{TypeName: "stringnozescapes", FldName: "zero", TypeSize: 128}, Kind: 2, Values: []string{"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}, NoZ: true}, + &BufferType{TypeCommon: TypeCommon{TypeName: "stringnozescapes", FldName: "a", TypeSize: 128}, Kind: 2, Values: []string{"\xa0\\\xa8Ol\x9c\x8e8S\xe2\xfdzp\xae\x0f\xb2\x0f\xa1R`\f\xb0\bE\x17O\b\ao\x8dxC"}, NoZ: true}, + &BufferType{TypeCommon: TypeCommon{TypeName: "stringnozescapes", FldName: "b", TypeSize: 128}, Kind: 2, Values: []string{"\xb0\x80s\xe8\xd4N\x91\xe3ڒ,\"C\x82D\xbb\x88\\i\xe2i\xc8\xe9\xd85\xb1\x14):M\xdcn"}, NoZ: true}, + &BufferType{TypeCommon: TypeCommon{TypeName: "stringnozescapes", FldName: "c", TypeSize: 128}, Kind: 2, Values: []string{"\xa0ˇ\x9aG\xf5\xbcdL\x0ei?\xa6\xd01\xc7J\x15S\xb6\xe9\x01\xb9\xff/Q\x8cx\x04/\xb5B"}, NoZ: true}, }}}, {StructKey{Name: "wireguard_public_key"}, &StructDesc{TypeCommon: TypeCommon{TypeName: "wireguard_public_key", TypeSize: 128}, Fields: []Type{ - &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "zero", TypeSize: 128}, Kind: 2, Values: []string{"\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00"}, NoZ: true}, - &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "neg", TypeSize: 128}, Kind: 2, Values: []string{"\\xdb\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff"}, NoZ: true}, - &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "a_g", TypeSize: 128}, Kind: 2, Values: []string{"\\x97\\x5c\\x9d\\x81\\xc9\\x83\\xc8\\x20\\x9e\\xe7\\x81\\x25\\x4b\\x89\\x9f\\x8e\\xd9\\x25\\xae\\x9f\\x09\\x23\\xc2\\x3c\\x62\\xf5\\x3c\\x57\\xcd\\xbf\\x69\\x1c"}, NoZ: true}, - &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "b_g", TypeSize: 128}, Kind: 2, Values: []string{"\\xd1\\x73\\x28\\x99\\xf6\\x11\\xcd\\x89\\x94\\x03\\x4d\\x7f\\x41\\x3d\\xc9\\x57\\x63\\x0e\\x54\\x93\\xc2\\x85\\xac\\xa4\\x00\\x65\\xcb\\x63\\x11\\xbe\\x69\\x6b"}, NoZ: true}, - &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "c_g", TypeSize: 128}, Kind: 2, Values: []string{"\\xf4\\x4d\\xa3\\x67\\xa8\\x8e\\xe6\\x56\\x4f\\x02\\x02\\x11\\x45\\x67\\x27\\x08\\x2f\\x5c\\xeb\\xee\\x8b\\x1b\\xf5\\xeb\\x73\\x37\\x34\\x1b\\x45\\x9b\\x39\\x22"}, NoZ: true}, + &BufferType{TypeCommon: TypeCommon{TypeName: "stringnozescapes", FldName: "zero", TypeSize: 128}, Kind: 2, Values: []string{"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}, NoZ: true}, + &BufferType{TypeCommon: TypeCommon{TypeName: "stringnozescapes", FldName: "neg", TypeSize: 128}, Kind: 2, Values: []string{"\xdb\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff"}, NoZ: true}, + &BufferType{TypeCommon: TypeCommon{TypeName: "stringnozescapes", FldName: "a_g", TypeSize: 128}, Kind: 2, Values: []string{"\x97\\\x9d\x81Ƀ\xc8 \x9e\xe7\x81%K\x89\x9f\x8e\xd9%\xae\x9f\t#\xc2