Rev 2369 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2369 | Rev 2385 | ||
---|---|---|---|
Line 12... | Line 12... | ||
12 | ;; GNU GENERAL PUBLIC LICENSE ;; |
12 | ;; GNU GENERAL PUBLIC LICENSE ;; |
13 | ;; Version 2, June 1991 ;; |
13 | ;; Version 2, June 1991 ;; |
14 | ;; ;; |
14 | ;; ;; |
15 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
15 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 16... | Line 16... | ||
16 | 16 | ||
Line 17... | Line 17... | ||
17 | $Revision: 2369 $ |
17 | $Revision: 2385 $ |
Line 18... | Line 18... | ||
18 | 18 | ||
Line 122... | Line 122... | ||
122 | 122 | ||
123 | neg [esi + UDP_header.Checksum] ; substract checksum from 0 |
123 | neg [esi + UDP_header.Checksum] ; substract checksum from 0 |
124 | jz .no_checksum ; if checksum is zero, it is considered valid and we continue processing |
124 | jz .no_checksum ; if checksum is zero, it is considered valid and we continue processing |
Line 125... | Line -... | ||
125 | ; otherwise, we will re-calculate the checksum and add it to this value, thus creating 0 when it is correct |
- | |
126 | 125 | ; otherwise, we will re-calculate the checksum and add it to this value, thus creating 0 when it is correct |
|
127 | push esi |
- | |
128 | UDP_checksum (edi), (edi+4) |
126 | |
Line 129... | Line 127... | ||
129 | pop esi |
127 | UDP_checksum (edi), (edi+4) |
130 | jnz .checksum_mismatch |
128 | ;;; jnz .checksum_mismatch |
Line 131... | Line 129... | ||
131 | 129 |