Spyros

todo midterm

Jul 7th, 2012
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1.  
  2. /* *No more warnings -- done
  3. *
  4. * *Tvlv handler list --coded
  5. * *The Gateway callback should call batadv_gw_node_update()
  6. * *Remove it from bat_iv_ogm.c and use it in the gateway callback
  7. * *Add this to sysfs.c -> batadv_gw_node_update()
  8.  
  9. if (atomic_read(&bat_priv->gw_mode) == gw_mode_tmp)
  10. return count;
  11.  
  12. switch (gw_mode_tmp) {
  13. case BATADV_GW_MODE_OFF:
  14. case BATADV_GW_MODE_CLIENT:
  15. /*unregister gw tvlv*
  16. tvlv_unregister(BATADV_GW_TVLV,
  17. bat_priv);
  18. break;
  19. case BATADV_GW_MODE_SERVER:
  20. /*register,value == BATADV_GW_MODE_SERVER*
  21. tvlv_register(BATADV_GW_TVLV, 0x01,
  22. sizeof(bat_priv->gw_bandwidth),
  23. &bat_priv->gw_bandwidth, bat_priv);
  24. break;
  25. }
  26.  
  27. * *Fix identation
  28. * *Reduce easily reducable patches
  29. * *Replace memcpy((char *)tvlv+sizeof(struct shortTvlv), value, length*sizeof(uint8_t));
  30. [4:31:41 PM] mareklindner: memcpy(tvlv + 1, value, length*sizeof(uint8_t));
  31. [4:31:55 PM] Simon Wunderlich: memcpy(tvlv + 1, value, length);
  32. * *batctl gwl
  33. [4:35:36 PM] mareklindner: batadv_gw_node_update() -> batctl gwl
  34. [4:36:06 PM] mareklindner: disable aggregation
  35. * batctl ag 0
  36. * fix merge conflicts
  37. *
  38.  
  39.  
  40. * **/
Advertisement
Add Comment
Please, Sign In to add comment