L
linux.lover
Hello all,
I am analysing 2.4 and 2.6 series ip_output.c file code. What i
found is that 2.6 kernel initialised
ip_packet_type with following definition
static struct packet_type ip_packet_type = {
.type = __constant_htons(ETH_P_IP),
.func = ip_rcv,
};
And 2.4 have following definition.
static struct packet_type ip_packet_type =
{
__constant_htons(ETH_P_IP),
NULL, /* All devices */
ip_rcv,
(void*)1,
NULL,
};
Why . is used in 2.6 series kernels and not in 2.4 series?Also other
structure members are why not necessary to define in 2.6 kernel?
regards,
linux_lover.
I am analysing 2.4 and 2.6 series ip_output.c file code. What i
found is that 2.6 kernel initialised
ip_packet_type with following definition
static struct packet_type ip_packet_type = {
.type = __constant_htons(ETH_P_IP),
.func = ip_rcv,
};
And 2.4 have following definition.
static struct packet_type ip_packet_type =
{
__constant_htons(ETH_P_IP),
NULL, /* All devices */
ip_rcv,
(void*)1,
NULL,
};
Why . is used in 2.6 series kernels and not in 2.4 series?Also other
structure members are why not necessary to define in 2.6 kernel?
regards,
linux_lover.