Re: [ANNOUNCE] ipset-5.0 released

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

 



On Sunday 2010-12-19 01:05, Jozsef Kadlecsik wrote:
>>   CC     parse.lo
>> cc1: warnings being treated as errors
>> parse.c: In function ?get_addrinfo?:
>> parse.c:637:11: error: cast increases required alignment of target type
>> parse.c:640:11: error: cast increases required alignment of target type
>
>Oh well, the good old Sparc issue. I put back the workaround and pushed.

Yeah. It seems struct sockaddr only has an alignment of 2Ââ
even on x86_64.

Given struct sockaddr is usually just a base of another sockaddr_XXX
object and is thus always has the same alignment of the latter,
we could avoid the memcpy:

const struct sockaddr_in *x = (void *)i->ai_addr;
err = ipset_session_data_set(session, opt, &x->sin_addr);


>> 22:43 ares:../ipset/kernel > make
>
>Nobody is supposed to run `make' in the kernel/ subdir. You should have 
>typed one level above:

Hah. So, what's the point of the Makefile? kbuild will find
Kbuild, so it uses just that.
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux