Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314298
b: refs/heads/master
c: 66a1b2b
h: refs/heads/master
v: v3
  • Loading branch information
Antonio Quartulli committed Jun 18, 2012
1 parent 792c813 commit 1f1bd5d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5d52dad27a08d2c8851acb12b041088ec07881dd
refs/heads/master: 66a1b2bcb34b0c74a3422968b15a7ea853ea5a2d
3 changes: 1 addition & 2 deletions trunk/net/batman-adv/bat_iv_ogm.c
Original file line number Diff line number Diff line change
Expand Up @@ -575,8 +575,7 @@ static void bat_iv_ogm_schedule(struct hard_iface *hard_iface,
htonl((uint32_t)atomic_read(&hard_iface->seqno));

batman_ogm_packet->ttvn = atomic_read(&bat_priv->ttvn);
batman_ogm_packet->tt_crc = htons((uint16_t)
atomic_read(&bat_priv->tt_crc));
batman_ogm_packet->tt_crc = htons(bat_priv->tt_crc);
if (tt_num_changes >= 0)
batman_ogm_packet->tt_num_changes = tt_num_changes;

Expand Down
2 changes: 1 addition & 1 deletion trunk/net/batman-adv/send.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ static int prepare_packet_buffer(struct bat_priv *bat_priv,

realloc_packet_buffer(hard_iface, new_len);

atomic_set(&bat_priv->tt_crc, tt_local_crc(bat_priv));
bat_priv->tt_crc = tt_local_crc(bat_priv);

/* reset the sending counter */
atomic_set(&bat_priv->tt_ogm_append_cnt, TT_OGM_APPEND_MAX);
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/batman-adv/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ struct bat_priv {
spinlock_t vis_list_lock; /* protects vis_info::recv_list */
atomic_t num_local_tt;
/* Checksum of the local table, recomputed before sending a new OGM */
atomic_t tt_crc;
uint16_t tt_crc;
unsigned char *tt_buff;
int16_t tt_buff_len;
spinlock_t tt_buff_lock; /* protects tt_buff */
Expand Down

0 comments on commit 1f1bd5d

Please sign in to comment.