summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6
diff options
context:
space:
mode:
authorChris Koch <chrisko@google.com>2021-05-28 05:13:40 -0700
committerChris K <c@chrisko.ch>2021-05-28 05:31:48 -0700
commitfb4eaaa00ad29a188328380690494d9267dc1ccc (patch)
treea9ca37d6dbd11f7a13e3cfc0515c496710d6369a /dhcpv6
parent95b2ff6905c9bd0fdcb17fe6589c95a0840a2b46 (diff)
Break circular dependency on u-root
u-root -> dhcp -> u-root is the circular dependency. Which is fine, except we messed up modules in u-root big time. We need to break the circular dep for now. Signed-off-by: Chris Koch <chrisko@google.com>
Diffstat (limited to 'dhcpv6')
-rw-r--r--dhcpv6/dhcpv6.go2
-rw-r--r--dhcpv6/dhcpv6_test.go2
-rw-r--r--dhcpv6/dhcpv6message.go4
-rw-r--r--dhcpv6/dhcpv6relay.go2
-rw-r--r--dhcpv6/option_4rd.go2
-rw-r--r--dhcpv6/option_bootfileparam.go2
-rw-r--r--dhcpv6/option_clientlinklayeraddress.go2
-rw-r--r--dhcpv6/option_dhcpv4_o_dhcpv6_server.go2
-rw-r--r--dhcpv6/option_dns.go2
-rw-r--r--dhcpv6/option_elapsedtime.go2
-rw-r--r--dhcpv6/option_fqdn.go2
-rw-r--r--dhcpv6/option_iaaddress.go2
-rw-r--r--dhcpv6/option_iapd.go2
-rw-r--r--dhcpv6/option_iaprefix.go2
-rw-r--r--dhcpv6/option_informationrefreshtime.go2
-rw-r--r--dhcpv6/option_nii.go2
-rw-r--r--dhcpv6/option_nontemporaryaddress.go2
-rw-r--r--dhcpv6/option_remoteid.go2
-rw-r--r--dhcpv6/option_requestedoption.go2
-rw-r--r--dhcpv6/option_statuscode.go2
-rw-r--r--dhcpv6/option_temporaryaddress.go2
-rw-r--r--dhcpv6/option_userclass.go2
-rw-r--r--dhcpv6/option_vendor_opts.go2
-rw-r--r--dhcpv6/option_vendorclass.go2
-rw-r--r--dhcpv6/options.go2
25 files changed, 26 insertions, 26 deletions
diff --git a/dhcpv6/dhcpv6.go b/dhcpv6/dhcpv6.go
index 670be56..0f3c7da 100644
--- a/dhcpv6/dhcpv6.go
+++ b/dhcpv6/dhcpv6.go
@@ -8,7 +8,7 @@ import (
"strings"
"github.com/insomniacslk/dhcp/iana"
- "github.com/u-root/u-root/pkg/uio"
+ "github.com/u-root/uio/uio"
)
type DHCPv6 interface {
diff --git a/dhcpv6/dhcpv6_test.go b/dhcpv6/dhcpv6_test.go
index 1ecaa3c..a329e0a 100644
--- a/dhcpv6/dhcpv6_test.go
+++ b/dhcpv6/dhcpv6_test.go
@@ -10,7 +10,7 @@ import (
"github.com/insomniacslk/dhcp/iana"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
- "github.com/u-root/u-root/pkg/rand"
+ "github.com/u-root/uio/rand"
)
func randomReadMock(value []byte, n int, err error) func([]byte) (int, error) {
diff --git a/dhcpv6/dhcpv6message.go b/dhcpv6/dhcpv6message.go
index 0dd219d..e18fd59 100644
--- a/dhcpv6/dhcpv6message.go
+++ b/dhcpv6/dhcpv6message.go
@@ -8,8 +8,8 @@ import (
"github.com/insomniacslk/dhcp/iana"
"github.com/insomniacslk/dhcp/rfc1035label"
- "github.com/u-root/u-root/pkg/rand"
- "github.com/u-root/u-root/pkg/uio"
+ "github.com/u-root/uio/rand"
+ "github.com/u-root/uio/uio"
)
const MessageHeaderSize = 4
diff --git a/dhcpv6/dhcpv6relay.go b/dhcpv6/dhcpv6relay.go
index 26d6ed4..6245b81 100644
--- a/dhcpv6/dhcpv6relay.go
+++ b/dhcpv6/dhcpv6relay.go
@@ -6,7 +6,7 @@ import (
"net"
"github.com/insomniacslk/dhcp/iana"
- "github.com/u-root/u-root/pkg/uio"
+ "github.com/u-root/uio/uio"
)
const RelayHeaderSize = 34
diff --git a/dhcpv6/option_4rd.go b/dhcpv6/option_4rd.go
index 9bac74a..13d672a 100644
--- a/dhcpv6/option_4rd.go
+++ b/dhcpv6/option_4rd.go
@@ -4,7 +4,7 @@ import (
"fmt"
"net"
- "github.com/u-root/u-root/pkg/uio"
+ "github.com/u-root/uio/uio"
)
// Opt4RD represents a 4RD option. It is only a container for 4RD_*_RULE options
diff --git a/dhcpv6/option_bootfileparam.go b/dhcpv6/option_bootfileparam.go
index 4e2750b..1bd54bc 100644
--- a/dhcpv6/option_bootfileparam.go
+++ b/dhcpv6/option_bootfileparam.go
@@ -3,7 +3,7 @@ package dhcpv6
import (
"fmt"
- "github.com/u-root/u-root/pkg/uio"
+ "github.com/u-root/uio/uio"
)
// OptBootFileParam returns a BootfileParam option as defined in RFC 5970
diff --git a/dhcpv6/option_clientlinklayeraddress.go b/dhcpv6/option_clientlinklayeraddress.go
index 91d8a23..7fe5bee 100644
--- a/dhcpv6/option_clientlinklayeraddress.go
+++ b/dhcpv6/option_clientlinklayeraddress.go
@@ -5,7 +5,7 @@ import (
"net"
"github.com/insomniacslk/dhcp/iana"
- "github.com/u-root/u-root/pkg/uio"
+ "github.com/u-root/uio/uio"
)
// OptClientLinkLayerAddress implements OptionClientLinkLayerAddr option.
diff --git a/dhcpv6/option_dhcpv4_o_dhcpv6_server.go b/dhcpv6/option_dhcpv4_o_dhcpv6_server.go
index a46ecac..27a0079 100644
--- a/dhcpv6/option_dhcpv4_o_dhcpv6_server.go
+++ b/dhcpv6/option_dhcpv4_o_dhcpv6_server.go
@@ -4,7 +4,7 @@ import (
"fmt"
"net"
- "github.com/u-root/u-root/pkg/uio"
+ "github.com/u-root/uio/uio"
)
// OptDHCP4oDHCP6Server represents a OptionDHCP4oDHCP6Server option
diff --git a/dhcpv6/option_dns.go b/dhcpv6/option_dns.go
index 3fff699..c7bbf83 100644
--- a/dhcpv6/option_dns.go
+++ b/dhcpv6/option_dns.go
@@ -4,7 +4,7 @@ import (
"fmt"
"net"
- "github.com/u-root/u-root/pkg/uio"
+ "github.com/u-root/uio/uio"
)
// OptDNS returns a DNS Recursive Name Server option as defined by RFC 3646.
diff --git a/dhcpv6/option_elapsedtime.go b/dhcpv6/option_elapsedtime.go
index 0e2547f..93e43b9 100644
--- a/dhcpv6/option_elapsedtime.go
+++ b/dhcpv6/option_elapsedtime.go
@@ -4,7 +4,7 @@ import (
"fmt"
"time"
- "github.com/u-root/u-root/pkg/uio"
+ "github.com/u-root/uio/uio"
)
// OptElapsedTime returns an Elapsed Time option as defined by RFC 3315 Section
diff --git a/dhcpv6/option_fqdn.go b/dhcpv6/option_fqdn.go
index 8bac95d..62affc7 100644
--- a/dhcpv6/option_fqdn.go
+++ b/dhcpv6/option_fqdn.go
@@ -4,7 +4,7 @@ import (
"fmt"
"github.com/insomniacslk/dhcp/rfc1035label"
- "github.com/u-root/u-root/pkg/uio"
+ "github.com/u-root/uio/uio"
)
// OptFQDN implements OptionFQDN option.
diff --git a/dhcpv6/option_iaaddress.go b/dhcpv6/option_iaaddress.go
index bb92c7a..a701f8d 100644
--- a/dhcpv6/option_iaaddress.go
+++ b/dhcpv6/option_iaaddress.go
@@ -5,7 +5,7 @@ import (
"net"
"time"
- "github.com/u-root/u-root/pkg/uio"
+ "github.com/u-root/uio/uio"
)
// AddressOptions are options valid for the IAAddress option field.
diff --git a/dhcpv6/option_iapd.go b/dhcpv6/option_iapd.go
index 496aa81..00bc424 100644
--- a/dhcpv6/option_iapd.go
+++ b/dhcpv6/option_iapd.go
@@ -4,7 +4,7 @@ import (
"fmt"
"time"
- "github.com/u-root/u-root/pkg/uio"
+ "github.com/u-root/uio/uio"
)
// PDOptions are options used with the IAPD (prefix delegation) option.
diff --git a/dhcpv6/option_iaprefix.go b/dhcpv6/option_iaprefix.go
index 750f0cd..6edacf3 100644
--- a/dhcpv6/option_iaprefix.go
+++ b/dhcpv6/option_iaprefix.go
@@ -5,7 +5,7 @@ import (
"net"
"time"
- "github.com/u-root/u-root/pkg/uio"
+ "github.com/u-root/uio/uio"
)
// PrefixOptions are the options valid for use with IAPrefix option field.
diff --git a/dhcpv6/option_informationrefreshtime.go b/dhcpv6/option_informationrefreshtime.go
index 942d5c7..20d8b5c 100644
--- a/dhcpv6/option_informationrefreshtime.go
+++ b/dhcpv6/option_informationrefreshtime.go
@@ -4,7 +4,7 @@ import (
"fmt"
"time"
- "github.com/u-root/u-root/pkg/uio"
+ "github.com/u-root/uio/uio"
)
// OptInformationRefreshTime implements OptionInformationRefreshTime option.
diff --git a/dhcpv6/option_nii.go b/dhcpv6/option_nii.go
index 01d38d4..fc9f579 100644
--- a/dhcpv6/option_nii.go
+++ b/dhcpv6/option_nii.go
@@ -3,7 +3,7 @@ package dhcpv6
import (
"fmt"
- "github.com/u-root/u-root/pkg/uio"
+ "github.com/u-root/uio/uio"
)
// NetworkInterfaceType is the NIC type as defined by RFC 4578 Section 2.2
diff --git a/dhcpv6/option_nontemporaryaddress.go b/dhcpv6/option_nontemporaryaddress.go
index 0b6012e..6e5ddee 100644
--- a/dhcpv6/option_nontemporaryaddress.go
+++ b/dhcpv6/option_nontemporaryaddress.go
@@ -4,7 +4,7 @@ import (
"fmt"
"time"
- "github.com/u-root/u-root/pkg/uio"
+ "github.com/u-root/uio/uio"
)
// Duration is a duration as embedded in IA messages (IAPD, IANA, IATA).
diff --git a/dhcpv6/option_remoteid.go b/dhcpv6/option_remoteid.go
index 494da20..fb028e6 100644
--- a/dhcpv6/option_remoteid.go
+++ b/dhcpv6/option_remoteid.go
@@ -3,7 +3,7 @@ package dhcpv6
import (
"fmt"
- "github.com/u-root/u-root/pkg/uio"
+ "github.com/u-root/uio/uio"
)
// OptRemoteID implemens the Remote ID option as defined by RFC 4649.
diff --git a/dhcpv6/option_requestedoption.go b/dhcpv6/option_requestedoption.go
index 0d16c74..3281a61 100644
--- a/dhcpv6/option_requestedoption.go
+++ b/dhcpv6/option_requestedoption.go
@@ -4,7 +4,7 @@ import (
"fmt"
"strings"
- "github.com/u-root/u-root/pkg/uio"
+ "github.com/u-root/uio/uio"
)
// OptionCodes are a collection of option codes.
diff --git a/dhcpv6/option_statuscode.go b/dhcpv6/option_statuscode.go
index 9248cbd..b6b5a14 100644
--- a/dhcpv6/option_statuscode.go
+++ b/dhcpv6/option_statuscode.go
@@ -4,7 +4,7 @@ import (
"fmt"
"github.com/insomniacslk/dhcp/iana"
- "github.com/u-root/u-root/pkg/uio"
+ "github.com/u-root/uio/uio"
)
// OptStatusCode represents a DHCPv6 Status Code option
diff --git a/dhcpv6/option_temporaryaddress.go b/dhcpv6/option_temporaryaddress.go
index 3aff1d4..f9dd3ca 100644
--- a/dhcpv6/option_temporaryaddress.go
+++ b/dhcpv6/option_temporaryaddress.go
@@ -3,7 +3,7 @@ package dhcpv6
import (
"fmt"
- "github.com/u-root/u-root/pkg/uio"
+ "github.com/u-root/uio/uio"
)
// OptIATA implements the identity association for non-temporary addresses
diff --git a/dhcpv6/option_userclass.go b/dhcpv6/option_userclass.go
index b12b6b9..e5d7b31 100644
--- a/dhcpv6/option_userclass.go
+++ b/dhcpv6/option_userclass.go
@@ -4,7 +4,7 @@ import (
"fmt"
"strings"
- "github.com/u-root/u-root/pkg/uio"
+ "github.com/u-root/uio/uio"
)
// OptUserClass represent a DHCPv6 User Class option
diff --git a/dhcpv6/option_vendor_opts.go b/dhcpv6/option_vendor_opts.go
index e1aebd4..7965908 100644
--- a/dhcpv6/option_vendor_opts.go
+++ b/dhcpv6/option_vendor_opts.go
@@ -3,7 +3,7 @@ package dhcpv6
import (
"fmt"
- "github.com/u-root/u-root/pkg/uio"
+ "github.com/u-root/uio/uio"
)
// OptVendorOpts represents a DHCPv6 Status Code option
diff --git a/dhcpv6/option_vendorclass.go b/dhcpv6/option_vendorclass.go
index 94152a1..1144974 100644
--- a/dhcpv6/option_vendorclass.go
+++ b/dhcpv6/option_vendorclass.go
@@ -5,7 +5,7 @@ import (
"fmt"
"strings"
- "github.com/u-root/u-root/pkg/uio"
+ "github.com/u-root/uio/uio"
)
// OptVendorClass represents a DHCPv6 Vendor Class option
diff --git a/dhcpv6/options.go b/dhcpv6/options.go
index 0ff5148..16e2d8c 100644
--- a/dhcpv6/options.go
+++ b/dhcpv6/options.go
@@ -3,7 +3,7 @@ package dhcpv6
import (
"fmt"
- "github.com/u-root/u-root/pkg/uio"
+ "github.com/u-root/uio/uio"
)
// Option is an interface that all DHCPv6 options adhere to.