Skip to content

Commit 71cdc3f

Browse files
committed
Network: Add vendor/model strings
1 parent 8ccb1e5 commit 71cdc3f

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

MacHyperVSupport/Network/HyperVNetwork.hpp

+12-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ class HyperVNetwork : public IOEthernetController {
127127
//
128128
void addNetworkMedium(UInt32 index, UInt32 type, UInt32 speed);
129129
void createMediumDictionary();
130-
bool readMACAddress();
130+
IOReturn readMACAddress();
131+
IOReturn setPacketFilter(UInt32 filter);
131132
void updateLinkState(HyperVNetworkRNDISMessageIndicateStatus *indicateStatus);
132133

133134
public:
@@ -137,6 +138,16 @@ class HyperVNetwork : public IOEthernetController {
137138
bool start(IOService *provider) APPLE_KEXT_OVERRIDE;
138139
void stop(IOService *provider) APPLE_KEXT_OVERRIDE;
139140

141+
//
142+
// IONetworkController overrides.
143+
//
144+
const OSString* newVendorString() const APPLE_KEXT_OVERRIDE {
145+
return OSString::withCString(kHyperVNetworkVendor);
146+
};
147+
const OSString* newModelString() const APPLE_KEXT_OVERRIDE {
148+
return OSString::withCString(kHyperVNetworkModel);
149+
}
150+
140151
//
141152
// IOEthernetController overrides.
142153
//

MacHyperVSupport/Network/HyperVNetworkRegs.hpp

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
#define kHyperVNetworkMaximumTransId 0xFFFFFFFF
2525
#define kHyperVNetworkSendTransIdBits 0xFA00000000000000
2626

27+
#define kHyperVNetworkVendor "Microsoft"
28+
#define kHyperVNetworkModel "Hyper-V Network Adapter"
29+
2730
//
2831
// Protocol versions.
2932
//

0 commit comments

Comments
 (0)