Re: more fun with procfs (netfilter)

From: Rusty Russell (rusty@rustcorp.com.au)
Date: Mon Nov 19 2001 - 19:48:56 EST


In message <Pine.GSO.4.21.0111190156140.17210-100000@weyl.math.psu.edu> you wri
te:
> Reason: netfilter procfs files try to fit entire records into the user
> buffer. Do a read shorter than record size and you've got zero. And
> read() returning 0 means you-know-what...

Yes. Don't do this.

Hope that helps,
Rusty.

--
Premature optmztion is rt of all evl. --DK
-
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 : Fri Nov 23 2001 - 21:00:22 EST