diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-05-11 17:22:33 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-05-11 17:22:33 +0200 |
commit | 333c3202043d25c8a975b94cdd374712314189c7 (patch) | |
tree | a6b6fb5eabf126e9c1e7358ccdae76c4b9fa57ab /sys/src/9/ip/pktmedium.c | |
parent | 7186be0424ba65942a13b7706017c6ef4338f219 (diff) |
devip: reset speed and delay on bind, adjust burst on mtu change, ifc->m nil check, consistent error strings
initialize the rate limits when the device gets
bound, not when it is created. so that the
rate limtis get reset to default when the ifc
is reused.
adjust the burst delay when the mtu is changed.
this is to make sure that we allow at least one
full sized packet burst.
make a local copy of ifc->m before doing nil
check as it can change under us when we do
not have the ifc locked.
specify Ebound[] and Eunbound[] error strings
and use them consistently.
Diffstat (limited to 'sys/src/9/ip/pktmedium.c')
0 files changed, 0 insertions, 0 deletions