From 638d64c6337d05b91f0bde81de8e1c8d6d9908d8 Mon Sep 17 00:00:00 2001 From: Julian Elischer Date: Thu, 12 Nov 2020 18:36:45 -0800 Subject: Change AllocationSize to SizeWithPadding as requested RELNOTES: n/a PiperOrigin-RevId: 342176296 --- pkg/tcpip/stack/registration.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/tcpip/stack/registration.go') diff --git a/pkg/tcpip/stack/registration.go b/pkg/tcpip/stack/registration.go index 1b1603bee..79d024662 100644 --- a/pkg/tcpip/stack/registration.go +++ b/pkg/tcpip/stack/registration.go @@ -262,10 +262,10 @@ const ( // NetOptions is an interface that allows us to pass network protocol specific // options through the Stack layer code. type NetOptions interface { - // AllocationSize returns the amount of memory that must be allocated to + // SizeWithPadding returns the amount of memory that must be allocated to // hold the options given that the value must be rounded up to the next // multiple of 4 bytes. - AllocationSize() int + SizeWithPadding() int } // NetworkHeaderParams are the header parameters given as input by the -- cgit v1.2.3