tfUseIpHdrComp

Jump to: navigation, search

Table of Contents >> Optional Protocols >> PPP Interface


#include <trsocket.h>


int tfUseIpHdrComp (ttUserLinkLayer linkLayer);


Function Description

This function enables and initializes IP header compression. It should be called after the link layer is initialized but before the device is opened.


For example:

 
tfUseAsyncPpp(...);
tfAddInterface(...);
 
tfUseIpHdrComp(...);
tfOpenInterface(...);
 


Parameters

  • linkLayer
    Indicates the link layer to use IP header compression on.


Returns

  • TM_ENOERROR
    Success.
  • TM_EINVAL
    Invalid link layer.


Table of Contents >> Optional Protocols >> PPP Interface