diff --git a/pcap-common.c b/pcap-common.c index 7cff6bfeb8..b13a92f973 100644 --- a/pcap-common.c +++ b/pcap-common.c @@ -1300,7 +1300,16 @@ */ #define LINKTYPE_DECT_NR 301 -#define LINKTYPE_HIGH_MATCHING_MAX 301 /* highest value in the "matching" range */ +/* + * Request serialization protocol used by edk2 firmware to communicate between + * normal mode and management mode ('MM' for short). + * + * The qemu uefi variable store implementation reuses the request serialization + * protocol for firmware <-> qemu communication. + */ +#define LINKTYPE_EDK2_MM 302 + +#define LINKTYPE_HIGH_MATCHING_MAX 302 /* highest value in the "matching" range */ /* * The DLT_ and LINKTYPE_ values in the "matching" range should be the diff --git a/pcap.c b/pcap.c index ebb0c9e978..9ca2a34b36 100644 --- a/pcap.c +++ b/pcap.c @@ -3324,6 +3324,7 @@ static struct dlt_choice dlt_choices[] = { DLT_CHOICE(FIRA_UCI, "Ultra-wideband controller interface protocol"), DLT_CHOICE(MDB, "Multi-Drop Bus"), DLT_CHOICE(DECT_NR, "DECT New Radio"), + DLT_CHOICE(EDK2_MM, "edk2 mm request serialization protocol"), DLT_CHOICE_SENTINEL }; diff --git a/pcap/dlt.h b/pcap/dlt.h index affe7d1fc4..d8a271cbdd 100644 --- a/pcap/dlt.h +++ b/pcap/dlt.h @@ -1664,6 +1664,15 @@ */ #define DLT_DECT_NR 301 +/* + * Request serialization protocol used by edk2 firmware to communicate between + * normal mode and management mode ('MM' for short). + * + * The qemu uefi variable store implementation reuses the request serialization + * protocol for firmware <-> qemu communication. + */ +#define DLT_EDK2_MM 302 + /* * In case the code that includes this file (directly or indirectly) * has also included OS files that happen to define DLT_HIGH_MATCHING_MAX, @@ -1675,6 +1684,6 @@ #undef DLT_HIGH_MATCHING_MAX #endif -#define DLT_HIGH_MATCHING_MAX 301 /* highest value in the "matching" range */ +#define DLT_HIGH_MATCHING_MAX 302 /* highest value in the "matching" range */ #endif /* !defined(lib_pcap_dlt_h) */