diff options
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/ipstack/ipstack.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/ipstack/ipstack.go b/pkg/ipstack/ipstack.go index 6bce6e8..d3178b8 100644 --- a/pkg/ipstack/ipstack.go +++ b/pkg/ipstack/ipstack.go @@ -680,6 +680,7 @@ func StartRipRoutines() { // ************************************** PROTOCOL HANDLERS ******************************************************* // RegisterProtocolHandler registers a protocol handler for a given protocol number +// Returns true if the protocol number is valid, false otherwise func RegisterProtocolHandler(protocolNum int) bool { if protocolNum == RIP_PROTOCOL { protocolHandlers[protocolNum] = HandleRIP |