freerds-icp: make use of protocol data structures