diff options
author | julian <julian@FreeBSD.org> | 1999-10-26 11:26:23 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 1999-10-26 11:26:23 +0000 |
commit | 48eeb0662db3f5abb8727e7567fc64ec7468a9d1 (patch) | |
tree | c8acb4a4ba6491c4517422c5ffbbd6d5ce864f05 /sys | |
parent | a3c8d605bb7b6f2ce9765ef3297de9f154949b3a (diff) | |
download | FreeBSD-src-48eeb0662db3f5abb8727e7567fc64ec7468a9d1.zip FreeBSD-src-48eeb0662db3f5abb8727e7567fc64ec7468a9d1.tar.gz |
Send the negotiated session ID on our packets (DUH!).
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netgraph/ng_pppoe.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netgraph/ng_pppoe.c b/sys/netgraph/ng_pppoe.c index 326a41f..65115ef 100644 --- a/sys/netgraph/ng_pppoe.c +++ b/sys/netgraph/ng_pppoe.c @@ -1025,6 +1025,7 @@ AAA neg = sp->neg; untimeout(pppoe_ticker, sendhook, neg->timeout_handle); + neg->pkt->pkt_header.ph.sid = wh->ph.sid; sp->Session_ID = ntohs(wh->ph.sid); neg->timeout = 0; sp->state = PPPOE_CONNECTED; @@ -1290,7 +1291,7 @@ AAA strncpy(tag->tag_data, SIGNOFF, msglen); m->m_pkthdr.len = (m->m_len += sizeof(*tag) + msglen); wh->ph.length = htons(sizeof(*tag) + msglen); - NG_MESSAGE_SEND(error, privp->ethernet_hook, m, dummy); + NG_SEND_DATA(error, privp->ethernet_hook, m, dummy); } if (sp->neg) { untimeout(pppoe_ticker, hook, sp->neg->timeout_handle); |