The old Linux IGD

I love me some iptables and I also like having upnp running on my linux box, but the problem is my favorite linux upnp service is not maintained anymore.

When attempting to compile on a recent CentOS 6.5 os you are plagued with undeclared errors:

In function ‘ExpireMapping’: gatedevice.c:776: warning: incompatible implicit declaration of built-in function ‘sprintf’ make: *** [gatedevice.o] Error 1

To fix this you only have to modify ONE file. Simply add

#include <stdio.h>

to the very first line of gatedevice.c. Good luck and enjoy!