From: Pietro Paolini <P.Paolini@ext.adbglobal.com>
To: "linux-c-programming@vger.kernel.org"
<linux-c-programming@vger.kernel.org>
Subject: use getifaddrs()
Date: Thu, 11 Oct 2012 08:44:39 +0000 [thread overview]
Message-ID: <56AB56EAD87AF24C803FB693654D7A89C87CA3@adbbexch01.adbitaly.com> (raw)
Hello,
I'm not sure about the mailing list I should ask this.
I am rewrite a C program in order to make it portable between differents arch and I am a bit confused regarding byte order.
I am getting the list of my interfaces using the getifaddr() functions and it seems return me a list of interfaces with their IP addresses in network byte order instead of host byte order.
It is a regular behavior or I am wrong and confused ?
Many thanks,
Pietro
next reply other threads:[~2012-10-11 8:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-11 8:44 Pietro Paolini [this message]
2012-10-11 17:16 ` use getifaddrs() Lorenzo Beretta
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56AB56EAD87AF24C803FB693654D7A89C87CA3@adbbexch01.adbitaly.com \
--to=p.paolini@ext.adbglobal.com \
--cc=linux-c-programming@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).