Re: more fun with procfs (netfilter)

Rusty Russell (rusty@rustcorp.com.au)
Tue, 20 Nov 2001 11:48:56 +1100


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/