I've recently set up a BGPLG and I've been trying to add "mtrace" to the
drop down command list, but I've been having a bit of trouble getting it to
work and was wondering if anyone could point me in the right direction to
get it working.
I've configured the "bgplg.c" to define and add mtrace, I've gone into the
"bgplg.h" file to add mtrace as a command to the menu, and I've made sure to
copy the mtrace source files into the "/usr/src/usr.bin/bgplg" directory, as
well as the executable (I think its the executable anyway) into the
"/var/www/bin" directory. However even after rebooting and restarting
everything I can't get the mtrace command to appear in the drop down menu.
Do you see where I might've gone wrong? I know that my definition in the .h
file is wrong, but I'm trying to get this working in baby steps, and perhaps
I was mistaken but I thought that having a duplicated function would still
make it appear in the bgplg menu. Is there anything obvious that leaps out
at you that I'm not seeing?
> Do you see where I might've gone wrong? I know that my definition in the .h
> file is wrong, but I'm trying to get this working in baby steps, and perhaps
> I was mistaken but I thought that having a duplicated function would still
> make it appear in the bgplg menu. Is there anything obvious that leaps out
> at you that I'm not seeing?
It is not clear whether you rebuilt ebuilt bgplg or not.
Also mtrace binary needs to be built statically.
> > It is not clear whether you rebuilt bgplg or not.
> > Also mtrace binary needs to be built statically.
> I restarted the console and used the following commands;
> # /etc/rc.d/httpd start
> # /etc/rc.d/bgpd start
> But I don't think that "rebuilt" the BGPLG. How do I do that?
> Okay yeah I definitely didn't static build mtrace. I'll look online and see
> how to do that.
when you changed /usr/src/usr.bin/bgplg/bgplg.c
you need to
doas make install
after that, set the permissions in /var/www/bin/
as described in bgplg(8)
Okay that's good to know- I'm getting a couple errors but I can probably
iron them out. So do I need to do that set of commands every time I add
something new to the "bgplg.c" file? Should those commands detect "mtrace"
automatically or do I need to do something else?
Thank you for the help man, you're a lifesaver; cheers!