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

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

extern int 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_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(char *ifname);
extern u32 device_bitrate(const char *ifname);

#endif /* DEV_H */
-0500 commit9538132a9f3cb8ed1590bec2b32650f4d30dd688 (patch) treeffe0e21da8d4ae2b435561434cc391970196e42b parentd7426c69a1942b2b9b709bf66b944ff09f561484 (diff)parent57031eb794906eea4e1c7b31dc1e2429c0af0c66 (diff)
Merge branch 'net-header-length-truncation'
Willem de Bruijn says: ==================== net: Fixes for header length truncation Packets should not enter the stack with truncated link layer headers and link layer headers should always be stored in the skb linear segment. Patch 1 ensures the first for PF_PACKET sockets Patch 2 ensures the second for PF_PACKET GSO sockets without tx_ring ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat