Coder Social home page Coder Social logo

Comments (10)

zfl9 avatar zfl9 commented on July 19, 2024

估摸着应该是大小端的检测问题。

from chinadns-ng.

zfl9 avatar zfl9 commented on July 19, 2024

你的电脑是大端还是小端?

from chinadns-ng.

zfl9 avatar zfl9 commented on July 19, 2024

大概知道了,gcc提供的检测大小端的宏不可靠,看来错怪之前那位老哥了,抱歉抱歉。@hiboyhiboy

我改一下代码吧,include 一下 <endian.h> 头文件,这里面有预定义的宏可检测大小端。

from chinadns-ng.

zfl9 avatar zfl9 commented on July 19, 2024

@sanigo 试一下最新的提交?

from chinadns-ng.

sanigo avatar sanigo commented on July 19, 2024

好的,我试试看看

from chinadns-ng.

sanigo avatar sanigo commented on July 19, 2024

这个好使, @zfl9

from chinadns-ng.

zfl9 avatar zfl9 commented on July 19, 2024

好的。

from chinadns-ng.

sanigo avatar sanigo commented on July 19, 2024

你的电脑是大端还是小端?

X86_64,应该是小端吧?

from chinadns-ng.

XenMe avatar XenMe commented on July 19, 2024

今天刚好也碰到了,估计还是兼容性问题
大小端确定小端,编译也没有任何问题,最后发现我用了一个常见端口5353,结果局域网小米电视会广播到这个端口,然后chinadns-ng就一直报这个错了

from chinadns-ng.

zfl9 avatar zfl9 commented on July 19, 2024

今天刚好也碰到了,估计还是兼容性问题
大小端确定小端,编译也没有任何问题,最后发现我用了一个常见端口5353,结果局域网小米电视会广播到这个端口,然后chinadns-ng就一直报这个错了

你的这个问题和楼主的问题不一样。你这是非dns包发到了chinadns-ng监听端口而已。

from chinadns-ng.

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.