Home
last modified time | relevance | path

Searched refs:ifinfomsg (Results 1 – 25 of 40) sorted by relevance

12

/external/avahi/avahi-core/
Diface-linux.c37 #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
79 struct ifinfomsg *ifinfomsg = NLMSG_DATA(n); in netlink_callback() local
85 if (ifinfomsg->ifi_family != AF_UNSPEC) in netlink_callback()
93 if (!(hw = avahi_interface_monitor_get_hw_interface(m, ifinfomsg->ifi_index))) in netlink_callback()
100 if (!(hw = avahi_hw_interface_new(m, (AvahiIfIndex) ifinfomsg->ifi_index))) in netlink_callback()
105 (ifinfomsg->ifi_flags & IFF_UP) && in netlink_callback()
106 (!m->server->config.use_iff_running || (ifinfomsg->ifi_flags & IFF_RUNNING)) && in netlink_callback()
107 !(ifinfomsg->ifi_flags & IFF_LOOPBACK) && in netlink_callback()
108 (ifinfomsg->ifi_flags & IFF_MULTICAST) && in netlink_callback()
109 (m->server->config.allow_point_to_point || !(ifinfomsg->ifi_flags & IFF_POINTOPOINT)); in netlink_callback()
[all …]
/external/wpa_supplicant_8/src/drivers/
Dnetlink.c24 void (*cb)(void *ctx, struct ifinfomsg *ifi, in netlink_receive_link()
28 if (cb == NULL || NLMSG_PAYLOAD(h, 0) < sizeof(struct ifinfomsg)) in netlink_receive_link()
31 (u8 *) NLMSG_DATA(h) + NLMSG_ALIGN(sizeof(struct ifinfomsg)), in netlink_receive_link()
32 NLMSG_PAYLOAD(h, sizeof(struct ifinfomsg))); in netlink_receive_link()
174 struct ifinfomsg ifinfo; in netlink_send_oper_ifla()
183 req.hdr.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); in netlink_send_oper_ifla()
Dnetlink.h13 struct ifinfomsg;
17 void (*newlink_cb)(void *ctx, struct ifinfomsg *ifi, u8 *buf,
19 void (*dellink_cb)(void *ctx, struct ifinfomsg *ifi, u8 *buf,
Dpriv_netlink.h93 struct ifinfomsg struct
/external/iproute2/ip/
Diptoken.c50 struct ifinfomsg *ifi = NLMSG_DATA(n); in print_token()
129 struct ifinfomsg ifi; in iptoken_set()
139 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); in iptoken_set()
Dlink_veth.c42 struct ifinfomsg *ifm, *peer_ifm; in veth_parse_opt()
59 hdr->nlmsg_len += sizeof(struct ifinfomsg); in veth_parse_opt()
Dlink_vti6.c47 struct ifinfomsg i; in vti6_parse_opt()
50 struct ifinfomsg *ifi = (struct ifinfomsg *)(n + 1); in vti6_parse_opt()
Dlink_vti.c51 struct ifinfomsg i; in vti_parse_opt()
54 struct ifinfomsg *ifi = (struct ifinfomsg *)(n + 1); in vti_parse_opt()
Dlink_ip6tnl.c63 struct ifinfomsg i; in ip6tunnel_parse_opt()
66 struct ifinfomsg *ifi = (struct ifinfomsg *)(n + 1); in ip6tunnel_parse_opt()
Dlink_gre6.c65 struct ifinfomsg i; in gre_parse_opt()
68 struct ifinfomsg *ifi = (struct ifinfomsg *)(n + 1); in gre_parse_opt()
Dlink_iptnl.c58 struct ifinfomsg i; in iptunnel_parse_opt()
61 struct ifinfomsg *ifi = (struct ifinfomsg *)(n + 1); in iptunnel_parse_opt()
Dlink_gre.c55 struct ifinfomsg i; in gre_parse_opt()
58 struct ifinfomsg *ifi = (struct ifinfomsg *)(n + 1); in gre_parse_opt()
Diplink.c207 struct ifinfomsg i; in iplink_have_newlink()
214 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); in iplink_have_newlink()
236 struct ifinfomsg i;
685 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); in iplink_modify()
832 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); in iplink_get()
/external/libnl/include/linux/
Dif_link.h90 #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
91 #define IFLA_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct ifinfomsg))
/external/iproute2/bridge/
Dvlan.c30 struct ifinfomsg ifm; in vlan_modify()
43 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); in vlan_modify()
145 struct ifinfomsg *ifm = NLMSG_DATA(n); in print_vlan()
Dfdb.c175 struct ifinfomsg ifm; in fdb_show()
181 int msg_size = sizeof(struct ifinfomsg); in fdb_show()
184 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); in fdb_show()
Dlink.c104 struct ifinfomsg *ifi = NLMSG_DATA(n); in print_linkinfo()
255 struct ifinfomsg ifm; in brlink_modify()
275 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); in brlink_modify()
/external/avahi/avahi-autoipd/
Diface-linux.c43 #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
108 struct ifinfomsg *ifi; in process_nlmsg()
252 struct ifinfomsg *ifi; in iface_get_initial_state()
/external/android-clat/
Dnetlink_msg.h23 struct nl_msg *nlmsg_alloc_ifinfo(uint16_t type, uint16_t flags, struct ifinfomsg *ifi);
Dnetlink_msg.c93 struct nl_msg *nlmsg_alloc_ifinfo(uint16_t type, uint16_t flags, struct ifinfomsg *ifi) { in nlmsg_alloc_ifinfo()
Dsetif.c103 struct ifinfomsg ifi; in if_up()
/external/iproute2/include/
Dlibnetlink.h170 ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
173 #define IFLA_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct ifinfomsg))
/external/kernel-headers/original/uapi/linux/
Dif_link.h160 #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
161 #define IFLA_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct ifinfomsg))
/external/iproute2/include/linux/
Dif_link.h159 #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
160 #define IFLA_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct ifinfomsg))
/external/iproute2/lib/
Dll_map.c86 struct ifinfomsg *ifi = NLMSG_DATA(n); in ll_remember_index()

12