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
(cherry picked from commit f90f089)
  • Loading branch information
jjnicola authored and mergify-bot committed Apr 16, 2021
1 parent 8b277cf commit 8c53f8e
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 8c53f8e

Please sign in to comment.