mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-01 12:19:28 +00:00
Send the negotiated session ID on our packets (DUH!).
This commit is contained in:
parent
9fcb3d8332
commit
cfbcfe6272
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=52524
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user