1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-20 22:49:01 +00:00

Add intf_name to the route_entry struct.

This is set to an empty string in all functions yielding routes,
particularly route_loop. The code to get the interface pertaining to a
route is different on different platforms, so must be added one by one.
The code setting the intf_name to an empty string is only tested on
Linux.
This commit is contained in:
david
2012-09-30 00:01:10 +00:00
parent bfea61a51e
commit 5bbe36af7a
5 changed files with 28 additions and 7 deletions

View File

@@ -15,6 +15,7 @@
* Routing table entry
*/
struct route_entry {
char intf_name[INTF_NAME_LEN]; /* interface name */
struct addr route_dst; /* destination address */
struct addr route_gw; /* gateway address */
};