ppp icon indicating copy to clipboard operation
ppp copied to clipboard

inserted some code to export AC name to enviroment, so that AC name c…

Open bearmi opened this issue 7 years ago • 11 comments

I inserted some code to export AC name to enviroment, so that AC name can be collected and shown to end user

We want to show the access concentrator to the end user. So I added a variable PeerName in struct PPPoEConnectionStruct, and log the AC name to the variable when parsing PADO tags.

And the value would be exported to env in function PPPOEConnectDevice. So that we can collect it and show it to user.

bearmi avatar Nov 29 '17 08:11 bearmi

I'm not sure using a PPPoETag structure to store the value is useful as it is not used as so later. Just using a string looks like a better way IMO.

I find the commit message a bit strange too, doesn't export AC name to script environment look enough?

fhost avatar Aug 21 '18 13:08 fhost

This seems like a useful feature, but this commit will need some more work before I can take it. I am not planning to put this in the 2.4.9 release, but it can go in after the release. This change intersects with the changes that @pali has submitted (#209) and should be reworked on top of those changes, I think.

I agree that using a string would be clearer and simpler than a PPPoETag structure.

The commit message needs a sign-off and should start with a headline like "plugins/pppoe: Export access concentrator name to environment", then a blank line, then a paragraph explaining why this is a useful thing to do.

paulusmack avatar Jan 04 '21 06:01 paulusmack

@bearmi: Can you look the @paulusmack comment?

Neustradamus avatar Jan 28 '21 05:01 Neustradamus

@bearmi: Can you look the @fhost and @paulusmack comments?

Neustradamus avatar Jul 07 '21 13:07 Neustradamus

@bearmi: Can you look the @fhost and @paulusmack comments?

The @pali PR has been merged.

Thanks in advance.

Neustradamus avatar Dec 11 '21 14:12 Neustradamus

I believe @pali has done work in this area. Could he please review this change?

enaess avatar May 31 '22 15:05 enaess

Change does look good to me though ...

enaess avatar May 31 '22 15:05 enaess

This commit does not apply on top of the master branch... it needs to be rebased/reworked first.

pali avatar May 31 '22 21:05 pali

@bearmi: Can you rebase your PR?

Neustradamus avatar Jul 30 '22 03:07 Neustradamus

@enaess: I think it is needed to adapt the changes from this PR into a new... because @bearmi has not given a sign of life since a very very long time...

Neustradamus avatar Aug 24 '23 03:08 Neustradamus