class ACLRule {

	public boolean match(ACLRule r) {
		if ((this.tp_dst == r.tp_dst || r.tp_dst == 0)
				&& (this.nw_proto == r.nw_proto || r.nw_proto == 0)
				&& (isSubnet(this.getNw_src(), r.getNw_src()) == true)
				&& (isSubnet(this.getNw_dst(), r.getNw_dst()) == true)) {
			return true;
		}
		return false;
	}

	public  ACLRule();

}