protected boolean IPIsBroadcast(int IPAddress){
  int inv_subnet_mask=~this.subnet_mask;
  return ((IPAddress & inv_subnet_mask) == inv_subnet_mask);
}

protected boolean IPIsBroadcast ( int IPAddress ) { int inv_subnet_mask = ~ this . subnet_mask ; return ( ( IPAddress & inv_subnet_mask ) == inv_subnet_mask ) ; }
checks whether an ip address is a broadcast address or not ( determines using subnet mask )
