Skip to content
Snippets Groups Projects
Commit 92bb8742 authored by Maciej Żenczykowski's avatar Maciej Żenczykowski
Browse files

let's at least log the src mac as being the src mac, not the dst


changing the field names is much harder due to it going via AIDL

Test: TreeHugger
Bug: 292404319
Signed-off-by: default avatarMaciej Żenczykowski <maze@google.com>
Change-Id: I4101caf3b0d2abfadbabf3f389155c29a4d64e0f
parent 6dbe50e3
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@ public class WakeupEvent {
public String iface;
public int uid;
public int ethertype;
public MacAddress dstHwAddr;
public MacAddress dstHwAddr; // actually used to store a src mac address
public String srcIp;
public String dstIp;
public int ipNextHeader;
......@@ -44,7 +44,7 @@ public class WakeupEvent {
j.add(iface);
j.add("uid: " + Integer.toString(uid));
j.add("eth=0x" + Integer.toHexString(ethertype));
j.add("dstHw=" + dstHwAddr);
j.add("srcMac=" + dstHwAddr); // really!! http://b/292404319#comment11
if (ipNextHeader > 0) {
j.add("ipNxtHdr=" + ipNextHeader);
j.add("srcIp=" + srcIp);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment