~ubuntu-branches/ubuntu/trusty/linux-linaro-omap/trusty

« back to all changes in this revision

Viewing changes to net/batman-adv/aggregation.h

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-57i0gl3v99b3lkfg
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#include "main.h"
26
26
 
27
27
/* is there another aggregated packet here? */
28
 
static inline int aggregated_packet(int buff_pos, int packet_len, int num_hna)
 
28
static inline int aggregated_packet(int buff_pos, int packet_len, int num_tt)
29
29
{
30
 
        int next_buff_pos = buff_pos + BAT_PACKET_LEN + (num_hna * ETH_ALEN);
 
30
        int next_buff_pos = buff_pos + BAT_PACKET_LEN + (num_tt * ETH_ALEN);
31
31
 
32
32
        return (next_buff_pos <= packet_len) &&
33
33
                (next_buff_pos <= MAX_AGGREGATION_BYTES);