summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv6')
-rw-r--r--dhcpv6/iputils_test.go2
-rw-r--r--dhcpv6/option_vendor_opts.go2
-rw-r--r--dhcpv6/server.go1
3 files changed, 2 insertions, 3 deletions
diff --git a/dhcpv6/iputils_test.go b/dhcpv6/iputils_test.go
index faa13a8..02ee2d6 100644
--- a/dhcpv6/iputils_test.go
+++ b/dhcpv6/iputils_test.go
@@ -52,7 +52,7 @@ func (s *MatchingAddressTestSuite) SetupTest() {
}
func (s *MatchingAddressTestSuite) TestGetMatchingAddr() {
- // Check if error from InterfaceAddresses immidately returns error
+ // Check if error from InterfaceAddresses immediately returns error
s.m.On("InterfaceAddresses", "eth0").Return(nil, ErrDummy).Once()
_, err := getMatchingAddr("eth0", s.Match)
s.Assert().Equal(ErrDummy, err)
diff --git a/dhcpv6/option_vendor_opts.go b/dhcpv6/option_vendor_opts.go
index a2281e3..de35141 100644
--- a/dhcpv6/option_vendor_opts.go
+++ b/dhcpv6/option_vendor_opts.go
@@ -90,7 +90,7 @@ func ParseOptVendorOpts(data []byte) (*OptVendorOpts, error) {
}
// vendParseOption builds a GenericOption from a slice of bytes
-// We cannot use the exisitng ParseOption function in options.go because the
+// We cannot use the existing ParseOption function in options.go because the
// sub-options include codes specific to each vendor. There are overlaps in these
// codes with RFC standard codes.
func vendParseOption(dataStart []byte) (Option, error) {
diff --git a/dhcpv6/server.go b/dhcpv6/server.go
index 8996bfb..daefdd0 100644
--- a/dhcpv6/server.go
+++ b/dhcpv6/server.go
@@ -136,7 +136,6 @@ func (s *Server) ActivateAndServe() error {
}
go s.Handler(pc, peer, m)
}
- return nil
}
// Close sends a termination request to the server, and closes the UDP listener