Unknown data link type error message printed out props.link_type instead of arg_props.link_type. It lead to the meaningless and misleading output (E.g.: 'unknown data link type 0xffffffff')

This commit is contained in:
Vitaly Repin 2016-04-28 11:10:52 +03:00
parent 3a70289e91
commit cd2ec7c495

View file

@ -91,7 +91,7 @@ void PktSrc::Opened(const Properties& arg_props)
{
char buf[512];
safe_snprintf(buf, sizeof(buf),
"unknown data link type 0x%x", props.link_type);
"unknown data link type 0x%x", arg_props.link_type);
Error(buf);
Close();
return;