summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6
diff options
context:
space:
mode:
authorChris Koch <chrisko@google.com>2023-02-25 20:35:17 -0800
committerChris K <c@chrisko.ch>2023-02-27 10:35:19 -0800
commit667e3a9e71512220079a51820d57f9e20e9194db (patch)
tree85ad71f9b1cce25cd422077ff5411f3d1ef6d2a5 /dhcpv6
parent533ea4653050f12113cdae0509709de8bb0f828e (diff)
changes bla bla new uio
Signed-off-by: Chris Koch <chrisko@google.com>
Diffstat (limited to 'dhcpv6')
-rw-r--r--dhcpv6/option_iapd_test.go2
-rw-r--r--dhcpv6/option_nontemporaryaddress_test.go2
-rw-r--r--dhcpv6/option_temporaryaddress_test.go4
3 files changed, 4 insertions, 4 deletions
diff --git a/dhcpv6/option_iapd_test.go b/dhcpv6/option_iapd_test.go
index da72f0c..37a835a 100644
--- a/dhcpv6/option_iapd_test.go
+++ b/dhcpv6/option_iapd_test.go
@@ -111,7 +111,7 @@ func TestIAPDParseAndGetter(t *testing.T) {
{
buf: []byte{0, 25, 0, 1, 0},
want: nil,
- err: uio.ErrBufferTooShort,
+ err: uio.ErrUnreadBytes,
},
{
buf: []byte{
diff --git a/dhcpv6/option_nontemporaryaddress_test.go b/dhcpv6/option_nontemporaryaddress_test.go
index d464771..ed9cebd 100644
--- a/dhcpv6/option_nontemporaryaddress_test.go
+++ b/dhcpv6/option_nontemporaryaddress_test.go
@@ -97,7 +97,7 @@ func TestIANAParseAndGetter(t *testing.T) {
{
buf: []byte{0, 3, 0, 1, 0},
want: nil,
- err: uio.ErrBufferTooShort,
+ err: uio.ErrUnreadBytes,
},
{
buf: []byte{
diff --git a/dhcpv6/option_temporaryaddress_test.go b/dhcpv6/option_temporaryaddress_test.go
index 673172a..693ffa6 100644
--- a/dhcpv6/option_temporaryaddress_test.go
+++ b/dhcpv6/option_temporaryaddress_test.go
@@ -85,7 +85,7 @@ func TestIATAParseAndGetter(t *testing.T) {
{
buf: []byte{0, 4, 0, 1, 0},
want: nil,
- err: uio.ErrBufferTooShort,
+ err: uio.ErrUnreadBytes,
},
{
buf: []byte{
@@ -94,7 +94,7 @@ func TestIATAParseAndGetter(t *testing.T) {
1, 0, 0, // IAID too short
},
want: nil,
- err: uio.ErrBufferTooShort,
+ err: uio.ErrUnreadBytes,
},
{
buf: []byte{