extcap-base: There is no need to register interfaces everytime

If extcap tool run on not existing interfaces it will fail.
There is no need to register ALL interfaces while only one is
needed. Extcap tool check it in other way (aka try to capture
but cannot for some reasons).

Change-Id: I6d60da97ce4175f19656d8c18ad8cacd25b0e99a
Reviewed-on: https://code.wireshark.org/review/14765
Petri-Dish: Michal Labedzki <michal.labedzki@tieto.com>
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Dario Lombardo <lomato@gmail.com>
This commit is contained in:
Michal Labedzki 2016-03-15 19:10:51 +01:00 committed by Dario Lombardo
parent 006d9821f6
commit 301aa193f0
1 changed files with 0 additions and 6 deletions

View File

@ -235,12 +235,6 @@ uint8_t extcap_base_handle_interface(extcap_parameters * extcap)
return extcap_iface_listall(extcap, 1);
} else if (extcap->do_version || extcap->do_list_dlts) {
return extcap_iface_listall(extcap, 0);
} else {
/* An interface must exist */
if (g_list_find_custom(extcap->interfaces, extcap->interface, extcap_iface_compare) == NULL) {
errmsg_print("Extcap Error: No interface [%s] provided", extcap->interface);
return 0;
}
}
return 0;