aboutsummaryrefslogtreecommitdiff
path: root/sys/netgraph/ng_pppoe.c
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>2000-10-31 14:40:23 +0000
committerJulian Elischer <julian@FreeBSD.org>2000-10-31 14:40:23 +0000
commit7ccbb17bb3343aa895735de919727617dd5eb821 (patch)
tree726fcdd450cc14930ea009d7c128c695d01ca2d0 /sys/netgraph/ng_pppoe.c
parentdef1ddf3a84b57b61f8ca2c3130f33920d2fed57 (diff)
downloadsrc-7ccbb17bb3343aa895735de919727617dd5eb821.tar.gz
src-7ccbb17bb3343aa895735de919727617dd5eb821.zip
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!)
Notes
Notes: svn path=/head/; revision=68079
Diffstat (limited to 'sys/netgraph/ng_pppoe.c')
-rw-r--r--sys/netgraph/ng_pppoe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netgraph/ng_pppoe.c b/sys/netgraph/ng_pppoe.c
index 0a9fca5a1f87..34971527e047 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;