ref: 0d45b671217de5965a6ec9033d6799e5e77fd96c
parent: 4218d7d5154e3f3a75a5f10af80c19dd38775ef7
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Mar 17 00:07:30 EDT 2019
ip/ipconfig: use ewrite() to enable routing command for sendra
--- a/sys/src/cmd/ip/ipconfig/ipv6.c
+++ b/sys/src/cmd/ip/ipconfig/ipv6.c
@@ -1124,17 +1124,12 @@
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();
--
⑨