mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
devip: dont shoot the messenger (dont unbind the interface when ipipu4/ipiput6 errors)
The medium should only self-unbind when we get a read error from the device, not when ipiput4/8() throw an error, which can happen for the nullmedium.
This commit is contained in:
parent
439a525113
commit
c91d99c5de
2 changed files with 3 additions and 3 deletions
|
@ -338,7 +338,7 @@ etherread4(void *a)
|
|||
rlock(ifc);
|
||||
if(waserror()){
|
||||
runlock(ifc);
|
||||
nexterror();
|
||||
continue;
|
||||
}
|
||||
ifc->in++;
|
||||
if(ifc->lifc == nil || BLEN(bp) <= ETHERHDRSIZE)
|
||||
|
@ -379,7 +379,7 @@ etherread6(void *a)
|
|||
rlock(ifc);
|
||||
if(waserror()){
|
||||
runlock(ifc);
|
||||
nexterror();
|
||||
continue;
|
||||
}
|
||||
ifc->in++;
|
||||
if(ifc->lifc == nil || BLEN(bp) <= ETHERHDRSIZE)
|
||||
|
|
|
@ -120,7 +120,7 @@ netdevread(void *a)
|
|||
rlock(ifc);
|
||||
if(waserror()){
|
||||
runlock(ifc);
|
||||
nexterror();
|
||||
continue;
|
||||
}
|
||||
ifc->in++;
|
||||
if(ifc->lifc == nil)
|
||||
|
|
Loading…
Reference in a new issue