Go to the source code of this file.
◆ hexadump()
void hexadump |
( |
char * |
p, |
|
|
int32 |
len |
|
) |
| |
Definition at line 55 of file hexdump.c.
References kprintf().
75 kprintf(
"\t\tEnd Ethernet header\n");
95 kprintf(
"\tHTYP PTYP HLEN PLEN OP\n");
104 for (i=0; i<2; i++) {
109 for (i=0; i<6; i++) {
114 for (i=0; i<2; i++) {
117 kprintf(
"\tSHA SPA THA TPA\n");
syscall kprintf(char *fmt,...)
ポーリングI/Oを使用して、フォーマットされた文字列をコンソールに出力する。
int int32
符号あり32ビット整数(int)
◆ hexdump()
void hexdump |
( |
char * |
p, |
|
|
int32 |
len |
|
) |
| |
Definition at line 9 of file hexdump.c.
References kprintf().
30 kprintf(
"\t\tEnd Ethernet header\n");
32 for (word=0,i=0; i<len; i++) {
36 kprintf(
"\tHV TOS LENGTH ID FRAG TTL PRO CKSUM IP_SRC IP_DST\n");
38 kprintf(
"\t\t\t\tSRC_PRT DEST-PORT LENGTH CKSUM\n");
40 }
else if ((word % 16) ==0) {
syscall kprintf(char *fmt,...)
ポーリングI/Oを使用して、フォーマットされた文字列をコンソールに出力する。
int int32
符号あり32ビット整数(int)