If you are wanting to be able to include a mac address for each entry in the pgsql database, I've made the patch to bandwidthd for it available here: http://alestan.publicvm.com/diff/bandwidthd.diff
It also includes a bunch of whitespace cleanups, no more mixed tabs and spaces. That diff is taken against the latest bandwidthd from the debian repository. It only works with pgsql, and has no front-end for pulling the mac address back out of the database, you're on your own for that. Also, it expects to find a file called LookupMac.py either in the same directory as bandwidthd or somewhere on the python library path. That file does the actual mac lookup, how it does it is up to you. I've made a sample one available here: http://alestan.publicvm.com/TXT/LookupMac.py
It expects an external resource to build a table of ip to mac translations inside the database, and just pulls from there.
I think that's about all you'll need to know. if there is enough interest, I can probably make a source tarball for it available too.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.