fix missing ipv6 subtype

This commit is contained in:
Melora Hugues 2023-09-18 14:15:11 +02:00
parent 3a210984eb
commit c12efdda11
2 changed files with 2 additions and 1 deletions

View file

@ -26,6 +26,7 @@ const (
SATAMessaging DeviceNodeSubType = 18
MacMessagingSubType DeviceNodeSubType = 11
IPv4MessagingSubType DeviceNodeSubType = 12
IPv6MessagingSubType DeviceNodeSubType = 13
)
const EndOfEntireDevicePath DeviceNodeSubType = 0xFF

View file

@ -20,7 +20,7 @@ func (ip *Ipv6DevicePath) Type() DeviceNodeType {
}
func (ip *Ipv6DevicePath) SubType() DeviceNodeSubType {
return IPv4MessagingSubType
return IPv6MessagingSubType
}
func (ip *Ipv6DevicePath) Bytes() []byte {