• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asus-wl-520gu-7.0.1.45/src/router/ppp/pppd/plugins/pppoe/

Lines Matching defs:ses

102 struct session *ses = NULL;
107 srv_init_ses(ses,devnam);
109 client_init_ses(ses,devnam);
113 err= session_connect ( ses );
116 poe_fatal(ses,"Failed to negotiate PPPoE connection: %d %m",errno,errno);
120 poe_info(ses,"Connecting PPPoE socket: %E %04x %s %p",
121 ses->sp.sa_addr.pppoe.remote,
122 ses->sp.sa_addr.pppoe.sid,
123 ses->sp.sa_addr.pppoe.dev,ses);
125 err = connect(ses->fd, (struct sockaddr*)&ses->sp,
130 poe_fatal(ses,"Failed to connect PPPoE socket: %d %m",errno,errno);
136 return ses->fd;
143 session_disconnect(ses);
144 ses->sp.sa_addr.pppoe.sid = 0;
145 ret = connect(ses->fd, (struct sockaddr*)&ses->sp,
160 ses=(void *)malloc(sizeof(struct session));
161 if(!ses){
164 memset(ses,0,sizeof(struct session));
166 if ((ses->filt=malloc(sizeof(struct filter))) == NULL) {
167 poe_error (ses,"failed to malloc for Filter ");
171 filt=ses->filt; /* makes the code more readable */
176 poe_error (ses," AC name too long (maximum allowed 256 chars)");
179 ses->filt->ntag = make_filter_tag(PTT_AC_NAME,
183 if ( ses->filt->ntag== NULL) {
184 poe_error (ses,"failed to malloc for AC name");
193 poe_error (ses," Service name too long
197 ses->filt->stag = make_filter_tag(PTT_SRV_NAME,
200 if ( ses->filt->stag == NULL) {
201 poe_error (ses,"failed to malloc for service name");
207 ses->filt->htag = make_filter_tag(PTT_HOST_UNIQ,
210 if ( ses->filt->htag == NULL) {
211 poe_error (ses,"failed to malloc for Uniq Host Id ");
217 ses->retries=retries;
220 memcpy( ses->name, devnam, IFNAMSIZ);
221 ses->opt_debug=1;