Changeset 1543
- Timestamp:
- 01/09/10 15:44:04 (7 months ago)
- Files:
-
- 1 modified
-
trunk/batman-adv-kernelland/device.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/batman-adv-kernelland/device.c
r1526 r1543 26 26 #include "types.h" 27 27 #include "hash.h" 28 #include "hard-interface.h" 28 29 29 30 #include "compat.h" … … 209 210 struct orig_node *orig_node; 210 211 struct batman_if *batman_if; 212 uint8_t dstaddr[ETH_ALEN]; 211 213 unsigned long flags; 212 214 … … 254 256 255 257 batman_if = orig_node->batman_if; 258 memcpy(dstaddr, orig_node->router->addr, ETH_ALEN); 259 260 spin_unlock_irqrestore(&orig_hash_lock, flags); 256 261 257 262 if (!batman_if) 258 goto unlock; 263 goto dst_unreach; 264 265 if (batman_if->if_active != IF_ACTIVE) 266 goto dst_unreach; 259 267 260 268 memcpy(icmp_packet.orig, … … 264 272 send_raw_packet((unsigned char *)&icmp_packet, 265 273 sizeof(struct icmp_packet), 266 batman_if, orig_node->router->addr); 267 268 spin_unlock_irqrestore(&orig_hash_lock, flags); 274 batman_if, dstaddr); 275 269 276 goto out; 270 277
