/* Record the parameter values for the Actor carried in a received lacpdu as the current partner operational parameter values and sets actor_oper_port_state.defaulted to FALSE.  */
static void __record_pdu(struct lacpdu *lacpdu, struct port *port)
/* Record the parameter values for the Actor carried in a received lacpdu as the current partner operational parameter values and sets actor_oper_port_state.defaulted to FALSE.  */
static void __record_pdu(struct lacpdu *lacpdu, struct port *port)
{
	if (lacpdu && port) {
		struct port_params *partner = &port->partner_oper;
		__choose_matched(lacpdu, port);
		partner->port_number = ntohs(lacpdu->actor_port);
		partner->port_priority = ntohs(lacpdu->actor_port_priority);
		partner->system = lacpdu->actor_system;
		partner->system_priority = ntohs(lacpdu->actor_system_priority);
		partner->key = ntohs(lacpdu->actor_key);
		partner->port_state = lacpdu->actor_state;
		port->actor_oper_port_state &= ~AD_STATE_DEFAULTED;
		if ((port->sm_vars & AD_PORT_MATCHED) && (lacpdu->actor_state & AD_STATE_SYNCHRONIZATION)) {
			partner->port_state |= AD_STATE_SYNCHRONIZATION;
		} else {
			partner->port_state &= ~AD_STATE_SYNCHRONIZATION;
		}
	}
}