Procházet zdrojové kódy

[stp] Fix incorrectly disambiguated errors

The three nominally-disambiguated ENOTSUP errors accidentally all used
the same error disambiguator, rendering them identical.  Fix by
changing all three values.  We avoid reusing the 0x01 disambiguator
value, since that remains ambiguous in older binaries.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown před 9 roky
rodič
revize
8af8886d0a
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3
    3
      src/net/stp.c

+ 3
- 3
src/net/stp.c Zobrazit soubor

@@ -40,15 +40,15 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
40 40
 /* Disambiguate the various error causes */
41 41
 #define ENOTSUP_PROTOCOL __einfo_error ( EINFO_ENOTSUP_PROTOCOL )
42 42
 #define EINFO_ENOTSUP_PROTOCOL					\
43
-	__einfo_uniqify ( EINFO_ENOTSUP, 0x01,			\
43
+	__einfo_uniqify ( EINFO_ENOTSUP, 0x02,			\
44 44
 			  "Non-STP packet received" )
45 45
 #define ENOTSUP_VERSION __einfo_error ( EINFO_ENOTSUP_VERSION )
46 46
 #define EINFO_ENOTSUP_VERSION					\
47
-	__einfo_uniqify ( EINFO_ENOTSUP, 0x01,			\
47
+	__einfo_uniqify ( EINFO_ENOTSUP, 0x03,			\
48 48
 			  "Legacy STP packet received" )
49 49
 #define ENOTSUP_TYPE __einfo_error ( EINFO_ENOTSUP_TYPE )
50 50
 #define EINFO_ENOTSUP_TYPE					\
51
-	__einfo_uniqify ( EINFO_ENOTSUP, 0x01,			\
51
+	__einfo_uniqify ( EINFO_ENOTSUP, 0x04,			\
52 52
 			  "Non-RSTP packet received" )
53 53
 
54 54
 /**

Načítá se…
Zrušit
Uložit