summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChristian Muehlhaeuser <muesli@gmail.com>2019-07-22 10:31:59 +0200
committerPablo Mazzini <pmazzini@gmail.com>2019-07-22 09:31:59 +0100
commitfb386c2f1b98064a7cd2afb459066f779cd36d59 (patch)
tree330c764c8e315c188be1d794434b1e30e2607b53
parentdc1a534005648cf762ec3b53f69dd80497187aeb (diff)
Fixed typos in dhcpv4 (#303)
Simple, nit-picky typo fixes.
-rw-r--r--dhcpv4/nclient4/ipv4.go2
-rw-r--r--dhcpv4/ztpv4/parse_circuitid.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/dhcpv4/nclient4/ipv4.go b/dhcpv4/nclient4/ipv4.go
index 81ba837..d5c30ee 100644
--- a/dhcpv4/nclient4/ipv4.go
+++ b/dhcpv4/nclient4/ipv4.go
@@ -101,7 +101,7 @@ const (
)
var (
- // IPv4Broadcast is the broadcast address of the IPv4 procotol.
+ // IPv4Broadcast is the broadcast address of the IPv4 protocol.
IPv4Broadcast = net.IP{0xff, 0xff, 0xff, 0xff}
// IPv4Any is the non-routable IPv4 "any" meta address.
diff --git a/dhcpv4/ztpv4/parse_circuitid.go b/dhcpv4/ztpv4/parse_circuitid.go
index a0616f2..32a17e3 100644
--- a/dhcpv4/ztpv4/parse_circuitid.go
+++ b/dhcpv4/ztpv4/parse_circuitid.go
@@ -24,7 +24,7 @@ var circuitRegexs = []*regexp.Regexp{
// Juniper EX ge-0/0/0.0
regexp.MustCompile("^ge-(?P<slot>[0-9]+)/(?P<mod>[0-9]+)/(?P<port>[0-9]+).(?P<subport>[0-9]+).*"),
// Arista Ethernet3/17/1
- // Sometimes Arista prepend circuit id type(1 byte) and length(1 byte) not useing ^
+ // Sometimes Arista prepend circuit id type(1 byte) and length(1 byte) not using ^
regexp.MustCompile("Ethernet(?P<slot>[0-9]+)/(?P<mod>[0-9]+)/(?P<port>[0-9]+)$"),
// Juniper QFX et-1/0/61
regexp.MustCompile("^et-(?P<slot>[0-9]+)/(?P<mod>[0-9]+)/(?P<port>[0-9]+)$"),