ref: 7aac23b02baedfcaec2066da5b137fcbb97b3efe
parent: 5fe49f9c71af29a0a5e790310cb55b1f6e1165ff
author: cinap_lenrek <[email protected]>
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();