003 File Manager
Current Path:
/usr/src/contrib/ofed/libibverbs
usr
/
src
/
contrib
/
ofed
/
libibverbs
/
📁
..
📄
alloca.h
(359 B)
📄
arch.h
(1.9 KB)
📄
cmd.c
(60.7 KB)
📄
compat-1_0.c
(26.36 KB)
📄
config.h
(998 B)
📄
device.c
(9.99 KB)
📄
driver.h
(11.89 KB)
📄
enum_strs.c
(4.89 KB)
📁
examples
📄
ibverbs.h
(4.18 KB)
📄
init.c
(9.39 KB)
📄
kern-abi.h
(25.17 KB)
📄
libibverbs.map
(3.11 KB)
📁
man
📄
marshall.c
(4.79 KB)
📄
marshall.h
(2.19 KB)
📄
memory.c
(14.17 KB)
📄
neigh.c
(19.13 KB)
📄
neigh.h
(1.43 KB)
📄
nl1_compat.h
(1.78 KB)
📄
opcode.h
(5.56 KB)
📄
sa-kern-abi.h
(1.58 KB)
📄
sa.h
(3.98 KB)
📄
sysfs.c
(2.59 KB)
📄
verbs.c
(26.15 KB)
📄
verbs.h
(61.88 KB)
Editing: nl1_compat.h
/* Licensed under the OpenIB.org BSD license (FreeBSD Variant) - See COPYING.md */ #ifndef _NL1_COMPAT_H_ #define _NL1_COMPAT_H_ #include <netlink/route/rtnl.h> #include <netlink/route/link.h> #include <netlink/route/route.h> #include <netlink/route/neighbour.h> struct nl_handle; /* Workaround - declaration missing */ extern int rtnl_link_vlan_get_id(struct rtnl_link *); #define nl_geterror(x) nl_geterror() #define nl_sock nl_handle static inline void nl_socket_disable_seq_check(struct nl_sock *sock) { nl_disable_sequence_check(sock); } struct rtnl_nexthop {}; static inline struct rtnl_nexthop *rtnl_route_nexthop_n( struct rtnl_route *r, int n) { return (struct rtnl_nexthop *)r; } static inline struct nl_addr *rtnl_route_nh_get_gateway(struct rtnl_nexthop *nh) { return rtnl_route_get_gateway((struct rtnl_route *)nh); } static inline int rtnl_route_nh_get_ifindex(struct rtnl_nexthop *nh) { return rtnl_route_get_oif((struct rtnl_route *)nh); } #define nl_addr_info(addr, result) ( \ *(result) = nl_addr_info(addr), \ (*(result) == NULL) ? nl_get_errno() : 0 \ ) static inline void nl_socket_free(struct nl_sock *sock) { nl_close(sock); } static inline struct nl_sock *nl_socket_alloc(void) { return nl_handle_alloc(); } #define rtnl_link_alloc_cache(sock, family, result) ( \ *result = rtnl_link_alloc_cache(sock), \ (*result == NULL) ? nl_get_errno() : 0 \ ) #define rtnl_route_alloc_cache(sock, family, flags, result) ( \ *result = rtnl_route_alloc_cache(sock), \ (*result == NULL) ? nl_get_errno() : 0 \ ) #define rtnl_neigh_alloc_cache(sock, result) ( \ *result = rtnl_neigh_alloc_cache(sock), \ (*result == NULL) ? nl_get_errno() : 0 \ ) static inline int rtnl_link_is_vlan(struct rtnl_link *link) { return rtnl_link_vlan_get_id(link) <= 0; } #endif
Upload File
Create Folder