61 |
|
|
62 |
if (strstr (PARAM_ACCESS_METHOD, "modem")) |
if (strstr (PARAM_ACCESS_METHOD, "modem")) |
63 |
{ |
{ |
64 |
#ifdef WITH_MODEM |
#if ENABLE_MODEM |
65 |
haccess = &modem_access; |
haccess = &modem_access; |
66 |
#else |
#else |
67 |
log (LOG_ERR, gettext ("Sorry modem support is not compiled in\n")); |
log (LOG_ERR, gettext ("Sorry modem support is not compiled in\n")); |
71 |
|
|
72 |
else if (strstr (PARAM_ACCESS_METHOD, "tcpip")) |
else if (strstr (PARAM_ACCESS_METHOD, "tcpip")) |
73 |
{ |
{ |
74 |
#ifdef WITH_TCPIP |
#if ENABLE_TCPIP |
75 |
haccess = &tcpip_access; |
haccess = &tcpip_access; |
76 |
#else |
#else |
77 |
log (LOG_ERR, gettext ("Sorry TCP/IP support is not compiled in\n")); |
log (LOG_ERR, gettext ("Sorry TCP/IP support is not compiled in\n")); |
81 |
|
|
82 |
else if (strstr (PARAM_ACCESS_METHOD, "cable")) |
else if (strstr (PARAM_ACCESS_METHOD, "cable")) |
83 |
{ |
{ |
84 |
#ifdef WITH_CABLE |
#if ENABLE_CABLE |
85 |
haccess = &cable_access; |
haccess = &cable_access; |
86 |
#else |
#else |
87 |
log (LOG_ERR, gettext ("Sorry cable support is not compiled in\n")); |
log (LOG_ERR, gettext ("Sorry cable support is not compiled in\n")); |
99 |
lowerize (PARAM_INTERFACE_TYPE); |
lowerize (PARAM_INTERFACE_TYPE); |
100 |
if (strstr (PARAM_INTERFACE_TYPE, "tun")) |
if (strstr (PARAM_INTERFACE_TYPE, "tun")) |
101 |
{ |
{ |
102 |
#ifdef WITH_TUN |
#if ENABLE_TUN |
103 |
iface = &tun_iface; |
iface = &tun_iface; |
104 |
#else |
#else |
105 |
log (LOG_ERR, gettext ("Sorry tun support is not compiled in\n")); |
log (LOG_ERR, gettext ("Sorry tun support is not compiled in\n")); |
117 |
lowerize (PARAM_PROTOCOL); |
lowerize (PARAM_PROTOCOL); |
118 |
if (strstr (PARAM_PROTOCOL, "p3")) |
if (strstr (PARAM_PROTOCOL, "p3")) |
119 |
{ |
{ |
120 |
#ifdef WITH_P3 |
#if ENABLE_P3 |
121 |
protocol = &p3_protocol; |
protocol = &p3_protocol; |
122 |
#else |
#else |
123 |
log (LOG_ERR, gettext ("Sorry P3 support is not compiled in\n")); |
log (LOG_ERR, gettext ("Sorry P3 support is not compiled in\n")); |