tfLqmSetLqrTimerPeriod

Jump to: navigation, search

Table of Contents >> Optional Protocols >> PPP Interface


#include <trsocket.h>


int tfLqmSetLqrTimerPeriod (
ttUserInterface interfaceHandle,
ttUser32Bit lqrTimerPeriodMsec
);


Function Description

This function can be called to increase the frequency of sending LQRs (i.e. decrease the LQR timer period) when using a LQR timer. This function should be called by the user to send LQRs faster when the link is good outgoing, but very bad incoming, since in that case incoming LQRs will be frequently lost. The LQR timer period cannot be increased to be longer than the negotiated period.


Parameters

  • interfaceHandle
    The PPP interface handle as returned by tfAddInterface().
  • lqrTimerPeriodMsec
    Configures how long (in milliseconds) we wait before sending a LQR. This period cannot be longer than the negotiated period for the LQR timer, and cannot be 0.


Returns

  • TM_ENOERROR
    Success.
  • TM_EINVAL
    Invalid parameter.
  • TM_EOPNOTSUPP
    No LQR timer is being used locally, or LQM is disabled on the link.


Table of Contents >> Optional Protocols >> PPP Interface