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:
cinap_lenrek 2024-07-27 22:03:48 +00:00
parent 439a525113
commit c91d99c5de
2 changed files with 3 additions and 3 deletions

View file

@ -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)

View file

@ -120,7 +120,7 @@ netdevread(void *a)
rlock(ifc);
if(waserror()){
runlock(ifc);
nexterror();
continue;
}
ifc->in++;
if(ifc->lifc == nil)