summaryrefslogtreecommitdiffstats
path: root/python-ethtool/etherinfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'python-ethtool/etherinfo.h')
-rw-r--r--python-ethtool/etherinfo.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/python-ethtool/etherinfo.h b/python-ethtool/etherinfo.h
new file mode 100644
index 0000000..6dfd8fa
--- /dev/null
+++ b/python-ethtool/etherinfo.h
@@ -0,0 +1,36 @@
+/* etherinfo.h - Retrieve ethernet interface info via NETLINK
+ *
+ * Copyright (C) 2009 Red Hat Inc.
+ *
+ * David Sommerseth <davids@redhat.com>
+ *
+ * This application is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the Free
+ * Software Foundation; version 2.
+ *
+ * This application is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ */
+
+#ifndef _ETHERINFO_H
+#define _ETHERINFO_H
+
+struct etherinfo {
+ int index;
+ int type;
+ char *device;
+ char *hwaddress;
+ char *ipv4_address;
+ int ipv4_netmask;
+ char *ipv4_broadcast;
+ char *ipv6_address;
+ int ipv6_netmask;
+ struct etherinfo *next;
+};
+
+struct etherinfo *get_etherinfo();
+void dump_etherinfo(FILE *, struct etherinfo *);
+
+#endif