[olsr-dev] Why padding to 4 bytes in nameservice plugin?
Jens Nachtigall
(spam-protected)
Sun Apr 9 00:49:12 CEST 2006
Hi all,
I am extending the nameservice plugin at the moment (more on this if it is
finished).
The nameservice plugin does basically send a char* name over the network,
however all these char *name are padded to bytes boundaries with somethiing
like
for (k = name->len; (k & 3) != 0; k++)
*pos++ = '\0';
I wonder if this necessary? Why is it padded to 4 bytes? Unfortunately, Bruno
(the author of these lines) is on a world trip, so I cannot ask him. Does
anybody of you know?
Regards,
Jens
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20060409/a0ff2071/attachment.sig>
More information about the Olsr-dev
mailing list