From c12efdda113e1315b46a72ee45a9b7eee8eaec68 Mon Sep 17 00:00:00 2001 From: Melora Hugues Date: Mon, 18 Sep 2023 14:15:11 +0200 Subject: [PATCH] fix missing ipv6 subtype --- base.go | 1 + ipv6.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/base.go b/base.go index 89e67b9..cce932f 100644 --- a/base.go +++ b/base.go @@ -26,6 +26,7 @@ const ( SATAMessaging DeviceNodeSubType = 18 MacMessagingSubType DeviceNodeSubType = 11 IPv4MessagingSubType DeviceNodeSubType = 12 + IPv6MessagingSubType DeviceNodeSubType = 13 ) const EndOfEntireDevicePath DeviceNodeSubType = 0xFF diff --git a/ipv6.go b/ipv6.go index 49e0e7b..ceb0d2e 100644 --- a/ipv6.go +++ b/ipv6.go @@ -20,7 +20,7 @@ func (ip *Ipv6DevicePath) Type() DeviceNodeType { } func (ip *Ipv6DevicePath) SubType() DeviceNodeSubType { - return IPv4MessagingSubType + return IPv6MessagingSubType } func (ip *Ipv6DevicePath) Bytes() []byte {