mirror of
https://github.com/sheumann/hush.git
synced 2024-06-30 11:29:32 +00:00
sourse_route_list -> source_route_list
This commit is contained in:
parent
1d6a4aec2c
commit
f7fcca4af7
|
@ -944,7 +944,7 @@ int traceroute_main(int argc, char **argv)
|
||||||
int first_ttl = 1;
|
int first_ttl = 1;
|
||||||
char *first_ttl_str;
|
char *first_ttl_str;
|
||||||
#if ENABLE_FEATURE_TRACEROUTE_SOURCE_ROUTE
|
#if ENABLE_FEATURE_TRACEROUTE_SOURCE_ROUTE
|
||||||
llist_t *sourse_route_list = NULL;
|
llist_t *source_route_list = NULL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
PTR_TO_GLOBALS = xzalloc(sizeof(G));
|
PTR_TO_GLOBALS = xzalloc(sizeof(G));
|
||||||
|
@ -965,7 +965,7 @@ int traceroute_main(int argc, char **argv)
|
||||||
, &tos_str, &device, &max_ttl_str, &port_str, &nprobes_str
|
, &tos_str, &device, &max_ttl_str, &port_str, &nprobes_str
|
||||||
, &source, &waittime_str, &pausemsecs_str, &first_ttl_str
|
, &source, &waittime_str, &pausemsecs_str, &first_ttl_str
|
||||||
#if ENABLE_FEATURE_TRACEROUTE_SOURCE_ROUTE
|
#if ENABLE_FEATURE_TRACEROUTE_SOURCE_ROUTE
|
||||||
, &sourse_route_list
|
, &source_route_list
|
||||||
#endif
|
#endif
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -999,18 +999,18 @@ int traceroute_main(int argc, char **argv)
|
||||||
first_ttl = xatou_range(first_ttl_str, 1, 255);
|
first_ttl = xatou_range(first_ttl_str, 1, 255);
|
||||||
|
|
||||||
#if ENABLE_FEATURE_TRACEROUTE_SOURCE_ROUTE
|
#if ENABLE_FEATURE_TRACEROUTE_SOURCE_ROUTE
|
||||||
if (sourse_route_list) {
|
if (source_route_list) {
|
||||||
llist_t *l_sr;
|
llist_t *l_sr;
|
||||||
|
|
||||||
l_sr = sourse_route_list;
|
l_sr = source_route_list;
|
||||||
while (l_sr) {
|
while (l_sr) {
|
||||||
if (lsrr >= NGATEWAYS)
|
if (lsrr >= NGATEWAYS)
|
||||||
bb_error_msg_and_die("no more than %d gateways", NGATEWAYS);
|
bb_error_msg_and_die("no more than %d gateways", NGATEWAYS);
|
||||||
getaddr(gwlist + lsrr, l_sr->data);
|
getaddr(gwlist + lsrr, l_sr->data);
|
||||||
++lsrr;
|
++lsrr;
|
||||||
l_sr = l_sr->link;
|
l_sr = l_sr->link;
|
||||||
free(sourse_route_list);
|
free(source_route_list);
|
||||||
sourse_route_list = l_sr;
|
source_route_list = l_sr;
|
||||||
}
|
}
|
||||||
optlen = (lsrr + 1) * sizeof(gwlist[0]);
|
optlen = (lsrr + 1) * sizeof(gwlist[0]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user