IgH EtherCAT Master  1.6.9
eoe_request.h
Go to the documentation of this file.
1/*****************************************************************************
2 *
3 * Copyright (C) 2006-2014 Florian Pose, Ingenieurgemeinschaft IgH
4 *
5 * This file is part of the IgH EtherCAT Master.
6 *
7 * The IgH EtherCAT Master is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License version 2, as
9 * published by the Free Software Foundation.
10 *
11 * The IgH EtherCAT Master is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
14 * Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with the IgH EtherCAT Master; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 *
20 ****************************************************************************/
21
26
27/****************************************************************************/
28
29#ifndef __EC_EOE_REQUEST_H__
30#define __EC_EOE_REQUEST_H__
31
32#include <linux/list.h>
33#include <linux/etherdevice.h> // ETH_ALEN
34
35#include "globals.h"
36
37/****************************************************************************/
38
41typedef struct {
42 struct list_head list;
44 unsigned long jiffies_sent;
45
46 uint8_t mac_address_included;
47 uint8_t ip_address_included;
48 uint8_t subnet_mask_included;
49 uint8_t gateway_included;
50 uint8_t dns_included;
51 uint8_t name_included;
52
53 unsigned char mac_address[ETH_ALEN];
54 struct in_addr ip_address;
55 struct in_addr subnet_mask;
56 struct in_addr gateway;
57 struct in_addr dns;
58 char name[EC_MAX_HOSTNAME_SIZE];
59
60 uint16_t result;
62
63/****************************************************************************/
64
67
68/****************************************************************************/
69
70#endif
void ec_eoe_request_init(ec_eoe_request_t *)
EoE request constructor.
Definition eoe_request.c:38
int ec_eoe_request_valid(const ec_eoe_request_t *)
Checks if EoE request has something to set.
Definition eoe_request.c:67
Global definitions and macros.
#define EC_MAX_HOSTNAME_SIZE
Maximum hostname size.
Definition globals.h:110
ec_internal_request_state_t
Generic request state.
Definition globals.h:287
Ethernet-over-EtherCAT set IP parameter request.
Definition eoe_request.h:41
ec_internal_request_state_t state
Request state.
Definition eoe_request.h:43
struct list_head list
List item.
Definition eoe_request.h:42
unsigned long jiffies_sent
Jiffies, when the request was sent.
Definition eoe_request.h:44