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_INADDRMASKREPS,
>                 .handler = icmp_address_reply,
>         },
> };
> 
> 
> I am not sure what those indexes are for: for example
> [ICMP_ADDRESSREPLY].
You tell the C compiler that the above element should be at index
ICMP_ADDRESSREPLY (which must be a compile-time constant of course and
counting starts with 0 - as always in C).

        Bernd
-- 
Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services



--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to