M
_mario.lat
for struct:
struct in6_addr {
uint8_t s6_addr[16];
};
is provided a costant:
#define IN6ADDR_LOOPBACK_INIT {{{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}}}
what does means {{{, and }}}?
why can be used in a declaration only?
thankyou in advance,
MArio.
--------
I refer to:
http://www.faqs.org/rfcs/rfc3493.html
"[...]
The symbolic constant is named IN6ADDR_LOOPBACK_INIT and is
defined in <netinet/in.h>.
It can be used at declaration time ONLY; for example:
struct in6_addr loopbackaddr = IN6ADDR_LOOPBACK_INIT;
Like IN6ADDR_ANY_INIT, this constant cannot be used in an assignment
to a previously declared IPv6 address variable.
[...]
"
struct in6_addr {
uint8_t s6_addr[16];
};
is provided a costant:
#define IN6ADDR_LOOPBACK_INIT {{{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}}}
what does means {{{, and }}}?
why can be used in a declaration only?
thankyou in advance,
MArio.
--------
I refer to:
http://www.faqs.org/rfcs/rfc3493.html
"[...]
The symbolic constant is named IN6ADDR_LOOPBACK_INIT and is
defined in <netinet/in.h>.
It can be used at declaration time ONLY; for example:
struct in6_addr loopbackaddr = IN6ADDR_LOOPBACK_INIT;
Like IN6ADDR_ANY_INIT, this constant cannot be used in an assignment
to a previously declared IPv6 address variable.
[...]
"