Changeset 1608
- Timestamp:
- 11/06/08 15:29:11 (2 months ago)
- Files:
-
- branches/0.4.7/lib/cxnet/cxnet/netlink/util.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/0.4.7/lib/cxnet/cxnet/netlink/util.py
r1602 r1608 180 180 for i in ret: 181 181 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']): 183 183 result['static'] = i 184 184 elif i.has_key('dst_len') and i.has_key('src_len'):
