File tree 2 files changed +15
-1
lines changed
2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,8 @@ class HyperVNetwork : public IOEthernetController {
127
127
//
128
128
void addNetworkMedium (UInt32 index, UInt32 type, UInt32 speed);
129
129
void createMediumDictionary ();
130
- bool readMACAddress ();
130
+ IOReturn readMACAddress ();
131
+ IOReturn setPacketFilter (UInt32 filter);
131
132
void updateLinkState (HyperVNetworkRNDISMessageIndicateStatus *indicateStatus);
132
133
133
134
public:
@@ -137,6 +138,16 @@ class HyperVNetwork : public IOEthernetController {
137
138
bool start (IOService *provider) APPLE_KEXT_OVERRIDE;
138
139
void stop (IOService *provider) APPLE_KEXT_OVERRIDE;
139
140
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
+
140
151
//
141
152
// IOEthernetController overrides.
142
153
//
Original file line number Diff line number Diff line change 24
24
#define kHyperVNetworkMaximumTransId 0xFFFFFFFF
25
25
#define kHyperVNetworkSendTransIdBits 0xFA00000000000000
26
26
27
+ #define kHyperVNetworkVendor " Microsoft"
28
+ #define kHyperVNetworkModel " Hyper-V Network Adapter"
29
+
27
30
//
28
31
// Protocol versions.
29
32
//
You can’t perform that action at this time.
0 commit comments