wireshark: throw exception if wrong encoding
This commit is contained in:
@@ -141,6 +141,9 @@ wireshark_connector_impl::encoding_to_rate(uint64_t encoding) {
|
|||||||
case 7:
|
case 7:
|
||||||
return 54 * 2;
|
return 54 * 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
throw std::invalid_argument("wrong encoding");
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|||||||
Reference in New Issue
Block a user