]> git.ipfire.org Git - people/ms/rstp.git/blame - netif_utils.h
fixes for 4.3.3 GCC warnings/errors
[people/ms/rstp.git] / netif_utils.h
CommitLineData
ad02a0eb
SH
1/*****************************************************************************
2 Copyright (c) 2006 EMC Corporation.
3
4 This program is free software; you can redistribute it and/or modify it
5 under the terms of the GNU General Public License as published by the Free
6 Software Foundation; either version 2 of the License, or (at your option)
7 any later version.
8
9 This program is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 more details.
13
14 You should have received a copy of the GNU General Public License along with
15 this program; if not, write to the Free Software Foundation, Inc., 59
16 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17
18 The full GNU General Public License is included in this distribution in the
19 file called LICENSE.
20
21 Authors: Srinivas Aji <Aji_Srinivas@emc.com>
22
23******************************************************************************/
24
25#ifndef NETIF_UTILS_H
26#define NETIF_UTILS_H
27
28/* An inet socket for everyone to use for ifreqs. */
29int netsock_init(void);
30
31int get_hwaddr(char *ifname, unsigned char *hwaddr);
32
33int ethtool_get_speed_duplex(char *ifname, int *speed, int *duplex);
34
35/********* Sysfs based utility functions *************/
36int is_bridge(char *if_name);
37
38int is_bridge_slave(char *br_name, char *if_name);
39
40int get_bridge_portno(char *if_name);
41
42#endif