I see two ways of doing this:
1)
declare CMUTrace as friend of Mac802_1 like this:
Code:
class Mac802_1{
.........
friend class CMUTrace;
};
then in any member function of CMUTrace, which have a pointer or an object of type Mac802_1 you can do that:
Code:
CMUTrace::anyFunction(Mac802_1 obj){
cout<<obj.macmib_.ACKFailureCount;//or whatever you want to do with the counter
}
2)
write a method which returns the value of the counter:
Code:
class Mac802_11{
...........
int getACK(){return macmib_.ACKFailureCount;}
};
I think this is what you want to do.