Commit 7f99131
authored
Fix packets with
* Fix packets with Linktype_RAW (101) not being recognized by the BPF filters correctly.
This fixes a regression during the transition to a non-libpcap parser described in #2221, where filters would stop working for packets of type RAW.
The change also restores a test to keep track of the behaviour, with the change being that the packets are now reported as platform agnostic type (LINKTYPE_RAW) instead of the platform specific type (LINKTYPE_DLT_RAW), and only perform the conversion internally.
* Add suppression for unused function warning.
* Fix typos.
* Fix attribute definition.
* Update patch to be under use pcap macro.
* Fix comment wording.Linktype_RAW (101) not being recognized by the BPF filters correctly. (#2222)1 parent ff876fc commit 7f99131
2 files changed
Lines changed: 86 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
131 | 130 | | |
132 | 131 | | |
133 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
134 | 161 | | |
135 | 162 | | |
136 | 163 | | |
137 | 164 | | |
138 | 165 | | |
139 | 166 | | |
140 | | - | |
| 167 | + | |
| 168 | + | |
141 | 169 | | |
142 | 170 | | |
143 | 171 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
836 | 836 | | |
837 | 837 | | |
838 | 838 | | |
839 | | - | |
840 | | - | |
841 | | - | |
842 | | - | |
843 | | - | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
844 | 860 | | |
| 861 | + | |
845 | 862 | | |
846 | | - | |
| 863 | + | |
847 | 864 | | |
848 | | - | |
849 | | - | |
850 | | - | |
851 | | - | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
852 | 869 | | |
853 | | - | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
854 | 884 | | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
855 | 898 | | |
856 | | - | |
| 899 | + | |
857 | 900 | | |
| 901 | + | |
858 | 902 | | |
859 | 903 | | |
860 | 904 | | |
| |||
0 commit comments