Hi,
The attached patch for Linux 2.5.43 solves problems with generic HDLC ioctl.
What it does:
- uses "size" parameter to tell the kernel the max data size to copy to
userland, and thus doesn't overrun userland buffers. It's required as
the userland doesn't know the protocol or interface type (nor its config
data size) in advance.
We do "get interface type" and "get interface "config" in one ioctl to
prevent race conditions and avoid additional code complication. In real
world, both operations are done together anyway.
- simplifies if_settings struct.
- all drivers using this (c101, n2, dscc4, farsync, hdlc protos) are
updated accordingly.
-- Krzysztof Halasa Network Administrator If you've sent me email recently and it remains unanswered, please try once again. HDD crash might have eaten it :-(
This archive was generated by hypermail 2b29 : Wed Oct 23 2002 - 22:00:45 EST