Re: [B.A.T.M.A.N.] [PATCH-sven] batman-adv: Unify the first 4 bytes in each packet

Sven Eckelmann
2011-05-28T11:46:22Z

[-- Attachment #1: Type: Text/Plain, Size: 495 bytes --]

On Saturday 28 May 2011 10:43:03 Sven Eckelmann wrote:
> From: Antonio Quartulli <ordex@autistici.org>
>
> The amount of duplicated code in the receive and routing code can be
> reduced when all headers provide the packet type, version and ttl in the
> same first bytes.
>
> Signed-off-by: Antonio Quartulli <ordex@autistici.org>
> ---
> just my suggestion

Hm, forgot vis_packet and the 4 byte header is ugly. Maybe reordering
everything is better....

Kind regards,
Sven

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]