diff options
author | Martin Hundebøll <martin@hundeboll.net> | 2013-05-23 10:53:01 -0400 |
---|---|---|
committer | Antonio Quartulli <antonio@meshcoding.com> | 2013-10-12 05:58:33 -0400 |
commit | f097e25dbe9144447f46b6b61ca3da1a2ba432d4 (patch) | |
tree | 72ead8362929e5f60de67f2a15b716fd73265d32 /net/batman-adv/packet.h | |
parent | 2c598663e84c8c8edbbac568e9e94e1fac410c3c (diff) |
batman-adv: Remove old fragmentation code
Remove the existing fragmentation code before adding the new version
and delete unicast.{h,c}.
batadv_unicast_send_skb() is moved to send.c and renamed to
batadv_send_skb_unicast().
fragmentation entry in sysfs (bat_priv->fragmentation) is kept for use in
the new fragmentation code.
BATADV_UNICAST_FRAG packet type is renamed to BATADV_FRAG for use in the
new fragmentation code.
Signed-off-by: Martin Hundebøll <martin@hundeboll.net>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
Diffstat (limited to 'net/batman-adv/packet.h')
-rw-r--r-- | net/batman-adv/packet.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/net/batman-adv/packet.h b/net/batman-adv/packet.h index 4361bae6186a..5e3b1026b509 100644 --- a/net/batman-adv/packet.h +++ b/net/batman-adv/packet.h | |||
@@ -91,12 +91,6 @@ enum batadv_icmp_packettype { | |||
91 | BATADV_PARAMETER_PROBLEM = 12, | 91 | BATADV_PARAMETER_PROBLEM = 12, |
92 | }; | 92 | }; |
93 | 93 | ||
94 | /* fragmentation defines */ | ||
95 | enum batadv_unicast_frag_flags { | ||
96 | BATADV_UNI_FRAG_HEAD = BIT(0), | ||
97 | BATADV_UNI_FRAG_LARGETAIL = BIT(1), | ||
98 | }; | ||
99 | |||
100 | /* tt data subtypes */ | 94 | /* tt data subtypes */ |
101 | #define BATADV_TT_DATA_TYPE_MASK 0x0F | 95 | #define BATADV_TT_DATA_TYPE_MASK 0x0F |
102 | 96 | ||
@@ -255,16 +249,6 @@ struct batadv_unicast_4addr_packet { | |||
255 | */ | 249 | */ |
256 | }; | 250 | }; |
257 | 251 | ||
258 | struct batadv_unicast_frag_packet { | ||
259 | struct batadv_header header; | ||
260 | uint8_t ttvn; /* destination translation table version number */ | ||
261 | uint8_t dest[ETH_ALEN]; | ||
262 | uint8_t flags; | ||
263 | uint8_t align; | ||
264 | uint8_t orig[ETH_ALEN]; | ||
265 | __be16 seqno; | ||
266 | } __packed; | ||
267 | |||
268 | struct batadv_bcast_packet { | 252 | struct batadv_bcast_packet { |
269 | struct batadv_header header; | 253 | struct batadv_header header; |
270 | uint8_t reserved; | 254 | uint8_t reserved; |