Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add android os #25

Merged
merged 2 commits into from
Mar 8, 2019
Merged

Add android os #25

merged 2 commits into from
Mar 8, 2019

Conversation

amfern
Copy link
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
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

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
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

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
Contributor Author

amfern commented Oct 10, 2018

Thanks

@jefferai
Copy link
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
Member

Reopening for further discussion.

@amfern
Copy link
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
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
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
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
(cherry picked from commit 492945c)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
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 <[email protected]>
(cherry picked from commit 492945c2d553c1e8a13ad9c06aa2eb000d03f631)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
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 <[email protected]>
Signed-off-by: zach <[email protected]>
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 <[email protected]>
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