Commit 5d92e44
Felipe Zimmerle
Fixes subnets representations using slash notation
The ipv4 representation was only accepting slash notation with masks
represented in 2 digits. In the ipv6 implementation several fixies were made:
The maximum value to a bitmask was 64 which is not the reality, as ipv6 can
handle 128 bits. The second change was also to enable mask representation with
more and less than 2 digits. A more general fix was added to allow the unit
tests to work even if a invalid ip/range was informed during the creation of
the "tree", now it is checking if the tree is NULL while performing the
execution of the operator. Initial problem was reported at the issue: #706.1 parent 731466c commit 5d92e44
3 files changed
+36
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
820 | 820 | | |
821 | 821 | | |
822 | 822 | | |
| 823 | + | |
823 | 824 | | |
824 | 825 | | |
825 | 826 | | |
826 | 827 | | |
827 | 828 | | |
| 829 | + | |
| 830 | + | |
828 | 831 | | |
829 | 832 | | |
830 | 833 | | |
831 | 834 | | |
832 | 835 | | |
833 | 836 | | |
834 | | - | |
| 837 | + | |
835 | 838 | | |
836 | 839 | | |
837 | 840 | | |
838 | 841 | | |
839 | 842 | | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
840 | 849 | | |
841 | 850 | | |
842 | 851 | | |
843 | 852 | | |
844 | 853 | | |
845 | | - | |
| 854 | + | |
846 | 855 | | |
847 | | - | |
848 | | - | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
849 | 859 | | |
850 | 860 | | |
851 | 861 | | |
| 862 | + | |
852 | 863 | | |
853 | 864 | | |
854 | 865 | | |
| |||
863 | 874 | | |
864 | 875 | | |
865 | 876 | | |
866 | | - | |
| 877 | + | |
867 | 878 | | |
868 | 879 | | |
869 | 880 | | |
870 | 881 | | |
871 | 882 | | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
872 | 889 | | |
873 | 890 | | |
874 | 891 | | |
875 | 892 | | |
876 | 893 | | |
877 | | - | |
| 894 | + | |
878 | 895 | | |
879 | | - | |
880 | | - | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
881 | 899 | | |
882 | 900 | | |
883 | 901 | | |
884 | | - | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
885 | 905 | | |
| 906 | + | |
886 | 907 | | |
887 | 908 | | |
888 | 909 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
367 | | - | |
| 367 | + | |
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
372 | | - | |
| 372 | + | |
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| 138 | + | |
| 139 | + | |
138 | 140 | | |
139 | 141 | | |
140 | 142 | | |
| |||
0 commit comments