diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-02-25 03:42:38 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-02-25 03:42:38 +0100 |
commit | f0a314605f1a6d56da34ac07bb4effe2dcff8c37 (patch) | |
tree | 64c8bc5158c161202cbed0ea454c2146b08cc937 /sys/src/9/port/netif.c | |
parent | 5560efb3dbe76bfab78d0d7f97969d7589a3f171 (diff) |
devether: remove (unimplemented) detach, allow device creation on attach
we allow devether to create ethernet cards on attach. this is useull
for virtual cards like the sink driver, so we can create a sink
by simply: bind -a '#l2:sink ea=112233445566' /net
the detach routine was never called, so remove it from the few drivers
that attempted to implement it.
Diffstat (limited to 'sys/src/9/port/netif.c')
-rw-r--r-- | sys/src/9/port/netif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/port/netif.c b/sys/src/9/port/netif.c index 4b818938e..48bcdd405 100644 --- a/sys/src/9/port/netif.c +++ b/sys/src/9/port/netif.c @@ -80,7 +80,7 @@ netifgen(Chan *c, char*, Dirtab *vp, int, int i, Dir *dp) break; case 1: q.path = Naddrqid; - devdir(c, q, "addr", 0, eve, 0666, dp); + devdir(c, q, "addr", 0, eve, 0444, dp); break; case 2: q.path = Nstatqid; |