Swap the order of two tags in the pppoe PADI and PADS packets
as there are apparently some buggy switches that need them in that order. (I hope there aren't any that require them in the old order!)
This commit is contained in:
parent
700219888d
commit
27f10d8332
@ -841,8 +841,8 @@ AAA
|
||||
uniqtag.hdr.tag_len = htons((u_int16_t)sizeof(uniqtag.data));
|
||||
uniqtag.data.pointer = sp;
|
||||
init_tags(sp);
|
||||
insert_tag(sp, &sp->neg->service.hdr);
|
||||
insert_tag(sp, &uniqtag.hdr);
|
||||
insert_tag(sp, &sp->neg->service.hdr);
|
||||
make_packet(sp);
|
||||
sendpacket(sp);
|
||||
}
|
||||
@ -999,12 +999,12 @@ AAA
|
||||
neg->timeout = 0;
|
||||
neg->pkt->pkt_header.ph.code = PADR_CODE;
|
||||
init_tags(sp);
|
||||
insert_tag(sp, &neg->service.hdr); /* Service */
|
||||
insert_tag(sp, utag); /* Host Unique */
|
||||
if ((tag = get_tag(ph, PTT_AC_COOKIE)))
|
||||
insert_tag(sp, tag); /* return cookie */
|
||||
if ((tag = get_tag(ph, PTT_AC_NAME)))
|
||||
insert_tag(sp, tag); /* return it */
|
||||
insert_tag(sp, utag); /* Host Unique */
|
||||
insert_tag(sp, &neg->service.hdr); /* Service */
|
||||
scan_tags(sp, ph);
|
||||
make_packet(sp);
|
||||
sp->state = PPPOE_SREQ;
|
||||
|
Loading…
Reference in New Issue
Block a user