On Mon, 2004-08-30 at 17:40, David S. Miller wrote:
> On 29 Aug 2004 13:13:52 -0400
> jamal <hadi@xxxxxxxxxx> wrote:
> > Opinions welcome - If all is good, Dave please apply.
> tc_stats changes size, how will existing applications cope?
> Since it is just RTA_PUT() into userspace, will that just work
> or will existing apps bomb because they'll do a check of the
> size field of the rtnetlink attribute?
To look at an existing app such as tc; attached is a patch.
In the tc case. The possibilities are:
1) old kernels + old tc --> should work
2) new kernels + old tc --> should work
3) new kernels + new tc --> should work
4) old kernel + new tc --> will bomb (sizeof check will fail)
Cant think of something smart to do with option #4. I have contemplated
playing with offsetoff() etc. The best thing i can think of right
now is to complain about it as in that fprintf()
Description: Text document