9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Scott Schwartz schwartz@galapagos.cse.psu.edu
Subject: ioctl
Date: Mon, 15 Apr 1996 13:41:46 -0400	[thread overview]
Message-ID: <19960415174146.I_sSomh-qAmEuU49CvEhxRRPqE6MpdGz4t5ACjvxJfM@z> (raw)

Min Huang <mhuang@CS.Cornell.EDU> writes:
| I am porting a system built on the top of Unix to Plan9.
| Because the system use ioctle to get network address, network configuration,
| I find that plan9 doesn't support SIOCGIFADDR and SIOCFIFCONF.
| Could you please tell me how I can modify the plan9 to make it support them.

% cat '#P/ipifc'

The mechanism in libc, reading /net/tcp/0/local doesn't work very well
for multihomed hosts, since it returns just one number.  Moreover, all
the */local files return the address of the first interface, rather
than the one the connection is actually on.  That makes e.g. icmpfs do
the wrong thing if one of the interfaces doesn't have an advertised
route.







             reply	other threads:[~1996-04-15 17:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-04-15 17:41 Scott [this message]
  -- strict thread matches above, loose matches on Subject: below --
1996-05-05 18:49 ioctl Min
1996-05-05 18:17 ioctl Scott
1996-05-05 18:11 ioctl Gary
1996-05-05 17:50 ioctl Min
1996-04-15 17:45 ioctl Boyd
1996-04-15 15:11 ioctl 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=19960415174146.I_sSomh-qAmEuU49CvEhxRRPqE6MpdGz4t5ACjvxJfM@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).