<div dir="ltr"><div>Although route command is still in unfinished status, I still give it a try. And I find a bug. </div><div>The 217 line of the code, </div><div>if (!get_hostname(*argv, (struct sockaddr_in *) &rt->rt_gateway))</div><div>should be changed to </div><div>if (!get_hostname(*(++argv), (struct sockaddr_in *) &rt->rt_gateway))<br></div><div>This way, command like "route add default gw 192.168.137.1" can work now.</div><div><br></div>
</div>