-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
install route/arp, conflict check, custom mac_prefix, random uid
- Loading branch information
1 parent
b8c2ff3
commit 4e5c82a
Showing
8 changed files
with
840 additions
and
144 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
wireguard-go | ||
wireguard-go-vpp | ||
vendor/* | ||
go.sum |
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
File renamed without changes.
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,20 @@ | ||
--- vendor/git.fd.io/govpp.git/adapter/socketclient/socketclient.go 2021-07-29 22:21:35.560204223 +0800 | ||
+++ vendor/git.fd.io/govpp.git/adapter/socketclient/socketclient.go 2021-07-30 04:53:13.528822544 +0800 | ||
@@ -314,6 +314,8 @@ | ||
for _, x := range reply.MessageTable { | ||
msgName := strings.Split(x.Name, "\x00")[0] | ||
name := strings.TrimSuffix(msgName, "\x13") | ||
+ nameslice := strings.Split(name, "_") | ||
+ name = strings.Join(nameslice[:len(nameslice)-1], "_") | ||
c.msgTable[name] = x.Index | ||
if strings.HasPrefix(name, "sockclnt_delete_") { | ||
c.sockDelMsgId = x.Index | ||
@@ -327,7 +329,7 @@ | ||
} | ||
|
||
func (c *Client) GetMsgID(msgName string, msgCrc string) (uint16, error) { | ||
- if msgID, ok := c.msgTable[msgName+"_"+msgCrc]; ok { | ||
+ if msgID, ok := c.msgTable[msgName]; ok { | ||
return msgID, nil | ||
} | ||
return 0, &adapter.UnknownMsgError{ |
Oops, something went wrong.