From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marek Lindner Date: Wed, 24 Apr 2013 22:22:22 +0800 References: <1366724403-29629-1-git-send-email-lindner_marek@yahoo.de> <1366724403-29629-2-git-send-email-lindner_marek@yahoo.de> In-Reply-To: <1366724403-29629-2-git-send-email-lindner_marek@yahoo.de> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201304242222.22628.lindner_marek@yahoo.de> Subject: Re: [B.A.T.M.A.N.] [PATCHv2 1/7] batman-adv: tvlv - basic infrastructure Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: The list for a Better Approach To Mobile Ad-hoc Networking On Tuesday, April 23, 2013 21:39:57 Marek Lindner wrote: > The goal is to provide the infrastructure for sending, receiving and > parsing information 'containers' while preserving backward > compatibility. TVLV (based on the commonly known Type Length Value > technique) was chosen as the format for those containers. Even if a > node does not know the tvlv type of a certain container it can simply > skip the current container and proceed with the next. Past experience > has shown features evolve over time, so a 'version' field was added > right from the start to allow differentiating between feature > variants - hence the name: T(ype) V(ersion) L(ength) V(alue). > > This patch introduces the basic TVLV infrastructure: > * register / unregister tvlv containers to be sent with each OGM > (on primary interfaces only) > * register / unregister callback handlers to be called upon > finding the corresponding tvlv type in a tvlv buffer > * unicast tvlv send / receive API calls > > Signed-off-by: Marek Lindner > Signed-off-by: Spyros Gasteratos > --- > bat_iv_ogm.c | 38 ++-- > compat.c | 8 + > compat.h | 1 + > main.c | 620 > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > main.h | 35 ++++ > packet.h | 67 +++++++ > routing.c | 48 +++++ > routing.h | 2 + > types.h | 73 +++++++ > 9 files changed, 875 insertions(+), 17 deletions(-) Applied in revision 0b6aa0d. Thanks, Marek