Contribute
Register

NullEthernet.kext v1.01 - Small bug

Status
Not open for further replies.
Joined
Jul 3, 2014
Messages
934
Motherboard
Dell XPS 9360 (KabyLake R)
CPU
Intel i7 8550U
Graphics
Intel UHD 620
Mac
  1. MacBook
  2. MacBook Pro
Mobile Phone
  1. Android
Rehabman,

Just installed NullEthernet.kext v1.01 (RehabMan-NullEthernet-2014-0501) and customised the MAC address through SSDT.

The mac address shows fine in ifconfig however in the kernel log it shows as follows:
Code:
[FONT=Menlo]NullEthernet: Using MAC address from DSDT: 2d:ffffffe0:3e:1f:ffffffae:53[/FONT]
[FONT=Menlo]NullEthernet: NullEthernet: NullEthernet v1.0.1 starting.[/FONT]

It looks like formatting the mac address pairs which start with non-numeric characters fails.
It seems just a cosmetic bug, but I wanted you to be aware of it.

SSDT is as follows:
Code:
DefinitionBlock("ssdt-rmne.aml", "SSDT", 2, "RehabMan", "RMNE", 0x00001000)
{
    Device (RMNE)
    {
        Name (_ADR, Zero)
        // The NullEthernet kext matches on this HID
        Name (_HID, "NULE0000")
        // This is the MAC address returned by the kext. Modify if necessary.
        
        Name (MAC, Buffer() { 0x2D, 0xE0, 0x3E, 0x1F, 0xAE, 0x53 })
        Method (_DSM, 4, NotSerialized)
        {
            If (LEqual (Arg2, Zero)) { Return (Buffer() { 0x03 } ) }
            Return (Package()
            {
                "built-in", Buffer() { 0x00 },
                "IOName", "ethernet",
                "name", Buffer() { "ethernet" },
                "model", Buffer() { "RM-NullEthernet-1001" },
                "device_type", Buffer() { "ethernet" },
            })
        }
    }
}
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
186,689
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
Rehabman,

Just installed NullEthernet.kext v1.01 (RehabMan-NullEthernet-2014-0501) and customised the MAC address through SSDT.

The mac address shows fine in ifconfig however in the kernel log it shows as follows:
Code:
[FONT=Menlo]NullEthernet: Using MAC address from DSDT: 2d:ffffffe0:3e:1f:ffffffae:53[/FONT]
[FONT=Menlo]NullEthernet: NullEthernet: NullEthernet v1.0.1 starting.[/FONT]

It looks like formatting the mac address pairs which start with non-numeric characters fails.

Cosmetic sign-extension problem. Fixed in repo, you can build it if you want...
 
Joined
Jul 3, 2014
Messages
934
Motherboard
Dell XPS 9360 (KabyLake R)
CPU
Intel i7 8550U
Graphics
Intel UHD 620
Mac
  1. MacBook
  2. MacBook Pro
Mobile Phone
  1. Android
Thats insanely quickly fixed :clap:. Thanks RehabMan!
 
Status
Not open for further replies.
Top