# \_arp\_send\_gratuitous not working

**URL:** <https://forums.digi.com/t/arp-send-gratuitous-not-working/12530>\
**Category:** Rabbit\
**Tags:** arp, c, dynamic, gratuitous\
**Created:** [February 14, 2014, 3:01am UTC](https://forums.digi.com/t/arp-send-gratuitous-not-working/12530 "2014-02-14T03:01:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martin.work](https://avatars.discourse-cdn.com/v4/letter/m/97f17d/32.png) [@Martin.work](https://forums.digi.com/u/Martin.work)\
**Post date:** [February 14, 2014, 3:01am UTC](https://forums.digi.com/t/arp-send-gratuitous-not-working/12530/1 "2014-02-14T03:01:03Z")

</div>

Hello,

How can I force that my Rabbit sends a Gratuitous ARP message on startup?

I use the next code, but no Gratuitous ARP message is passed when I snif with Wireshark. (Other communication with the Rabbit works.)

Thanks,  
Martin

```auto

  ip = aton("10.0.105.2"); 
  sock_init();
  ifconfig(IF_ETH0,
     IFS_IPADDR, ip,
     IFS_UP,
     IFS_END);

 while (ifpending(IF_DEFAULT) == IF_COMING_UP)
    tcp_tick(NULL);

  _arp_send_gratuitous(IF_DEFAULT);

```

---

<div class="post-metadata">

**Author:** ![Martin.work](https://avatars.discourse-cdn.com/v4/letter/m/97f17d/32.png) [@Martin.work](https://forums.digi.com/u/Martin.work)\
**Post date:** [February 14, 2014, 5:12am UTC](https://forums.digi.com/t/arp-send-gratuitous-not-working/12530/2 "2014-02-14T05:12:30Z")

</div>

When I define ARP\_VERBOSE

```auto
#define ARP_VERBOSE

```

I get the next output

```auto

ARP: asking who has 0A006902? (on i/f 0, using srcIP 00000000)
ARP: default router_for i/f 0...
ARP: ...no router for i/f 0
ARP: asking who has 0A006902? (on i/f 0, using srcIP 0A006902)

```

But no message is send over the network…
