Changeset 6245


Ignore:
Timestamp:
Sep 4, 2008, 11:32:51 AM (16 years ago)
Author:
RIck van der Zwet
Message:

Made the broadcast address calcuation a bit more efficient

File:
1 edited

Legend:

Unmodified
Added
Removed
  • exodus/wllogic.py

    r6244 r6245  
    3737def broadcast(address, netmask):
    3838        """IPv4 network address when address and netmask are given"""
    39         return((parseaddr(address) & netmask2subnet(netmask)) | 0xffffffff >> netmask)
     39        return(parseaddr(address) | 0xffffffff >> netmask)
    4040
    4141def getNetwork(address, netmask):
Note: See TracChangeset for help on using the changeset viewer.