Re: data structure initialization

2009-11-27 Thread Anuz Pratap Singh Tomar
On Fri, Nov 27, 2009 at 6:15 PM, Bernd Petrovitsch wrote: > On Fri, 2009-11-27 at 18:07 +0530, Anuz Pratap Singh Tomar wrote: > > On Fri, Nov 27, 2009 at 5:56 PM, Bernd Petrovitsch > > wrote: > > On Fri, 2009-11-27 at 17:50 +0530, Anuz Pratap Singh Tomar wrote: > > [...] > >

Re: data structure initialization

2009-11-27 Thread Bernd Petrovitsch
On Fri, 2009-11-27 at 18:07 +0530, Anuz Pratap Singh Tomar wrote: > On Fri, Nov 27, 2009 at 5:56 PM, Bernd Petrovitsch > wrote: > On Fri, 2009-11-27 at 17:50 +0530, Anuz Pratap Singh Tomar wrote: > [...] > > I have came across, this kind of structure initialization for the

Re: data structure initialization

2009-11-27 Thread Anuz Pratap Singh Tomar
On Fri, Nov 27, 2009 at 5:56 PM, Bernd Petrovitsch wrote: > On Fri, 2009-11-27 at 17:50 +0530, Anuz Pratap Singh Tomar wrote: > [...] > > I have came across, this kind of structure initialization for the > > first time: > [...] > > [ICMP_ADDRESSREPLY] = { > > .output_entry

Re: data structure initialization

2009-11-27 Thread Bernd Petrovitsch
On Fri, 2009-11-27 at 17:50 +0530, Anuz Pratap Singh Tomar wrote: [...] > I have came across, this kind of structure initialization for the > first time: [...] > [ICMP_ADDRESSREPLY] = { > .output_entry = ICMP_MIB_OUTADDRMASKREPS, > .input_entry = ICMP_MIB_INA

Re: data structure initialization

2009-11-27 Thread Anuz Pratap Singh Tomar
I apologize for last incomplete mail, please ignore it: I have came across, this kind of structure initialization for the first time: static const struct icmp_control icmp_pointers[NR_ICMP_TYPES + 1] = { [ICMP_ECHOREPLY] = { .output_entry = ICMP_MIB_OUTECHOREPS,

data structure initialization

2009-11-27 Thread Anuz Pratap Singh Tomar
Hi all, I have came across, this kind of structure initialization for the first time. static const struct icmp_control icmp_pointers[NR_ICMP_TYPES + 1] = { [ICMP_ECHOREPLY] = { .output_entry = ICMP_MIB_OUTECHOREPS, .input_entry = ICMP_MIB_INECHOREPS,