fix missing ipv6 subtype
This commit is contained in:
parent
3a210984eb
commit
c12efdda11
2 changed files with 2 additions and 1 deletions
1
base.go
1
base.go
|
@ -26,6 +26,7 @@ const (
|
||||||
SATAMessaging DeviceNodeSubType = 18
|
SATAMessaging DeviceNodeSubType = 18
|
||||||
MacMessagingSubType DeviceNodeSubType = 11
|
MacMessagingSubType DeviceNodeSubType = 11
|
||||||
IPv4MessagingSubType DeviceNodeSubType = 12
|
IPv4MessagingSubType DeviceNodeSubType = 12
|
||||||
|
IPv6MessagingSubType DeviceNodeSubType = 13
|
||||||
)
|
)
|
||||||
|
|
||||||
const EndOfEntireDevicePath DeviceNodeSubType = 0xFF
|
const EndOfEntireDevicePath DeviceNodeSubType = 0xFF
|
||||||
|
|
2
ipv6.go
2
ipv6.go
|
@ -20,7 +20,7 @@ func (ip *Ipv6DevicePath) Type() DeviceNodeType {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ip *Ipv6DevicePath) SubType() DeviceNodeSubType {
|
func (ip *Ipv6DevicePath) SubType() DeviceNodeSubType {
|
||||||
return IPv4MessagingSubType
|
return IPv6MessagingSubType
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ip *Ipv6DevicePath) Bytes() []byte {
|
func (ip *Ipv6DevicePath) Bytes() []byte {
|
||||||
|
|
Loading…
Reference in a new issue