Lines Matching refs:curr_pkt
32 memcpy(&ses->curr_pkt.addr, &ses->remote , sizeof(struct sockaddr_ll));
34 ses->curr_pkt.hdr->code = PADR_CODE;
38 copy_tag(&ses->curr_pkt,get_tag(p_in->hdr,PTT_HOST_UNIQ));
41 ses->curr_pkt.tags[TAG_AC_NAME]=NULL;
43 // copy_tag(&ses->curr_pkt,get_tag(p_in->hdr,PTT_AC_NAME));
46 ses->curr_pkt.tags[TAG_SRV_NAME]=NULL;
48 copy_tag(&ses->curr_pkt,get_tag(p_in->hdr,PTT_SRV_NAME));
50 copy_tag(&ses->curr_pkt,get_tag(p_in->hdr,PTT_AC_COOKIE));
51 copy_tag(&ses->curr_pkt,get_tag(p_in->hdr,PTT_RELAY_SID));
57 send_disc(ses, &ses->curr_pkt);
58 (*p_out) = &ses->curr_pkt;
78 memset(&ses->curr_pkt,0, sizeof(struct pppoe_packet));
80 ses->curr_pkt.hdr = (struct pppoe_hdr*) ses->curr_pkt.buf;
81 ses->curr_pkt.hdr->ver = 1;
82 ses->curr_pkt.hdr->type = 1;
83 ses->curr_pkt.hdr->code = PADI_CODE;
86 memcpy( &ses->curr_pkt.addr, &ses->remote , sizeof(struct sockaddr_ll));
89 ses->curr_pkt.tags[TAG_AC_NAME]=ses->filt->ntag;
92 ses->curr_pkt.tags[TAG_SRV_NAME]=ses->filt->stag;
95 ses->curr_pkt.tags[TAG_HOST_UNIQ]=ses->filt->htag;
99 send_disc(ses, &ses->curr_pkt);
100 (*p_out)= &ses->curr_pkt;