Implement subnet mask matching in OpenFlow.