Changeset 1608

Show
Ignore:
Timestamp:
11/06/08 15:29:11 (2 months ago)
Author:
peet
Message:

use of get_base()

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/0.4.7/lib/cxnet/cxnet/netlink/util.py

    r1602 r1608  
    180180                for i in ret: 
    181181                        if i.has_key('dst_prefix') and i.has_key('dst_len'): 
    182                                 if dqn_to_int(i['dst_prefix']) == ((((1 << i['dst_len']) - 1) << (32 - i['dst_len'])) & dst): 
     182                                if dqn_to_int(i['dst_prefix']) == get_base(dst,i['dst_len']): 
    183183                                        result['static'] = i 
    184184                        elif i.has_key('dst_len') and i.has_key('src_len'):