Rev 3555 | Rev 3626 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3555 | Rev 3589 | ||
---|---|---|---|
Line 57... | Line 57... | ||
57 | 57 | ||
58 | push ebx |
58 | push ebx |
59 | push ecx |
59 | push ecx |
Line 60... | Line 60... | ||
60 | push eax |
60 | push eax |
61 | 61 | ||
62 | DEBUGF 1,"LOOP_input: size=%u\n", ecx |
62 | DEBUGF DEBUG_NETWORK_VERBOSE, "LOOP_input: size=%u\n", ecx |
63 | lea edx, [eax + 2] |
63 | lea edx, [eax + 2] |
Line 64... | Line 64... | ||
64 | mov ax, word[eax] |
64 | mov ax, word[eax] |
65 | mov ebx, LOOPBACK_DEVICE |
65 | mov ebx, LOOPBACK_DEVICE |
Line 66... | Line 66... | ||
66 | 66 | ||
Line 67... | Line 67... | ||
67 | cmp ax, ETHER_IPv4 |
67 | cmp ax, ETHER_IPv4 |
68 | je IPv4_input |
68 | je IPv4_input |
69 | 69 | ||
70 | DEBUGF 2,"LOOP_input: Unknown packet type=%x\n", ax |
70 | DEBUGF DEBUG_NETWORK_VERBOSE, "LOOP_input: Unknown packet type=%x\n", ax |
71 | 71 | ||
Line 72... | Line 72... | ||
72 | .dump: |
72 | .dump: |
Line 91... | Line 91... | ||
91 | ; |
91 | ; |
92 | ;----------------------------------------------------------------- |
92 | ;----------------------------------------------------------------- |
93 | align 4 |
93 | align 4 |
94 | LOOP_output: |
94 | LOOP_output: |
Line 95... | Line 95... | ||
95 | 95 | ||
Line 96... | Line 96... | ||
96 | DEBUGF 1,"LOOP_output\n" |
96 | DEBUGF DEBUG_NETWORK_VERBOSE, "LOOP_output\n" |
97 | 97 | ||
Line 98... | Line 98... | ||
98 | push ecx |
98 | push ecx |
Line 112... | Line 112... | ||
112 | pop ecx |
112 | pop ecx |
113 | lea edx, [ecx + 2] ; Set edx to complete buffer size |
113 | lea edx, [ecx + 2] ; Set edx to complete buffer size |
114 | mov ebx, LOOPBACK_DEVICE |
114 | mov ebx, LOOPBACK_DEVICE |
Line 115... | Line 115... | ||
115 | 115 | ||
116 | .done: |
116 | .done: |
117 | DEBUGF 2,"LOOP_output: ptr=%x size=%u\n", eax, edx |
117 | DEBUGF DEBUG_NETWORK_VERBOSE, "LOOP_output: ptr=%x size=%u\n", eax, edx |
Line 118... | Line 118... | ||
118 | ret |
118 | ret |
119 | 119 | ||
120 | .out_of_ram: |
120 | .out_of_ram: |
121 | DEBUGF 2,"LOOP_output: failed\n" |
121 | DEBUGF DEBUG_NETWORK_VERBOSE, "LOOP_output: failed\n" |
122 | add esp, 2+4 |
122 | add esp, 2+4 |