소스 검색

[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 9 년 전
부모
커밋
8af8886d0a
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3
    3
      src/net/stp.c

+ 3
- 3
src/net/stp.c 파일 보기

@@ -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
 /**

Loading…
취소
저장