From 24e1643ec354358241c71f578c20ebe76b60dfb7 Mon Sep 17 00:00:00 2001 From: David Doan Date: Mon, 23 Oct 2023 18:35:06 -0400 Subject: sectioning comments --- pkg/ipstack/ipstack.go | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'pkg/ipstack/ipstack.go') diff --git a/pkg/ipstack/ipstack.go b/pkg/ipstack/ipstack.go index 0cea26f..725cc49 100644 --- a/pkg/ipstack/ipstack.go +++ b/pkg/ipstack/ipstack.go @@ -1,14 +1,15 @@ package ipstack -// code begins on line 96 after imports, constants, and structs definitions +// code begins on line 97 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 +// 5) ROUTE FUNCTIONS +// 6) RIP FUNCTIONS +// 7) PROTOCOL HANDLERS +// 9) CHECKSUM FUNCTIONS +// 9) HELPERS import ( @@ -375,7 +376,7 @@ func HandleTestPackets(src *Interface, message []byte, hdr *ipv4header.IPv4Heade return nil } -// ************************************** BASIC FUNCTIONS ********************************************************** +// ************************************** ROUTE FUNCTIONS ********************************************************** // cleans up the data structures and closes the UDP sockets func CleanUp() { @@ -604,7 +605,7 @@ func RecvIP(iface *Interface, isOpen *bool) error { return nil } -// ************************************** RIP Routines ******************************************************* +// ************************************** RIP FUNCTIONS ******************************************************* // creates a byte array that represents a RIP message func MakeRipMessage(command uint16, entries []RIPEntry) []byte { @@ -768,7 +769,7 @@ func StartRipRoutines() { go ManageTimeoutsRoutine() } -// ************************************** Protocol Handlers ******************************************************* +// ************************************** PROTOCOL HANDLERS ******************************************************* // registers a protocol handler func RegisterProtocolHandler(protocolNum int) bool { -- cgit v1.2.3-70-g09d2