From: linux lover <linux_lover2004@yahoo.com>
To: netdev@oss.sgi.com
Subject: Function to read IP address in dot format
Date: Sun, 10 Apr 2005 23:05:10 -0700 (PDT) [thread overview]
Message-ID: <20050411060510.12208.qmail@web52201.mail.yahoo.com> (raw)
Hello,
what is the function to read IP address in
kernel code as human readable dot quad format? IP
address are unsigned int's in ip.h file as
__u32 saddr;
__u32 daddr;
In ip_build_xmit ip header gets IP addresses
from rtable struct as
iph->saddr=rt->rt_src;
iph->daddr=rt->rt_dst;
Now if i want to know to which ip current
packet is being sent i am using printks but it prints
iph->saddr in int format not in user readable format.
how to do that?
regards,
linux_lover
__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail
next reply other threads:[~2005-04-11 6:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-11 6:05 linux lover [this message]
2005-04-11 14:07 ` Function to read IP address in dot format Randy.Dunlap
2005-04-11 14:07 ` Arnaldo Carvalho de Melo
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=20050411060510.12208.qmail@web52201.mail.yahoo.com \
--to=linux_lover2004@yahoo.com \
--cc=netdev@oss.sgi.com \
/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).