Rev 3626 | Rev 3908 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3626 | Rev 3725 | ||
---|---|---|---|
Line 21... | Line 21... | ||
21 | Length dw ? ; Length of payload, does NOT include the length PPPoE header. |
21 | Length dw ? ; Length of payload, does NOT include the length PPPoE header. |
22 | Payload rb 0 |
22 | Payload rb 0 |
23 | ends |
23 | ends |
Line 24... | Line 24... | ||
24 | 24 | ||
- | 25 | uglobal |
|
- | 26 | align 4 |
|
25 | uglobal |
27 | |
26 | PPPoE_SID dw ? |
28 | PPPoE_SID dw ? |
- | 29 | PPPoE_MAC dp ? |
|
27 | PPPoE_MAC dp ? |
30 | |
Line 28... | Line 31... | ||
28 | endg |
31 | endg |
29 | 32 | ||
30 | ;----------------------------------------------------------------- |
33 | ;----------------------------------------------------------------- |
Line 61... | Line 64... | ||
61 | 64 | ||
Line 62... | Line 65... | ||
62 | DEBUGF DEBUG_NETWORK_VERBOSE, "PPPoE_discovery_input\n" |
65 | DEBUGF DEBUG_NETWORK_VERBOSE, "PPPoE_discovery_input\n" |
Line -... | Line 66... | ||
- | 66 | ||
- | 67 | ; First, find open PPPoE socket |
|
- | 68 | ||
- | 69 | pusha |
|
- | 70 | mov ecx, socket_mutex |
|
63 | 71 | call mutex_lock |
|
Line 64... | Line 72... | ||
64 | ; First, find open PPPoE socket |
72 | popa |
65 | 73 | ||
66 | mov eax, net_sockets |
74 | mov eax, net_sockets |
Line 74... | Line 82... | ||
74 | jne .next_socket |
82 | jne .next_socket |
Line 75... | Line 83... | ||
75 | 83 | ||
76 | cmp [eax + SOCKET.Protocol], PPP_PROTO_ETHERNET |
84 | cmp [eax + SOCKET.Protocol], PPP_PROTO_ETHERNET |
Line -... | Line 85... | ||
- | 85 | jne .next_socket |
|
- | 86 | ||
- | 87 | pusha |
|
- | 88 | mov ecx, socket_mutex |
|
- | 89 | call mutex_unlock |
|
77 | jne .next_socket |
90 | popa |
Line 78... | Line 91... | ||
78 | 91 | ||
79 | ; Now, send it to the this socket |
92 | ; Now, send it to the this socket |
Line 80... | Line 93... | ||
80 | 93 | ||
Line 81... | Line 94... | ||
81 | mov ecx, [esp + 4] |
94 | mov ecx, [esp + 4] |
- | 95 | mov esi, [esp] |
|
- | 96 | ||
- | 97 | jmp SOCKET_input |
|
- | 98 | ||
- | 99 | .dump: |
|
82 | mov esi, [esp] |
100 | pusha |
83 | 101 | mov ecx, socket_mutex |
|
84 | jmp SOCKET_input |
102 | call mutex_unlock |
85 | 103 | popa |