The branch, patches-2012.4.0 has been created at 8fb6c2d1133699e28bae5dd1a8ff1050fd0969bb (commit)
- Shortlog ------------------------------------------------------------ commit 8fb6c2d1133699e28bae5dd1a8ff1050fd0969bb Author: Sven Eckelmann sven@narfation.org Date: Sun Aug 19 21:48:25 2012 +0200
batman-adv: Start new development cycle
Signed-off-by: Sven Eckelmann sven@narfation.org
commit 1e42639f2cdf3df7f5d29adbd2c16488c846741b Author: Jesper Juhl jj@chaosbits.net Date: Tue Aug 7 20:32:34 2012 +0200
batman-adv: Fix mem leak in the batadv_tt_local_event() function
Memory is allocated for 'tt_change_node' with kmalloc(). 'tt_change_node' may go out of scope without really being used for anything (except have a few members initialized) if we hit the 'del:' label. This patch makes sure we free the memory in that case.
Signed-off-by: Jesper Juhl jj@chaosbits.net Acked-by: Antonio Quartulli ordex@autistici.org
commit 34903a5e08c5e99e5a3df6bdfa9bdd22b16eede3 Author: Marek Lindner lindner_marek@yahoo.de Date: Mon Jul 23 14:59:13 2012 +0200
batman-adv: select an internet gateway if none was chosen
This is a regression introduced by: 6a17ecc4603be7f065c38b288d038a0082bbf21d
Reported-by: Nicolás Echániz nicoechaniz@codigosur.org Signed-off-by: Marek Lindner lindner_marek@yahoo.de Acked-by: Antonio Quartulli ordex@autistici.org
commit 3a07f75829cb408cff32733ecbae05975dcd743e Author: Sven Eckelmann sven@narfation.org Date: Wed Jul 18 09:07:07 2012 +0200
batman-adv: Fix wrong multiline comment ending
This regression was introduced in 724d05c8215e4e8186097121595ef20b6ba601b7
Signed-off-by: Sven Eckelmann sven@narfation.org
commit 8e372fef4fead5f31c65549460e76e9740e5c7a8 Author: Antonio Quartulli ordex@autistici.org Date: Thu Jul 5 23:38:30 2012 +0200
batman-adv: change interface_rx to get orig node
In order to understand where a broadcast packet is coming from and use this information to detect not yet announced clients, this patch modifies the interface_rx() function by passing a new argument: the orig node corresponding to the node that originated the received packet (if known). This new argument if not NULL for broadcast packets only (other packets does not have source field).
Signed-off-by: Antonio Quartulli ordex@autistici.org
commit ff759ec03a0e6be67d3b2ae2f5e1c21773eb3901 Author: Antonio Quartulli ordex@autistici.org Date: Thu Jul 5 23:38:29 2012 +0200
batman-adv: detect not yet announced clients
With the current TT mechanism a new client joining the network is not immediately able to communicate with other hosts because its MAC address has not been announced yet. This situation holds until the first OGM containing its joining event will be spread over the mesh network.
This behaviour can be acceptable in networks where the originator interval is a small value (e.g. 1sec) but if that value is set to an higher time (e.g. 5secs) the client could suffer from several malfunctions like DHCP client timeouts, etc.
This patch adds an early detection mechanism that makes nodes in the network able to recognise "not yet announced clients" by means of the broadcast packets they emitted on connection (e.g. ARP or DHCP request). The added client will then be confirmed upon receiving the OGM claiming it or purged if such OGM is not received within a fixed amount of time.
Signed-off-by: Antonio Quartulli ordex@autistici.org
commit 2e1c8c32aca6566c1537f826c32dda4240934726 Author: Sven Eckelmann sven@narfation.org Date: Sun Jul 8 18:33:51 2012 +0200
batman-adv: Reduce accumulated length of simple statements
Signed-off-by: Sven Eckelmann sven@narfation.org
commit 2623be48079a2ee2b508a3b69cad8924efc84a3a Author: Sven Eckelmann sven@narfation.org Date: Sun Jul 8 17:13:15 2012 +0200
batman-adv: Don't break statements after assignment operator
Signed-off-by: Sven Eckelmann sven@narfation.org
commit 1c007a4e65b840083e99090ad5ba934500861757 Author: Sven Eckelmann sven@narfation.org Date: Sun Jul 8 16:32:09 2012 +0200
batman-adv: Use BIT(x) macro to calculate bit positions
Signed-off-by: Sven Eckelmann sven@narfation.org
commit 89068bc06a25f4aa3468cd4420177c9a201c164b Author: Martin Hundebøll martin@hundeboll.net Date: Thu Jul 5 11:34:28 2012 +0200
batman-adv: Drop tt queries with foreign dest
When enabling promiscuous mode, tt queries for other hosts might be received. Before this patch, "foreign" tt queries were processed like any other query and thus forwarded to its destination again and thereby causing a loop.
This patch adds a check to drop foreign tt queries.
Signed-off-by: Martin Hundebøll martin@hundeboll.net
commit 8a6dbecffa708cb06927a607763ecd83d3cb7163 Author: Martin Hundebøll martin@hundeboll.net Date: Thu Jul 5 11:34:27 2012 +0200
batman-adv: Move batadv_check_unicast_packet()
batadv_check_unicast_packet() is needed in batadv_recv_tt_query(), so move the former to before the latter.
Signed-off-by: Martin Hundebøll martin@hundeboll.net
commit 7c9011cf66d23bf9b380266b78ab94c22420eb76 Author: Sven Eckelmann sven@narfation.org Date: Sun Jul 15 22:26:51 2012 +0200
batman-adv: Split batadv_priv in sub-structures for features
The structure batadv_priv grows everytime a new feature is introduced. It gets hard to find the parts of the struct that belongs to a specific feature. This becomes even harder by the fact that not every feature uses a prefix in the member name.
The variables for bridge loop avoidence, gateway handling, translation table and visualization server are moved into separate structs that are included in the bat_priv main struct.
Signed-off-by: Sven Eckelmann sven@narfation.org
commit 94ad7fbe7e610061e091bcc914db70c52913e03b Author: Simon Wunderlich simon.wunderlich@s2003.tu-chemnitz.de Date: Sun Jul 1 22:51:55 2012 +0200
batman-adv: check batadv_orig_hash_add_if() return code
If this call fails, some of the orig_nodes spaces may have been resized for the increased number of interface, and some may not. If we would just continue with the larger number of interfaces, this would lead to access to not allocated memory later.
We better check the return code, and don't add the interface if no memory is available. OTOH, keeping some of the orig_nodes with too much memory allocated should hurt no one (except for a few too many bytes allocated).
Signed-off-by: Simon Wunderlich siwu@hrz.tu-chemnitz.de
commit e1732c8b4e17b1cc2dc0d9ae144f7b8acf768061 Author: Antonio Quartulli ordex@autistici.org Date: Sun Jul 1 19:07:31 2012 +0200
batman-adv: fix typos in comments
the word millisecond is misspelled in several comments. This patch fixes it.
Signed-off-by: Antonio Quartulli ordex@autistici.org
commit 0634ff72b9104cb347a0b83748c199b40ed95f2e Author: Antonio Quartulli ordex@autistici.org Date: Sun Jul 1 14:09:12 2012 +0200
batman-adv: add reference counting for type batadv_tt_orig_list_entry
The batadv_tt_orig_list_entry structure didn't have any refcounting mechanism so far. This patch introduces it and makes the structure being usable in much more complex context.
Signed-off-by: Antonio Quartulli ordex@autistici.org
commit 411ed2498022b4d4c1650641c8523542f082dedd Author: Jonathan Corbet corbet@lwn.net Date: Sat Jun 30 10:49:13 2012 -0600
batman-adv: remove a misleading comment
As much as I'm happy to see LWN links sprinkled through the kernel by the dozen, this one in particular reflects a very old state of reality; the associated comment is now incorrect. So just delete it.
Signed-off-by: Jonathan Corbet corbet@lwn.net
commit d7d792f51fe21bed7280eecc3ecc2f9f9ceb9bb7 Author: Marek Lindner lindner_marek@yahoo.de Date: Tue Jun 26 12:00:34 2012 +0200
batman-adv: fix multiline comment complaint
Regression introduced with: a81d0f914409c04cbefafb8b4ccf2de4cc50458f
Signed-off-by: Marek Lindner lindner_marek@yahoo.de
commit 14ad06e11a643de388735ca386028102eae3a1e4 Author: Marek Lindner lindner_marek@yahoo.de Date: Sat Jun 23 11:47:53 2012 +0200
batman-adv: convert remaining packet counters to per_cpu_ptr() infrastructure
Signed-off-by: Marek Lindner lindner_marek@yahoo.de Acked-by: Martin Hundebøll martin@hundeboll.net
commit 00e7aed048a713a24722aea034550baa5db3f2a2 Author: Simon Wunderlich simon.wunderlich@s2003.tu-chemnitz.de Date: Sat Jun 23 12:34:18 2012 +0200
batman-adv: rename bridge loop avoidance claim types
for consistency reasons within the code and with the documentation, we should always call it "claim" and "unclaim".
Signed-off-by: Simon Wunderlich siwu@hrz.tu-chemnitz.de
commit 5ca1e9e482cc25efdd18b9bce0d603a2f458116e Author: Simon Wunderlich simon.wunderlich@s2003.tu-chemnitz.de Date: Sat Jun 23 12:34:17 2012 +0200
batman-adv: correct comments in bridge loop avoidance
Signed-off-by: Simon Wunderlich siwu@hrz.tu-chemnitz.de
commit 5b6de3c833e3060bbc6d7ad88155b6b7f6408303 Author: Simon Wunderlich simon.wunderlich@s2003.tu-chemnitz.de Date: Mon Jun 18 18:39:26 2012 +0200
batman-adv: Add the backbone gateway list to debugfs
This is especially useful if there are no claims yet, but we still want to know which gateways are using bridge loop avoidance in the network.
Signed-off-by: Simon Wunderlich siwu@hrz.tu-chemnitz.de
-----------------------------------------------------------------------