setAccessType needs to be public in order to change the access type from some packet

The switchAccessType methods in either packet buffer need to be changed to protected as they only handle the switching of the access type, the access type is never actually changed.