Skip to content

Add android os#25

Merged
jefferai merged 2 commits intohashicorp:masterfrom
amfern:master
Mar 8, 2019
Merged

Add android os#25
jefferai merged 2 commits intohashicorp:masterfrom
amfern:master

Conversation

@amfern
Copy link
Copy Markdown
Contributor

@amfern amfern commented Oct 3, 2018

Allthough android is linux the 'ip route' command doesn't return 'default' line.
Android has only one interface active at any time.

@amfern
Copy link
Copy Markdown
Contributor Author

amfern commented Oct 8, 2018

can someone give me a review?

ifaddrs.go Outdated
return "", errors.New("No default interface found")
}

// parseDefaultIfNameFromIPCmd parses the default interface from ip(8) for
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you update the function name with the suffix Android?

Copy link
Copy Markdown
Contributor Author

@amfern amfern Oct 10, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, Updated to parseDefaultIfNameFromIPCmdAndroid

@findkim
Copy link
Copy Markdown

findkim commented Oct 9, 2018

Hi @amfern this PR looks great and the changes are straightforward for supporting Android. We don't have plans to support Android at this time and would suggest forking go-sockaddr to add this feature. Similar context to Preeta's comment here. Hope this helps!

@schmichael schmichael closed this Oct 9, 2018
@amfern
Copy link
Copy Markdown
Contributor Author

amfern commented Oct 10, 2018

Thanks

@jefferai
Copy link
Copy Markdown
Member

What's the reason to not support this? This is a library; Preeta's comment is about running an enterprise-grade scheduler on Nomad. I don't think they're equivalent.

@jefferai
Copy link
Copy Markdown
Member

Reopening for further discussion.

@amfern
Copy link
Copy Markdown
Contributor Author

amfern commented Oct 10, 2018

Actually i agree, this is a library and not a nomad component, so it can have multiple applications.

@sean-
Copy link
Copy Markdown
Contributor

sean- commented Jan 3, 2019

Thank you for doing this @amfern, thank you for adding the bulk of this behind an android build tag .

@amfern
Copy link
Copy Markdown
Contributor Author

amfern commented Mar 6, 2019

Just checking in, what stops it from being merged, do you need something from me?

Allthough android is linux the 'ip route' command doesn't return 'default' line.
Android has only one interface active at any time.
Copy link
Copy Markdown
Member

@jefferai jefferai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jefferai jefferai merged commit c7188e7 into hashicorp:master Mar 8, 2019
thaJeztah added a commit to thaJeztah/libnetwork that referenced this pull request Aug 26, 2019
full diff: hashicorp/go-sockaddr@6d291a9...v1.0.2

Relevant changes:
  - hashicorp/go-sockaddr#25 Add android os
  - hashicorp/go-sockaddr#28 Add go.mod

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
thaJeztah added a commit to thaJeztah/docker that referenced this pull request Sep 3, 2019
full diff: hashicorp/go-sockaddr@6d291a9...v1.0.2

Relevant changes:
  - hashicorp/go-sockaddr#25 Add android os
  - hashicorp/go-sockaddr#28 Add go.mod

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
docker-jenkins pushed a commit to docker-archive/docker-ce that referenced this pull request Sep 3, 2019
full diff: hashicorp/go-sockaddr@6d291a9...v1.0.2

Relevant changes:
  - hashicorp/go-sockaddr#25 Add android os
  - hashicorp/go-sockaddr#28 Add go.mod

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: 492945c2d553c1e8a13ad9c06aa2eb000d03f631
Component: engine
thaJeztah added a commit to thaJeztah/docker that referenced this pull request Sep 16, 2019
full diff: hashicorp/go-sockaddr@6d291a9...v1.0.2

Relevant changes:
  - hashicorp/go-sockaddr#25 Add android os
  - hashicorp/go-sockaddr#28 Add go.mod

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 492945c)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
docker-jenkins pushed a commit to docker-archive/docker-ce that referenced this pull request Sep 17, 2019
full diff: hashicorp/go-sockaddr@6d291a9...v1.0.2

Relevant changes:
  - hashicorp/go-sockaddr#25 Add android os
  - hashicorp/go-sockaddr#28 Add go.mod

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 492945c2d553c1e8a13ad9c06aa2eb000d03f631)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: 5196dc65e7dae7f77be8b0f2f99eec5f967f529f
Component: engine
burnMyDread pushed a commit to burnMyDread/moby that referenced this pull request Oct 21, 2019
full diff: hashicorp/go-sockaddr@6d291a9...v1.0.2

Relevant changes:
  - hashicorp/go-sockaddr#25 Add android os
  - hashicorp/go-sockaddr#28 Add go.mod

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: zach <Zachary.Joyner@linux.com>
cpuguy83 pushed a commit to cpuguy83/docker that referenced this pull request May 25, 2021
full diff: hashicorp/go-sockaddr@6d291a9...v1.0.2

Relevant changes:
  - hashicorp/go-sockaddr#25 Add android os
  - hashicorp/go-sockaddr#28 Add go.mod

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants