From 6498be751cbb9ff1105208bf59926448e1f6b532 Mon Sep 17 00:00:00 2001 From: Marc Lepage Date: Wed, 13 Aug 2025 14:48:18 -0400 Subject: [PATCH] Add ethertype constant for Wake-on-LAN Bug: 408247593 Test: atest NetworkStackTests Flag: EXEMPT mainline Change-Id: I5ff868ee66c2941c496db1fdfa02f0322e48d243 --- .../com/android/net/module/util/NetworkStackConstants.java | 1 + 1 file changed, 1 insertion(+) diff --git a/staticlibs/framework/com/android/net/module/util/NetworkStackConstants.java b/staticlibs/framework/com/android/net/module/util/NetworkStackConstants.java index 8d7ae5cae0..90dc0b10e8 100644 --- a/staticlibs/framework/com/android/net/module/util/NetworkStackConstants.java +++ b/staticlibs/framework/com/android/net/module/util/NetworkStackConstants.java @@ -49,6 +49,7 @@ public final class NetworkStackConstants { public static final int ETHER_TYPE_ARP = 0x0806; public static final int ETHER_TYPE_IPV4 = 0x0800; public static final int ETHER_TYPE_IPV6 = 0x86dd; + public static final int ETHER_TYPE_WAKE_ON_LAN = 0x0842; public static final int ETHER_HEADER_LEN = 14; public static final int ETHER_MTU = 1500; public static final byte[] ETHER_BROADCAST = new byte[] {