kernel-ark/net/batman-adv
Sven Eckelmann e022b956c1 batman-adv: Use packing of 2 for all headers before an ethernet header
All packet headers in front of an ethernet header have to be completely
divisible by 2 but not by 4 to make the payload after the ethernet header again
4 bytes boundary aligned.

A packing of 2 is necessary to avoid extra padding at the end of the struct
caused by a structure member which is larger than two bytes. Otherwise the
structure would not fulfill the previously mentioned rule to avoid the
misalignment of the payload after the ethernet header. It may also lead to
leakage of information when the padding it not initialized before sending.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
2012-11-21 12:35:47 +01:00
..
bat_algo.h
bat_iv_ogm.c batman-adv: Reserve extra bytes in skb for better alignment 2012-11-07 20:00:16 +01:00
bitarray.c batman-adv: Remove extra check in batadv_bit_get_packet 2012-10-29 09:42:34 +01:00
bitarray.h batman-adv: make batadv_test_bit() return 0 or 1 only 2012-09-19 15:49:53 -04:00
bridge_loop_avoidance.c batman-adv: Fix broadcast duplist for fragmentation 2012-11-21 12:35:45 +01:00
bridge_loop_avoidance.h batman-adv: Fix broadcast duplist for fragmentation 2012-11-21 12:35:45 +01:00
debugfs.c batman-adv: support array of debugfs general attributes 2012-11-21 12:34:49 +01:00
debugfs.h
distributed-arp-table.c batman-adv: Add get_ethtool_stats() support for DAT 2012-11-07 20:00:23 +01:00
distributed-arp-table.h batman-adv: Add get_ethtool_stats() support for DAT 2012-11-07 20:00:23 +01:00
gateway_client.c batman-adv: consolidate duplicated primary_if checking code 2012-10-29 09:42:29 +01:00
gateway_client.h
gateway_common.c
gateway_common.h
hard-interface.c batman-adv: prevent using any virtual device created on batman-adv as hard-interface 2012-11-14 21:00:33 +01:00
hard-interface.h
hash.c
hash.h batman-adv: don't rely on positions in struct for hashing 2012-11-14 21:00:32 +01:00
icmp_socket.c batman-adv: Reserve extra bytes in skb for better alignment 2012-11-07 20:00:16 +01:00
icmp_socket.h
Kconfig batman-adv: Add function to calculate crc32c for the skb payload 2012-11-21 12:35:41 +01:00
main.c batman-adv: Add function to calculate crc32c for the skb payload 2012-11-21 12:35:41 +01:00
main.h batman-adv: Start new development cycle 2012-11-21 12:35:46 +01:00
Makefile batman-adv: Distributed ARP Table - add compile option 2012-11-07 20:00:22 +01:00
originator.c batman-adv: substitute tt_poss_change with a per-tt_entry flag 2012-11-14 21:00:35 +01:00
originator.h
packet.h batman-adv: Use packing of 2 for all headers before an ethernet header 2012-11-21 12:35:47 +01:00
ring_buffer.c
ring_buffer.h
routing.c batman-adv: Fix broadcast duplist for fragmentation 2012-11-21 12:35:45 +01:00
routing.h
send.c batman-adv: Add wrapper to look up neighbor and send skb 2012-11-21 12:34:50 +01:00
send.h batman-adv: Add wrapper to look up neighbor and send skb 2012-11-21 12:34:50 +01:00
soft-interface.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2012-11-17 22:00:43 -05:00
soft-interface.h batman-adv: change interface_rx to get orig node 2012-08-23 14:20:22 +02:00
sysfs.c batman-adv: Remove instant overwritten variable initialization 2012-11-14 21:00:37 +01:00
sysfs.h
translation-table.c batman-adv: Add wrapper to look up neighbor and send skb 2012-11-21 12:34:50 +01:00
translation-table.h batman-adv: substitute tt_poss_change with a per-tt_entry flag 2012-11-14 21:00:35 +01:00
types.h batman-adv: Fix broadcast duplist for fragmentation 2012-11-21 12:35:45 +01:00
unicast.c batman-adv: Add wrapper to look up neighbor and send skb 2012-11-21 12:34:50 +01:00
unicast.h batman-adv: Distributed ARP Table - create DHT helper functions 2012-11-07 20:00:19 +01:00
vis.c batman-adv: Add wrapper to look up neighbor and send skb 2012-11-21 12:34:50 +01:00
vis.h batman-adv: fix typos in comments 2012-08-23 14:02:45 +02:00