aboutsummaryrefslogtreecommitdiffstats
path: root/extcap/extcap-base.c
diff options
context:
space:
mode:
authorMichal Labedzki <michal.labedzki@tieto.com>2016-03-15 19:10:51 +0100
committerDario Lombardo <lomato@gmail.com>2016-04-14 12:55:24 +0000
commit301aa193f06492d096a9b816eee283f023bc13e9 (patch)
treeee1e8b3908eae492c7628ea2cbaee4a3cfffdc87 /extcap/extcap-base.c
parent006d9821f610bb6c006ac0f0d84ab8668a307945 (diff)
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>
Diffstat (limited to 'extcap/extcap-base.c')
-rw-r--r--extcap/extcap-base.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/extcap/extcap-base.c b/extcap/extcap-base.c
index 32a3de18c5..9878335ab2 100644
--- a/extcap/extcap-base.c
+++ b/extcap/extcap-base.c
@@ -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;