summaryrefslogtreecommitdiff
path: root/dev.h
blob: adb1c43015324b797dede3cd2aa96af74410d70b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef DEV_H
#define DEV_H

#include <sys/socket.h>
#include "built_in.h"

extern size_t device_mtu(const char *ifname);
extern int device_address(const char *ifname, int af, struct sockaddr_storage *ss);
extern int device_ifindex(const char *ifname);
extern int device_ifindex_get(const char *ifname);
extern int device_type(const char *ifname);
extern short device_get_flags(const char *ifname);
extern void device_set_flags(const char *ifname, const short flags);
extern int device_up_and_running(const char *ifname);
extern u32 device_bitrate(const char *ifname);
extern short device_enter_promiscuous_mode(const char *ifname);
extern void device_leave_promiscuous_mode(const char *ifname, short oldflags);

#endif /* DEV_H */
>committerDavid S. Miller <davem@davemloft.net>2017-02-13 22:24:31 -0500 commit1f8f1e89e0183e9504dfa45e9b87c44cff2e66c6 (patch) tree35e8906452a9b79882a99a154db4afeb086f630c /drivers parentc3d8103bc0069b926887e2270e9dd1e1e8441bb4 (diff)
net: fs_enet: Fix an error handling path
'of_node_put(fpi->phy_node)' should also be called if we branch to 'out_deregister_fixed_link' error handling path. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')