9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] cat /net/iproute
@ 2003-04-04  2:39 David Presotto
  0 siblings, 0 replies; only message in thread
From: David Presotto @ 2003-04-04  2:39 UTC (permalink / raw)
  To: 9fans

geoff found that cat #I/iproute could give bad doodoo, for example:

	; cat /net.alt/iproute
	0.0.0.0 /96 63.192.14.225 4    none   0
	€>%[$\x17\x7f€€JX€p€€QMs€p\x1e€DE€Ԟ€€€
€j\x1d-€wKf€€-€€ս€\x16\x14[2€€€\x16€j€€mmï€P€f€€€fx#\x14€€€T\a€v€n€€Yqz)-,g€€\x0263.0.0.0 /128 63.0.0.0 4b   ifc    -
	€\aO€.:€€W^€€\x0e\x7f6.T€\x13t€€uT€€€€€_"€\x03\x16gt€€€x€\x18€€€€€Ai^[H€rН€q€;\x19€W€\x16€0€€€q€€q€^[a€\x1f[;€32€€\x13j€W$€€€#€€63.192.14.224 /124 63.192.14.224 4i   ifc    0
	€€\x1eh€€€€€\x1eP\x1f	[€€9k€€€€\x0e€$€5€€€Qx[#<€ӍÇ€I€€iՕ€€€€Ԛ€\x19\x1al€1(%x;\x1cm€€€!V€€D[\x16€(€j€€G€63.192.14.224 /128 63.192.14.224 4b   ifc    -
	€ɐB€\x1d€q€f'1+€	E€\x1fG\x03€y€€€'€N€|€\x10€d€p{1€€./@\x1f¹€€€6L€C3€voPS€€€€Jõ€€p€ /€ܫݯ<6 /128 6363.192.14.226 /128 63.192.14.226 4u   ifc    0
	man /sys/man
	bind -c63.192.14.224 /124 63.192.14.224 4i   ifc    0
	63.192.14.239 /128 6363.192.14.239 /128 63.192.14.239 4b   ifc    -
	n/other/mail/box /ma63.192.14.224 /128 63.192.14.224 4b   ifc    -
	63.255.255.255 /128 663.255.255.255 /128 63.255.255.255 4b   ifc    -
	s
	bind -c /usr/inf63.192.14.226 /128 63.192.14.226 4u   ifc    0
	255.255.255.255 /128 255.255.255.255 /128 255.255.255.255 4b   ifc    -
	/kfs /n/kfs
	moun63.192.14.239 /128 63.192.14.239 4b   ifc    -

It was a problem with the eipfmt in the kernel.  I fixed it by copying in
the libip one.  Also, I fixed the formating to not have to be fixed length
strings.  For IPv6 the required length was way too long for screens.

Rigorously tested, i.e., I tried it once and the kernel didn't crash.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-04-04  2:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-04  2:39 [9fans] cat /net/iproute David Presotto

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).