shithub: riscv

Download patch

ref: 1f80d31f41a630860d1e1b5712546a3dc9993b4c
parent: e31934f9f317205097f09b165bcaed2e5d00aaa1
author: cinap_lenrek <[email protected]>
date: Mon Dec 18 15:44:53 EST 2017

devbridge: disable write blocking on ethernets

--- a/sys/src/9/port/devbridge.c
+++ b/sys/src/9/port/devbridge.c
@@ -572,6 +572,8 @@
 		// setup connection to be promiscuous
 		snprint(buf, sizeof(buf), "connect -1");
 		devtab[ctl->type]->write(ctl, buf, strlen(buf), 0);
+		snprint(buf, sizeof(buf), "nonblocking");
+		devtab[ctl->type]->write(ctl, buf, strlen(buf), 0);
 		snprint(buf, sizeof(buf), "promiscuous");
 		devtab[ctl->type]->write(ctl, buf, strlen(buf), 0);
 		snprint(buf, sizeof(buf), "bridge");