ip/ipconfig: use ewrite() to enable routing command for sendra
This commit is contained in:
parent
5fe49f9c71
commit
7aac23b02b
1 changed files with 1 additions and 6 deletions
|
@ -1124,17 +1124,12 @@ sendra6(void)
|
|||
static void
|
||||
startra6(void)
|
||||
{
|
||||
static char routeon[] = "iprouting 1";
|
||||
|
||||
if(conf.recvra > 0)
|
||||
recvra6();
|
||||
|
||||
dolog = 1;
|
||||
if(conf.sendra > 0) {
|
||||
if(write(conf.cfd, routeon, sizeof routeon - 1) < 0) {
|
||||
warning("write (%s) failed: %r", routeon);
|
||||
return;
|
||||
}
|
||||
ewrite(conf.cfd, "iprouting 1");
|
||||
sendra6();
|
||||
if(conf.recvra <= 0)
|
||||
recvra6();
|
||||
|
|
Loading…
Reference in a new issue