forked from vishvananda/netlink
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Eugene Yakubovich
committed
Oct 13, 2014
1 parent
f87c54f
commit 33e8718
Showing
9 changed files
with
656 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package netlink | ||
|
||
import ( | ||
"fmt" | ||
"net" | ||
) | ||
|
||
// Neigh represents a link layer neighbor from netlink. | ||
type Neigh struct { | ||
Link Link | ||
Family int | ||
State int | ||
Type int | ||
Flags int | ||
IP net.IP | ||
HardwareAddr net.HardwareAddr | ||
} | ||
|
||
// String returns $ip/$hwaddr $label | ||
func (neigh *Neigh) String() string { | ||
return fmt.Sprintf("%s %s", neigh.IP, neigh.HardwareAddr) | ||
} |
Oops, something went wrong.