Commit bf6289d
Brandon Carpenter
Fixed copying packet data for SOCK_RAW.
RAW socket packet capture happens at a different location in the network
stack where the sk_buff data pointer has been moved. This fix calculates
the offset between the data pointer and network header and adjusts the
data copy accordingly.
Thank you to Peter Moody and Marc Bevand for the original patch.1 parent 6ba37d1 commit bf6289d
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
| 417 | + | |
417 | 418 | | |
418 | 419 | | |
419 | 420 | | |
| |||
431 | 432 | | |
432 | 433 | | |
433 | 434 | | |
| 435 | + | |
434 | 436 | | |
435 | | - | |
| 437 | + | |
436 | 438 | | |
437 | | - | |
| 439 | + | |
438 | 440 | | |
439 | 441 | | |
440 | 442 | | |
| |||
0 commit comments