gr-csitool icon indicating copy to clipboard operation
gr-csitool copied to clipboard

## problem about mac address filter

Open kangqf opened this issue 7 years ago • 3 comments

I have some problem to filter the specific mac address by using the ofdm_parse_payload_impl block. It can't check all of my mac address.

kangqf avatar Jun 08 '17 12:06 kangqf

You can only specify one mac address, or leave the MAC Filter field blank to capture all packets. The format of mac address is xx:xx:xx:xx:xx:xx, where x is hex digit and : is any separator.

qiank10 avatar Jun 10 '17 13:06 qiank10

I only use one mac address, but it doesn't work. For example, I want to filter 23:23:23:23:23:23, and I fill the field with 23:23:23:23:23:23 then I only get the packet with the same src mac, but It drops lots of packets. And then I replace the filed with the mac 23:23:23:23:23:aa then the same result occurs, I can only receive the packets with the same src 23:23:23:23:23:23. If I leave the field to blank I get the all packets and other mac packets I can also receive, This works well.

kangqf avatar Jun 11 '17 02:06 kangqf

big brother!!! your codes in 205 lines may be have some error

                  for(j = 0; j < 6; j++){
                    if(d_mac[i] != d_data_bytes[12 + i]){
                      break;
                    }
                  }

the i should be replaced by j!!!!!

kangqf avatar Jun 11 '17 10:06 kangqf