This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Can i change the order about the list of the interface?

0

Can i change the order of interface number, by the way, the number is get by command "tshark -D"?

asked 15 Jun '11, 05:19

phoenix's gravatar image

phoenix
1112
accept rate: 0%

edited 15 Jun '11, 05:22

Why would you want to do that? the list is usually pretty short anyway...

(15 Jun '11, 06:32) Jasper ♦♦

One Answer:

0

No, you can't change the order of the interfaces; they're supplied in the order in which libpcap gets them from the OS (with interfaces that libpcap can identify as "loopback" interfaces sorted to the end) or in which WinPcap gets them from wherever it gets them.

The number printed by "tshark -D" (and "tcpdump -D" and...) is just the ordinal number of the interface in the list.

answered 16 Jun '11, 11:42

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196
accept rate: 19%