diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-01-10 18:37:59 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-01-10 18:37:59 -0800 |
commit | 0bb3f4d8ee0210e012c58b4ea7dc2fe5c06a73fa (patch) | |
tree | 318736045dbace49e746861a4717a5405e96cc75 /pcap-linux.c | |
parent | e562fac8c72e920c294a8cc46bddf49f44694b96 (diff) |
Don't lose the addresses for interfaces.
pcap_add_if() doesn't add addresses; instead of the existing sort code
called by pcap_findalldevs(), change the code for inserting interfaces
into the list to use a "figure of merit" that takes the running, up, and
loopback bits into account, as well as the number from the interface
name, rather than just the interface name, into account.
Diffstat (limited to 'pcap-linux.c')
0 files changed, 0 insertions, 0 deletions