// Logger::pfcp_switch().error( "Interface name too long %s", ifname);
// return RETURNerror;
// }
/*
* Create socket
* The socket_type is either SOCK_RAW for raw packets including the link-level header or SOCK_DGRAM for cooked packets with the link-level header removed.
* The socket_type is either SOCK_RAW for raw packets including the link-level header or SOCK_DGRAM for cooked packets with the link-level header removed.
std::stringcmd=fmt::format("ip link set dev {0} down > /dev/null 2>&1; ip link del {0} > /dev/null 2>&1; sync; sleep 1; ip link add {0} type dummy; ip link set dev {0} up",PDN_INTERFACE_NAME);