diff options
author | julian <julian@FreeBSD.org> | 2000-10-31 14:40:23 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2000-10-31 14:40:23 +0000 |
commit | 27f10d8332c3e4017d0d6ff4a0ab9750a141f26a (patch) | |
tree | 19fc2a2a9753a66a1aa6de931cef4b8f1a8e04f1 | |
parent | 700219888d334a12a785d1c4b08f913b70534bea (diff) | |
download | FreeBSD-src-27f10d8332c3e4017d0d6ff4a0ab9750a141f26a.zip FreeBSD-src-27f10d8332c3e4017d0d6ff4a0ab9750a141f26a.tar.gz |
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!)
-rw-r--r-- | sys/netgraph/ng_pppoe.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netgraph/ng_pppoe.c b/sys/netgraph/ng_pppoe.c index 0a9fca5..3497152 100644 --- a/sys/netgraph/ng_pppoe.c +++ b/sys/netgraph/ng_pppoe.c @@ -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; |