MCPcopy Create free account
hub / github.com/mininet/mininet / setARP

Method setARP

mininet/node.py:531–536  ·  view source on GitHub ↗

Add an ARP entry. ip: IP address as string mac: MAC address as string

( self, ip, mac )

Source from the content-addressed store, hash-verified

529 # Routing support
530
531 def setARP( self, ip, mac ):
532 """Add an ARP entry.
533 ip: IP address as string
534 mac: MAC address as string"""
535 result = self.cmd( 'arp', '-s', ip, mac )
536 return result
537
538 def setHostRoute( self, ip, intf ):
539 """Add route to host.

Callers 1

staticArpMethod · 0.80

Calls 1

cmdMethod · 0.95

Tested by

no test coverage detected