DHCP not functional in master?
I'm having trouble getting the "master" branch to work with dhcp. The sites-available/dhcp file says: """ In order for this to work, you will need to run configure: $ ./configure --with-dhcp $ make $ vi share/dictionary ## Un-comment the line containing $INCLUDE dictionary.dhcp ## Then, save the file. $ make install """ ...problem being those instructions don't work - there is no "dictionary.dhcp" line. If I add it and perform "make install", then when I try to start a server with the example "dhcp" virtual server enabled, it bombs out with: sites-enabled/dhcp[114]: Post-Auth-Type DHCP-Discover Not previously configured Looking at the main/modules.c code, it seems that: server { dhcp DHCP-Discover { .. } } ...is supposed to effectively map to: server { post-auth { Post-Auth-Type DHCP-Discover { .. } } } ...but I don't see how the code there can currently work; it seems it will always fail unless there is some kind of dictionary definition for: VALUE Post-Auth-Type DHCP-Discover x ...and so on. Am I missing something?
Phil Mayers wrote:
I'm having trouble getting the "master" branch to work with dhcp. The sites-available/dhcp file says: ... ...problem being those instructions don't work - there is no "dictionary.dhcp" line.
It's in the default "dictionary.in" file. You probably have an older version of the dictionaries installed.
...but I don't see how the code there can currently work; it seems it will always fail unless there is some kind of dictionary definition for:
VALUE Post-Auth-Type DHCP-Discover x
...and so on. Am I missing something?
$ git pull The code was looking up an attribute by attribute number. That worked in 2.x. In 3.0, it needs a vendor number, too. Alan DeKok.
On 11/20/2011 04:46 PM, Alan DeKok wrote:
It's in the default "dictionary.in" file. You probably have an older version of the dictionaries installed.
So it is. I thought I had purged those but it seems one got stuck in my build tree.
$ git pull
The code was looking up an attribute by attribute number. That worked in 2.x. In 3.0, it needs a vendor number, too.
Ah ha. I see you spotted the broken ${} refs in the rediswho module as well, was just about to mention those.
Hi,
$ ./configure --with-dhcp $ make $ vi share/dictionary
## Un-comment the line containing $INCLUDE dictionary.dhcp ## Then, save the file.
$ make install """
...problem being those instructions don't work - there is no "dictionary.dhcp" line. If I add it and perform "make install", then when I try to start a server with the example "dhcp" virtual server enabled, it bombs out with:
there is a dictionary.dhcp file ready for usage - so i guess this doc needs updating.... or the dictionary file needs a #$INCLUDE dictionary.dhcp but i havent tried any D?HCP with the master branch yet... alan
participants (3)
-
Alan Buxey -
Alan DeKok -
Phil Mayers