[PATCH] 2.5.43 Generic HDLC ioctl interface update

From: Krzysztof Halasa (khc@pm.waw.pl)
Date: Fri Oct 18 2002 - 18:54:24 EST


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 :-(


- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Oct 23 2002 - 22:00:45 EST