fp@2597: /***************************************************************************** fp@2597: * fp@2597: * $Id$ fp@2597: * fp@2597: * Copyright (C) 2006-2014 Florian Pose, Ingenieurgemeinschaft IgH fp@2597: * fp@2597: * This file is part of the IgH EtherCAT Master. fp@2597: * fp@2597: * The IgH EtherCAT Master is free software; you can redistribute it and/or fp@2597: * modify it under the terms of the GNU General Public License version 2, as fp@2597: * published by the Free Software Foundation. fp@2597: * fp@2597: * The IgH EtherCAT Master is distributed in the hope that it will be useful, fp@2597: * but WITHOUT ANY WARRANTY; without even the implied warranty of fp@2597: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General fp@2597: * Public License for more details. fp@2597: * fp@2597: * You should have received a copy of the GNU General Public License along fp@2597: * with the IgH EtherCAT Master; if not, write to the Free Software fp@2597: * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA fp@2597: * fp@2597: * --- fp@2597: * fp@2597: * The license mentioned above concerns the source code only. Using the fp@2597: * EtherCAT technology and brand is only permitted in compliance with the fp@2597: * industrial property and similar rights of Beckhoff Automation GmbH. fp@2597: * fp@2597: ****************************************************************************/ fp@2597: fp@2597: #ifndef __COMMANDIP_H__ fp@2597: #define __COMMANDIP_H__ fp@2597: fp@2597: #include "Command.h" fp@2597: fp@2597: /****************************************************************************/ fp@2597: fp@2597: class CommandIp: fp@2597: public Command fp@2597: { fp@2597: public: fp@2597: CommandIp(); fp@2597: fp@2597: string helpString(const string &) const; fp@2597: void execute(const StringVector &); fp@2597: fp@2597: protected: fp@2597: static void parseMac(unsigned char [6], const string &); fp@2597: static void parseIpv4Prefix(ec_ioctl_slave_eoe_ip_t *, fp@2597: const string &); fp@2597: static void resolveIpv4(uint32_t *, const string &); fp@2597: }; fp@2597: fp@2597: /****************************************************************************/ fp@2597: fp@2597: #endif