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: /** \file fp@2597: * Ethernet-over-EtherCAT request functions. fp@2597: */ fp@2597: fp@2597: /*****************************************************************************/ fp@2597: fp@2597: #include fp@2597: #include fp@2597: #include fp@2597: fp@2597: #include "eoe_request.h" fp@2597: fp@2597: /*****************************************************************************/ fp@2597: fp@2597: /** EoE request constructor. fp@2597: */ fp@2597: void ec_eoe_request_init( fp@2597: ec_eoe_request_t *req /**< EoE request. */ fp@2597: ) fp@2597: { fp@2597: INIT_LIST_HEAD(&req->list); fp@2597: req->state = EC_INT_REQUEST_INIT; fp@2597: req->jiffies_sent = 0U; fp@2597: fp@2597: req->mac_address_included = 0; fp@2597: req->ip_address_included = 0; fp@2597: req->subnet_mask_included = 0; fp@2597: req->gateway_included = 0; fp@2597: req->dns_included = 0; fp@2597: req->name_included = 0; fp@2597: fp@2597: memset(req->mac_address, 0x00, ETH_ALEN); fp@2597: req->ip_address = 0; fp@2597: req->subnet_mask = 0; fp@2597: req->gateway = 0; fp@2597: req->dns = 0; fp@2597: req->name[0] = 0x00; fp@2597: fp@2597: req->result = 0x0000; fp@2597: } fp@2597: fp@2597: /*****************************************************************************/