Update protocol_function.c

include protocol header