Lines Matching defs:p_in
15 struct pppoe_packet *p_in,
28 struct pppoe_packet *p_in,
38 memcpy(tag->tag_data, p_in->addr.sll_addr, ETH_ALEN);
41 if(! p_in->tags[TAG_RELAY_SID] ){
42 copy_tag(p_in, tag);
46 poe_dbglog(ses, "Recv'd PADI: %P",p_in);
47 poe_dbglog(ses, "Recv'd packet: %P",p_in);
56 newpc->key_len = ntohs(p_in->tags[TAG_RELAY_SID]->tag_len);
57 memcpy(newpc->key, p_in->tags[TAG_RELAY_SID]->tag_data, newpc->key_len);
58 memcpy(newpc->client, p_in->addr.sll_addr, ETH_ALEN);
68 memset(p_in->addr.sll_addr, 0xff, ETH_ALEN);
70 p_in->addr.sll_ifindex = ses->remote.sll_ifindex;
72 send_disc(ses, p_in);
77 struct pppoe_packet *p_in,
81 struct pppoe_tag *tag = p_in->tags[TAG_RELAY_SID];
89 poe_dbglog(ses, "Recv'd packet: %P",p_in);
91 if( memcmp(pc->client , p_in->addr.sll_addr , ETH_ALEN ) == 0 ){
93 memcpy(p_in->addr.sll_addr, pc->server, ETH_ALEN);
94 p_in->addr.sll_ifindex = ses->remote.sll_ifindex;
98 memcpy(pc->server, p_in->addr.sll_addr, ETH_ALEN);
100 }else if( memcmp(pc->server, p_in->addr.sll_addr, ETH_ALEN) !=0){
104 memcpy(p_in->addr.sll_addr, pc->client, ETH_ALEN);
105 p_in->addr.sll_ifindex = ses->local.sll_ifindex;
111 send_disc(ses, p_in);
116 struct pppoe_packet *p_in,
121 struct pppoe_tag *tag = p_in->tags[TAG_RELAY_SID];
123 { p_in->hdr->sid, {0,},{0,}}};
126 { p_in->hdr->sid, {0,},{0,}}};
185 pc->client,pc->server, p_in->hdr->sid);
187 return relay_rcv_pkt(ses,p_in,p_out);
192 struct pppoe_packet *p_in,
198 struct pppoe_tag *tag = p_in->tags[TAG_RELAY_SID];
206 ret = relay_rcv_pkt(ses,p_in,p_out);