/* Check if we can use proxy ARP for this path  */
static int arp_fwd_proxy(struct in_device *in_dev, struct rtable *rt)
/* Check if we can use proxy ARP for this path  */
static int arp_fwd_proxy(struct in_device *in_dev, struct rtable *rt)
{
	struct in_device *out_dev;
	int imi, omi = -1;
	if (!IN_DEV_PROXY_ARP(in_dev))
		return 0;
	if ((imi = IN_DEV_MEDIUM_ID(in_dev)) == 0)
		return 1;
	if (imi == -1)
		return 0;
	if ((out_dev = in_dev_get(rt->u.dst.dev)) != NULL) {
		omi = IN_DEV_MEDIUM_ID(out_dev);
		in_dev_put(out_dev);
	}
	return (omi != imi && omi != -1);
}