Equation of state of hadronic matter