Fix check for timestamping modes

The code was checking the wrong interface's capabilities.

Signed-off-by: Andy Lutomirski <luto@amacapital.net>
master
Andy Lutomirski 2013-07-26 17:37:44 -07:00 committed by Richard Cochran
parent b74e46724e
commit f6536fe36a
1 changed files with 1 additions and 1 deletions

View File

@ -335,7 +335,7 @@ int main(int argc, char *argv[])
/* check whether timestamping mode is supported. */
for (i = 0; i < cfg_settings.nports; i++) {
if (iface[i].ts_info.valid &&
((iface[0].ts_info.so_timestamping & required_modes) != required_modes)) {
((iface[i].ts_info.so_timestamping & required_modes) != required_modes)) {
fprintf(stderr, "interface '%s' does not support "
"requested timestamping mode.\n",
iface[i].name);