Skip to content

Commit

Permalink
Set a dev name if a route was used
Browse files Browse the repository at this point in the history
  • Loading branch information
jjnicola committed Apr 14, 2021
1 parent ad9499b commit f90f089
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion misc/pcap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1260,7 +1260,10 @@ routethrough (struct in_addr *dest, struct in_addr *source)
{
/* Assigned first route in the table */
if (myroutes[0].dev)
source->s_addr = myroutes[0].dev->addr.s_addr;
{
source->s_addr = myroutes[0].dev->addr.s_addr;
best_match = 0;
}
/* or any */
else
source->s_addr = INADDR_ANY;
Expand Down

0 comments on commit f90f089

Please sign in to comment.