diff options
Diffstat (limited to 'lib9p/types.c')
-rw-r--r-- | lib9p/types.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib9p/types.c b/lib9p/types.c index 2d0bb1b..baddab3 100644 --- a/lib9p/types.c +++ b/lib9p/types.c @@ -347,9 +347,9 @@ static ALWAYS_INLINE bool validate_dm(struct _validate_ctx *ctx) { if (validate_4(ctx)) return true; static const lib9p_dm_t masks[LIB9P_VER_NUM] = { - [LIB9P_VER_9P2000] = 0b11111100000000000000000111111111, - [LIB9P_VER_9P2000_e] = 0b11111100000000000000000111111111, - [LIB9P_VER_9P2000_u] = 0b11111100101111000000000111111111, + [LIB9P_VER_9P2000] = 0b11101100000000000000000111111111, + [LIB9P_VER_9P2000_e] = 0b11101100000000000000000111111111, + [LIB9P_VER_9P2000_u] = 0b11101100101111000000000111111111, }; lib9p_dm_t mask = masks[ctx->ctx->version]; lib9p_dm_t val = decode_u32le(&ctx->net_bytes[ctx->net_offset-4]); @@ -363,9 +363,9 @@ static ALWAYS_INLINE bool validate_qt(struct _validate_ctx *ctx) { if (validate_1(ctx)) return true; static const lib9p_qt_t masks[LIB9P_VER_NUM] = { - [LIB9P_VER_9P2000] = 0b11111100, - [LIB9P_VER_9P2000_e] = 0b11111100, - [LIB9P_VER_9P2000_u] = 0b11111110, + [LIB9P_VER_9P2000] = 0b11101100, + [LIB9P_VER_9P2000_e] = 0b11101100, + [LIB9P_VER_9P2000_u] = 0b11101110, }; lib9p_qt_t mask = masks[ctx->ctx->version]; lib9p_qt_t val = decode_u8le(&ctx->net_bytes[ctx->net_offset-1]); |