Граф коммитов

9 Коммитов

Автор SHA1 Сообщение Дата
Vipul Singh afcb977aa8
fix: Adding a constant hardware address to the veth (#1524)
* Adding constant hardware address to the veth

* update the variable and error log message

* Removing the shadow variable

* Removing the shadow variable

* Adding the hardware ad address while endpoint creation

* Refactoring based on the comments

* Updated based on comments

* removing merge conflicts

* update the function parameter

* Addressing comments

* go lint errors

* updating the IPAddr variable

* updating the state to NUD PROBE for transparent endpoint

Co-authored-by: root <root@DESKTOP-IS3TR2T.redmond.corp.microsoft.com>
2022-08-17 10:53:57 -07:00
Evan Baker 96bec09d41
chore: appease the linter (3/?), the big gofumpt (#987)
* gofumpt -w -s .

* small addtl cleanups after gofumpt

* rerun after rebase
2021-09-02 16:33:18 -05:00
John Howard a386846345 Store fixes; Windows compile
Signed-off-by: John Howard <jhoward@microsoft.com>

- First, the store timeout is woefully low. Bumped to 20 seconds from 2 seconds.
  This may fix https://github.com/Azure/azure-container-networking/issues/242#issuecomment-422701838
  IMO, as only test code calls it non-blocked, why even have a block parameter to Lock()?
  IMO also, why a timeout at all? They're always fraught with error and machine timing.

- Presence of a key should be checked using `raw, ok := hvs.data[key]`, not the current nil checked

- ErrKeyNotFound should be returned if the store file does not exist. It shouldn't ignore that error.

- Actually now reports if a timeout occurred correctly, along with non-block lock attempt when already locked.

- Serial pattern abuse in not always closing the lock file.

- Some golang correctness (errors should be lower case)

- go build ./... actually passes on Windows now - various compile errors previously.

- golang pattern conformance `if err:=<test>; err!=nil {....`

- Simplified timeout duration (no need for time.Duration(...))
2018-09-19 15:30:36 -07:00
Onur Filiz 437f7876d7 Added license notice to all source files 2017-02-12 02:03:39 -08:00
Onur Filiz 99e37e8a8f Reset netlink sockets when changing network namespaces 2016-11-22 15:24:28 -08:00
Onur Filiz deb2a6d291 Updated package references with new repo name 2016-10-06 14:40:29 -07:00
Onur Filiz 9b13aa09f6 Updated netlink socket calls to log at debug level 2016-06-05 20:58:47 -07:00
Onur Filiz 1d5ecba14b Implemented netlink route functionality 2016-06-05 06:42:14 -07:00
Onur Filiz 60bbd4b52f Added netlink package 2016-04-18 18:09:24 -07:00