From: Min Huang mhuang@CS.Cornell.EDU
Subject: Unix and Plan9
Date: Tue, 16 Apr 1996 12:33:33 -0400 [thread overview]
Message-ID: <19960416163333.ubjKjLnpSH7CH3n8kZ4vkwlRPlILtHK8nS3usC-n7SU@z> (raw)
The system in Unix that I am porting to Plan9 has the following codes in
udp.c which implements the BSD internet interface and can handle IP,
UDP, UDP broadcast, and the Deering variations of IP and UDP.
*****************************************************************************
udp.c:#include <sys/ioctl.h>
udp.c: ioctl(udp_socket, SIOCGIFCONF, &ifc) - get network configuration
udp.c: (void) ioctl(udp_socket, SIOCGIFFLAGS, ifr) - get flags
udp.c: (void) ioctl(udp_socket, SIOCGIFADDR, ifr) - get network address
udp.c: ioctl(udp_socket, SIOCGIFNETMASK, ifr) - get network mask
udp.c: (void) ioctl(udp_socket, SIOCGIFBRDADDR, ifr) - get broadcast address
Also, read the gateway map table.
******************************************************************************
Could you please tell me how to get all information in Plan9?
So far, I know I can use ipinfo() to get some info. but not all of them.
Thank you very much
next reply other threads:[~1996-04-16 16:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-04-16 16:33 Min [this message]
1996-04-16 20:30 forsyth
1996-04-16 22:35 Min
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=19960416163333.ubjKjLnpSH7CH3n8kZ4vkwlRPlILtHK8nS3usC-n7SU@z \
--to=9fans@9fans.net \
/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).