diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-11-07 22:05:29 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-11-07 22:05:29 +0100 |
commit | 857f2528e0b014b6bd839535daaa6b53853703d9 (patch) | |
tree | c81c520a5cf17c79ea31acbf018f36acbc130489 /sys/src/9/ip/arp.c | |
parent | ea993877a96cd535199d0cd437e49f8d616615d9 (diff) |
ip: always pass a single block to Medium.bwrite(), avoid concatblock() calls in Dev.bwrite()
the convention for Dev.bwrite() is that it accepts a *single* block,
and not a block chain. so we never have concatblock here.
to keep stuff consistent, we also guarantee thet Medium.bwrite()
will get a *single* block passed as well, as the callers are
few in number.
Diffstat (limited to 'sys/src/9/ip/arp.c')
-rw-r--r-- | sys/src/9/ip/arp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/ip/arp.c b/sys/src/9/ip/arp.c index 43d8de43b..9d650a978 100644 --- a/sys/src/9/ip/arp.c +++ b/sys/src/9/ip/arp.c @@ -375,7 +375,7 @@ arpenter(Fs *fs, int version, uchar *ip, uchar *mac, int n, int refresh) } rlock(ifc); if(ifc->m != nil) - ifc->m->bwrite(ifc, bp, version, ip); + ifc->m->bwrite(ifc, concatblock(bp), version, ip); else freeblist(bp); runlock(ifc); |