From b44583954cb762755e85d58da0a9527fa369c01e Mon Sep 17 00:00:00 2001 From: David Doan Date: Mon, 23 Oct 2023 18:31:46 -0400 Subject: sectioning comments --- pkg/ipstack/ipstack.go | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'pkg/ipstack/ipstack.go') diff --git a/pkg/ipstack/ipstack.go b/pkg/ipstack/ipstack.go index 6c2330d..475e569 100644 --- a/pkg/ipstack/ipstack.go +++ b/pkg/ipstack/ipstack.go @@ -1,4 +1,15 @@ package ipstack +// code begins on line 96 after imports, constants, and structs definitions +// This class is divided as follows: +// 1) INIT FUNCTIONS +// 2) DOWN/UP FUNCTIONS +// 3) GETTER FUNCTIONS +// 4) PRINT FUNCTIONS +// 5) BASIC FUNCTIONS +// 6) PROTOCOL HANDLERS +// 7) CHECKSUM FUNCTIONS +// 8) HELPERS + import ( "encoding/binary" @@ -936,7 +947,7 @@ func ValidateChecksum(b []byte, fromHeader uint16) uint16 { return checksum } -// ******************************************* RIP HELPERS ********************************************************** +// *********************************************** HELPERS ********************************************************** // returns the longest prefix match for a given ip func LongestPrefix(src netip.Addr) (Hop, error) { -- cgit v1.2.3-70-g09d2