User`s guide

KwikNet Low Level Services
K
A
DAK
139
Network Parameter Structure (PPP)
struct knx_np_ppp {
struct in_addr xp_ppp_ipaddr; /* Network IP address */
struct in_addr xp_ppp_ipremote; /* Remote peer IP address */
struct in_addr xp_ppp_unused; /* Reserved field */
short xp_ppp_ipattr; /* IP address attributes */
short xp_ppp_rsv1; /* Reserved for alignment */
unsigned long xp_ppp_options; /* Negotiation options */
struct in_addr xp_ppp_dns1; /* Primary DNS IP address */
struct in_addr xp_ppp_dns2; /* Secondary DNS IP address */
};
For PPP networks, the network parameter definitions are somewhat complex. All of
these parameters have been described in detail in Chapter 2.6. You are advised to review
that chapter. Alternatively, run the KwikNet Configuration Builder, select the Networks
property page, click on the Add button, pick PPP Client from the Network driver pull down
list and click on the PPP Options... button. Press F1 for help and view the description of
each option in the dialog box. These options correspond with the fields in structure
knx_np_ppp.
If mask bit KN_IPATTR_GATEWAY in field xp_ppp_ipattr is set, then the remote peer IP
address will be installed as the default gateway once the PPP connection is established.
Note that the first default gateway to be installed becomes the system's default gateway.
When a subsequent network interface is opened, its default gateway will not override the
previously installed gateway.
Other boolean options are specified in field xp_ppp_options by ORing the value 0 with
the applicable PPP option bit masks from KwikNet header file KN_API.H.
LCP negotiation:
KN_PPP_HDRCOMP Use header field compression
KN_PPP_MAGIC Use magic number negotiation
Authentication:
KN_PPP_REAP Require EAP
KN_PPP_RMSCHAP1 Require MS-CHAP v1
KN_PPP_RCHAP Require CHAP
KN_PPP_RPAP Require PAP
KN_PPP_OEAP Offer EAP
KN_PPP_OMSCHAP1 Offer MS-CHAP v1
KN_PPP_OCHAP Offer CHAP
KN_PPP_OPAP Offer PAP
IPCP Negotiation:
KN_PPP_IPCOMP Use IP header compression
KN_PPP_REQDNS Request DNS server information from peer