Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 204476 - net-dialup/rp-pppoe-3.8-r1: session offset is not propagated to pppd
Summary: net-dialup/rp-pppoe-3.8-r1: session offset is not propagated to pppd
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo Dialup Developers
Depends on:
Reported: 2008-01-05 21:18 UTC by Aleksey Shipilev
Modified: 2008-01-08 17:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---

Proposed patch (rp-pppoe-3.8-session-offset.patch,639 bytes, patch)
2008-01-05 21:19 UTC, Aleksey Shipilev
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aleksey Shipilev 2008-01-05 21:18:04 UTC
When specifying options "-u -o XXX" to pppoe-server internal PPPoE session offsets  really set off, but pppX does not. Problem is, there are no specific handling for passing of "unit" option to pppd, lack of which leads to mixing pppX from different PPPoE servers and clients. Attached patch propagates the session offsets to "unit" for pppd, thus solving the problem.

Reproducible: Always

Steps to Reproduce:
1. Start pppoe-server:
 pppoe-server -u -o 10 -k

2. Track the syslog for pppoe-server messages

3. Connect the client

Actual Results:  
Something like:

pppoe-server[26393]: Session 11 created for client [mac] ([ip]) on eth0 using Service-Name 'service'
pppd[26393]: pppd 2.4.4 started by root, uid 0
pppd[26393]: using channel 27
pppd[26393]: Using interface ppp1
pppd[26393]: Connect: ppp1 <--> eth0

Expected Results:  
Correct behavior (observed after the patch):

pppoe-server[26652]: Session 11 created for client [mac] ([ip]) on eth0 using Service-Name 'service'
pppd[26678]: pppd 2.4.4 started by root, uid 0
pppd[26678]: using channel 27
pppd[26678]: Using interface ppp10
pppd[26678]: Connect: ppp10 <--> eth0

Offsets are either for pppX or for session.
Comment 1 Aleksey Shipilev 2008-01-05 21:19:10 UTC
Created attachment 140228 [details, diff]
Proposed patch

Proposed patch which solves the problem
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2008-01-05 23:05:19 UTC
Don't use this.

*** This bug has been marked as a duplicate of bug 204451 ***
Comment 3 Aleksey Shipilev 2008-01-05 23:14:11 UTC
Jakub, AFAIK, rp-pppoe is the only solution that provides PPPoE server support and it works! I can't see the point of rejecting the bugfix on basis "don't use the package" without specifying what else should user do.

From my POV closing this bug and marking it as duplicate of "removal request" is inadequate. Please reopen it.
Comment 4 Aleksey Shipilev 2008-01-06 11:57:24 UTC
Reopening as of marking "duplicate bug" as invalid.
Comment 5 Alin Năstac (RETIRED) gentoo-dev 2008-01-06 12:51:42 UTC
Your patch wasn't complete. startPPPDUserMode() also needed this modification.

Fixed in rp-pppoe-3.8-r2. Thanks!
Comment 6 Aleksey Shipilev 2008-01-08 17:23:22 UTC
Verified, thanks.