Support PPP link types
Refactor offset function and variable names