Remove the PPPOE layer from the package.

I use pcapdotnet dll in my application, but since this project does not currently support PPPOE, I would like to add functionality myself. My problem is that I do not have a good understanding of the package structure and PPPOE package structure. I do not know how best to start. I took the same package with and without a PPPOE layer, and I wrote bytes to a text file. I would appreciate help in continuing.

This is a package without a PPPOE layer:

0 48 136 21 69 131 0 24 231 253 174 161 8 0 69 0 0 83 39 63 64 0 128 6 222 170 79 176 27 47 211 174 182 45 0 21 130 204 202 187 11 119 220 8 22 31 128 24 1 2 145 161 0 0 1 1 8 10 14 58 64 121 0 213 181 165 51 51 49 32 80 97 115 115 119 111 114 100 32 114 101 113 117 105 114 101 100 32 102 111 114 32 106 97 110 13 10

, and this is the same package with the PPPOE level:

0 48 136 21 69 131 0 24 231 253 174 161 136 100 17 0 1 95 0 85 0 33 69 0 0 83 39 63 64 0 128 6 222 170 79 176 27 47 211 174 182 45 0 21 130 204 202 187 11 119 220 8 22 31 128 24 1 2 145 161 0 0 1 1 8 10 14 58 64 121 0 213 181 165 51 51 49 32 80 97 115 115 119 111 114 100 32 114 101 113 117 105 114 101 100 32 102 111 114 32 106 97 110 13 10

+4
source share
1 answer

Checkout http://sourceforge.net/projects/sharppcap/ or http://www.wireshark.org/

They will tell you about the structure of packets and how you can manually decode them if necessary.

0
source

Source: https://habr.com/ru/post/1447310/


All Articles