GithubHelp home page GithubHelp logo

Comments (3)

arithx avatar arithx commented on July 30, 2024

cc @barthy1 @alicefr

from mantle.

Prashanth684 avatar Prashanth684 commented on July 30, 2024

looks like the localhost representation is switched from 0100007F to 7F000001 because s390x is big endian

[builder@0a00db6c41ec fd]$ cat /proc/net/tcp
  sl  local_address rem_address   st tx_queue rx_queue tr tm->when retrnsmt   uid  timeout inode                                                     
   0: 7F000001:AEC3 00000000:0000 0A 00000000:00000000 00:00000000 00000000  1000        0 4188471 1 00000000b89335ae 100 0 0 10 0                   
   1: 7F000001:A669 00000000:0000 0A 00000000:00000000 00:00000000 00000000  1000        0 4187723 1 000000008c1df680 100 0 0 10 0                   

and the check is:

isLocalPat := regexp.MustCompile("0100007F:[[:xdigit:]]{4}")
if !isLocalPat.MatchString(localAddress) || remoteAddress != "00000000:0000" {
	continue
}

from mantle.

Prashanth684 avatar Prashanth684 commented on July 30, 2024

I took a stab at fixing this issue in the PR that is linked. I put an endian variable in the base flight object and used that when creating the qemu cluster for getting the port. This way, the endianness can be accessed by any machine through the base flight if needed. We could also store an arch variable there if necessary to distinguish various arches. Testing on s390x, this helped get past the problem of not getting the qemu port. Please let me know comments/improvements.

from mantle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.