add ip struct, tcp flags and serveral address functions