Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – planix.SVN – Blame – /os/branches/feature_unix/sys/src/cmd/aquarela/nbdgramdump.c – Rev 2

Subversion Repositories planix.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
#include "headers.h"
2
 
3
void
4
nbdgramdump(NbDgram *s)
5
{
6
	print("type 0x%.2ux flags 0x%.2ux id 0x%.4ux srcip %I port %d\n",
7
		s->type, s->flags, s->id, s->srcip, s->srcport);
8
	switch (s->type) {
9
	case NbDgramError:
10
		print("\terror.code 0x%.2ux\n", s->error.code);
11
		break;
12
	case NbDgramDirectUnique:
13
	case NbDgramDirectGroup:
14
	case NbDgramBroadcast:
15
		print("\tlength %ud offset %ud srcname %B dstname %B\n",
16
			s->datagram.length, s->datagram.offset, s->datagram.srcname, s->datagram.dstname);
17
		break;
18
	}
19
}