aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Doan <daviddoan@Davids-MacBook-Pro-70.local>2023-10-23 18:31:46 -0400
committerDavid Doan <daviddoan@Davids-MacBook-Pro-70.local>2023-10-23 18:31:46 -0400
commitb44583954cb762755e85d58da0a9527fa369c01e (patch)
treeac9eac0c0a92d02b2ed4e0781b2aed282e7a8d60
parent93416359403895d1dd1584c316d9e3dbfcc7a673 (diff)
sectioning comments
-rw-r--r--pkg/ipstack/ipstack.go13
-rwxr-xr-xvhostbin3105370 -> 3110277 bytes
-rwxr-xr-xvrouterbin3105378 -> 3110285 bytes
3 files changed, 12 insertions, 1 deletions
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) {
diff --git a/vhost b/vhost
index 5cbef76..7df252c 100755
--- a/vhost
+++ b/vhost
Binary files differ
diff --git a/vrouter b/vrouter
index b7bf03d..1be1e48 100755
--- a/vrouter
+++ b/vrouter
Binary files differ