Added ip headers generation functions