diff options
author | David Doan <daviddoan@Davids-MacBook-Pro-70.local> | 2023-10-23 18:35:06 -0400 |
---|---|---|
committer | David Doan <daviddoan@Davids-MacBook-Pro-70.local> | 2023-10-23 18:35:06 -0400 |
commit | 24e1643ec354358241c71f578c20ebe76b60dfb7 (patch) | |
tree | ed1a32b3f8e52b301f771853bea7ca7c5cae123e | |
parent | c4953632a5ce653301def74b19932c6d9703b174 (diff) |
sectioning comments
-rw-r--r-- | pkg/ipstack/ipstack.go | 17 |
1 files changed, 9 insertions, 8 deletions
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 { |