Commit Graph

8 Commits

Author SHA1 Message Date
Sebastiaan van Stijn 22a9216d17 remove redundant build-tag comments
- The "linux" build tags were redundant as they were in a _linux file
- The project already states that go1.10 is a minimum (and long obsolete,
  so unlikely to be used still).
- Format the remaining build-tags for current go versions.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-01-13 09:56:59 -08:00
Alessandro Boch c4f3ca719c
Merge pull request #30 from brb/safer-netns
Add go1.10 build constraint
2020-12-29 17:22:02 -08:00
matte21 7109fa855b Remove useless setting of new netns from README.md
Remove from the README.md example the instruction which explicitly sets
the newly created netns as the netns of the current OS Thread. The removed
instruction is not needed because the setting is implicitly done by netns.New().
2019-06-25 16:32:34 -07:00
Martynas Pumputis b8d862b06e Add go1.10 build constraint
This prevents netns from being used on older Go runtimes on which it's
not safe to perform any state manipulations of a scheduling thread
(https://github.com/golang/go/issues/20676).

Signed-off-by: Martynas Pumputis <m@lambda.lt>
2018-12-21 10:35:45 +01:00
harche 54f0e4339c Fixing README.md
newly created ns must be set for net.Interfaces() to return interfaces from that ns.
2017-02-19 15:34:38 -08:00
Lei Jitang 8ba1072b58 Typo: fix typo in readme (#16)
Signed-off-by: Lei Jitang <leijitang@huawei.com>
2016-04-29 22:37:23 -07:00
Asuka Suzuki dd823845f2 Fix example code 2016-02-24 23:51:21 +09:00
Vishvananda Ishaya b801b0b909 Initial commit of netns package 2014-08-31 14:20:31 -07:00