File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,8 @@ mobility_opt_print(netdissect_options *ndo,
127127 if (opttype == IP6MOPT_PAD1 )
128128 optlen = 1 ;
129129 else {
130- ND_ICHECKMSG_U ("remaining length" , (u_int )(len - i ), < , 1 );
130+ ND_ICHECKMSG_U ("remaining length" , (u_int )(len - i ), < ,
131+ IP6MOPT_MINLEN );
131132 optlen = GET_U_1 (bp + i + 1 ) + 2 ;
132133 }
133134 ND_ICHECKMSG_U ("remaining length" , (u_int )(len - i ), < , optlen );
@@ -139,8 +140,6 @@ mobility_opt_print(netdissect_options *ndo,
139140 break ;
140141 case IP6MOPT_PADN :
141142 ND_PRINT ("(padn)" );
142- ND_ICHECKMSG_U ("remaining length" , (u_int )(len - i ), < ,
143- IP6MOPT_MINLEN );
144143 break ;
145144 case IP6MOPT_REFRESH :
146145 ND_PRINT ("(refresh: " );
@@ -170,8 +169,6 @@ mobility_opt_print(netdissect_options *ndo,
170169 break ;
171170 default :
172171 ND_PRINT ("(unknown: " );
173- ND_ICHECKMSG_U ("remaining length" , (u_int )(len - i ), < ,
174- IP6MOPT_MINLEN );
175172 ND_PRINT ("type-#%u len=%u)" , opttype , optlen - 2 );
176173 break ;
177174 }
You can’t perform that action at this time.
0 commit comments