Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding extentions #78

Closed
JOELEJAUNE opened this issue Jul 31, 2018 · 2 comments
Closed

adding extentions #78

JOELEJAUNE opened this issue Jul 31, 2018 · 2 comments

Comments

@JOELEJAUNE
Copy link

hello ,

hope all is good at your side.

i'm working on adding some lines of code that i want to execute whenever the DHCPdiscover message reaches the staticDHCP Server.

any idea that could help me would be appreciated.

thanks & regards

@flan
Copy link
Owner

flan commented Jul 31, 2018

If you want to react as soon as DISCOVER is received, you'll want to look at filterPacket(): http://static.uguu.ca/projects/staticDHCPd/doc/customisation/scripting.html#filterpacket

Drop a snippet like what's in the example below, with an if method == "DISCOVER":-like check, into conf.py and it should work.

@JOELEJAUNE
Copy link
Author

JOELEJAUNE commented Jul 31, 2018 via email

@flan flan closed this as completed Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants