Added function to get the max allowed packet size