wanpipe/util/wancfg/list_element_ppp_interface.h

62 lines
1.9 KiB
C++

/***************************************************************************
list_element_ppp_interface.h - description
-------------------
begin : Thu Mar 18 2004
copyright : (C) 2004 by David Rokhvarg
email : davidr@sangoma.com
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef LIST_ELEMENT_PPP_IF_H
#define LIST_ELEMENT_PPP_IF_H
#include "list_element_chan_def.h"
#define DBG_LIST_ELEMENT_PPP_INTERFACE 1
/**
*@author David Rokhvarg
*/
class list_element_ppp_interface : public list_element_chan_def {
wan_sppp_if_conf_t* ppp;
public:
list_element_ppp_interface()
{
Debug(DBG_LIST_ELEMENT_PPP_INTERFACE,
("list_element_ppp_interface::list_element_ppp_interface()\n"));
data.chanconf->config_id = WANCONFIG_MPPP;
//set default configuration
ppp = &data.chanconf->u.ppp;
ppp->dynamic_ip = WANOPT_PPP_STATIC;
ppp->pap = WANOPT_NO;
ppp->chap = WANOPT_NO;
//data.chanconf->u.ppp.userid
//data.chanconf->u.ppp.passwd
//data.chanconf->u.ppp.sysname
}
~list_element_ppp_interface()
{
Debug(DBG_LIST_ELEMENT_PPP_INTERFACE,
("list_element_ppp_interface::~list_element_ppp_interface()\n"));
}
};
#endif