diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-03-17 04:07:30 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-03-17 04:07:30 +0100 |
commit | 7aac23b02baedfcaec2066da5b137fcbb97b3efe (patch) | |
tree | 920e5043568aaf73661b3d029549137646175daf | |
parent | 5fe49f9c71af29a0a5e790310cb55b1f6e1165ff (diff) | |
download | plan9front-7aac23b02baedfcaec2066da5b137fcbb97b3efe.tar.xz |
ip/ipconfig: use ewrite() to enable routing command for sendra
-rw-r--r-- | sys/src/cmd/ip/ipconfig/ipv6.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/src/cmd/ip/ipconfig/ipv6.c b/sys/src/cmd/ip/ipconfig/ipv6.c index dbd37d146..eb2ce4c7b 100644 --- a/sys/src/cmd/ip/ipconfig/ipv6.c +++ b/sys/src/cmd/ip/ipconfig/ipv6.c @@ -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(); |