From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] err 2: arena creation time after last write time
Date: Fri, 18 Aug 2006 20:53:29 -0500 [thread overview]
Message-ID: <60f7ca1174c9509fa25f8a747954df8a@quanstro.net> (raw)
In-Reply-To: <3096bd910608181728o3fd07611l893af021333be219@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 289 bytes --]
what are your routes?
; cat /net/iproute
there will be some /128 routes that are actually broadcast addresses.
you can run the attached command to get your ethernet devices, mac, address/mask
and network. there's a similar program in /sys/src/libip called testreadipifc.c
- erik
[-- Attachment #2: ipifc.c --]
[-- Type: text/plain, Size: 1191 bytes --]
#include <u.h>
#include <libc.h>
#include <ip.h>
char *efmt = "%.2ux:%.2ux:%.2ux:%.2ux:%.2ux:%.2ux";
#pragma varargck type "e" uchar*
int
ethfmt(Fmt *f)
{
char buf[6*2+6];
uchar *p;
p = va_arg(f->args, uchar*);
snprint(buf, sizeof buf, efmt, p[0], p[1], p[2], p[3], p[4], p[5], p[6]);
va_end(p);
return fmtstrcpy(f, buf);
}
void
ipifcprint(int idx)
{
Ipifc *ifc;
Iplifc *l;
uchar eth[6];
for(ifc = readipifc(0, 0, idx); ifc; ifc = ifc->next){
print("%d:%s ", ifc->index, ifc->dev);
if(myetheraddr(eth, ifc->dev) == 0)
print("\t" "%#e", eth);
print("\n");
for(l = ifc->lifc; l; l = l->next)
print("\t" "%I%M" "\t" "%I\n", l->ip, l->mask, l->net);
}
// freeipifc(ifc);
}
void
usage(void)
{
fprint(2, "usage: ipfic [interface number] ...\n");
exits("usage");
}
void
main(int argc, char **argv){
char* r;
int i;
ARGBEGIN{
}ARGEND;
fmtinstall('I', eipfmt);
fmtinstall('M', eipfmt);
fmtinstall('E', eipfmt);
fmtinstall('e', ethfmt);
if(*argv)
for(; *argv; argv++){
i = strtoul(*argv, &r, 0);
if (*r)
usage();
ipifcprint(i);
}
else
ipifcprint(-1);
exits(0);
}
next prev parent reply other threads:[~2006-08-19 1:53 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-18 11:40 Rodolfo (kix)
2006-08-18 14:45 ` David Leimbach
2006-08-19 0:28 ` Rodolfo (kix)
2006-08-19 1:53 ` erik quanstrom [this message]
2006-08-19 2:46 ` Gorka guardiola
2006-08-19 18:21 ` [9fans] Searching for text outside Acme yard-ape
2006-08-19 18:33 ` Benn Newman
2006-08-19 20:59 ` Micah Stetson
2006-08-19 21:24 ` Benn Newman
2006-08-20 1:03 ` Micah Stetson
2006-08-19 21:45 ` yard-ape
2006-08-19 21:53 ` Francisco J Ballesteros
2006-08-19 21:02 ` Charles Forsyth
2006-08-20 3:29 ` erik quanstrom
2006-08-20 5:07 ` yard-ape
2006-08-19 4:25 ` [9fans] err 2: arena creation time after last write time Ronald G Minnich
2006-08-19 14:59 ` Rodolfo (kix)
2006-08-19 17:21 ` Gorka guardiola
2006-08-28 12:46 ` [9fans] test command is broken Richard Miller
2006-08-18 20:25 ` [9fans] err 2: arena creation time after last write time csant
2006-08-18 20:29 ` John Floren
2006-08-18 20:38 ` csant
2006-08-18 20:41 ` andrey mirtchovski
2006-08-18 20:46 ` John Floren
2006-08-18 20:46 ` csant
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=60f7ca1174c9509fa25f8a747954df8a@quanstro.net \
--to=quanstro@quanstro.net \
--cc=9fans@cse.psu.edu \
/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).