Getter and setter methods for packet->r