proAdhoc: Remove unnecessary struct typedefs.

Also removed the PACK macro. push and pop macros are supported in GCC and clang.
proAdhoc: Make some functions return boolean values.

Also shorten validNetworkName().