commit | 3fba7325bb057977ec180b5f462084c50ca7940e | [log] [tgz] |
---|---|---|
author | Antonio Quartulli <antonio@open-mesh.com> | Sun Oct 13 02:50:17 2013 +0200 |
committer | Antonio Quartulli <antonio@meshcoding.com> | Wed Jan 08 20:49:39 2014 +0100 |
tree | ffa321077c017256351bf2c8342e80267382244b | |
parent | a48bcacdb3b31816500d5732111241b705c4bc61 [diff] |
batman-adv: don't switch byte order too often if not needed If possible, operations like ntohs/ntohl should not be performed too often. Use a variable to locally store the converted value and then use it. Signed-off-by: Antonio Quartulli <antonio@open-mesh.com> Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch> Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>