Search squid archive

Re: tcp_outgoing_tos doesn't work in 3.2?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 29/12/2012 3:49 p.m., Andrew Beverley wrote:
On Fri, 2012-12-28 at 18:13 -0800, Nick Rogers wrote:
I was able to come up with a patch that works in my environment by
looking at some of the changes between 3.1 and 3.2. It seems that
sizeof(tos_t) does not result in a valid setsockopt() argument,
whereas sizeof(int) that was used in  3.1.x does.
Thanks for that. I vaguely remember making that change when creating the
v3.2 patch set, probably for no reason other than tidying up the code.
I'll have a closer look in the next couple of weeks, unless anyone else
does before then.

This is a bit of a strange error. Since the tos_t type is an 8-bit char.
Passing in a larger size than the object being passed means some garbage off the stack will be passed to the setsockopt() internals.

Amos



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux