Main repository for pfSense
Go to file
Phil Davis 7405845f07 Do not allow 1:2:3:4:5:6:7:8::9 as an IPv6 address
The Net_IPv6 code has a bug - checkIPv6 returns "true" for addresses like:
1::2:3:4:5:6:7:8:9
1:2::3:4:5:6:7:8:9
...
1:2:3:4:5:6:7::8:9
1:2:3:4:5:6:7:8::9
these also emit the message:
Warning: str_repeat(): Second argument has to be greater than or equal to 0 in /etc/inc/IPv6.inc on line 496

It is fixed by making uncompress() always insert at least one ":0:" for any "::" in the address - a "::" always implies at least ":0:". This removes the str_repeat() warning, and means that the uncompressed IPv6 address has >8 numbers in it, so it fails the validity check (as it should).
Plus I fixed various text typos.
These changes are also being submitted to the Net_IPv6 repository on GitHUb so they will get fixed in newer versions (if pfSense ever ports them across).
2013-02-11 03:23:22 +05:45
boot Add hw.usb.no_pf="1" to loader.conf on nanobsd 2013-02-01 22:58:38 +01:00
cf/conf trigger setup wizard 2009-11-16 01:44:37 -05:00
conf.default Upgrade code & config default version 2013-02-09 15:04:50 -08:00
etc Do not allow 1:2:3:4:5:6:7:8::9 as an IPv6 address 2013-02-11 03:23:22 +05:45
root Fixup home/end/ins/del in shell. 2013-01-15 10:13:30 -05:00
sbin Use the better -Fs modifies to pf to kill the states by interface. Also kill both sides on an interface when -k needs to be used 2013-01-31 22:04:07 +00:00
tmp Be a little smarter about the default kernel in rare cases where we cannot determine what was in use. 2013-01-03 09:29:50 -05:00
usr Merge pull request #403 from bcyrill/patch-20 2013-02-10 11:51:27 -08:00
.gitattributes Add .gitattributes file to help maintain proper newlines. 2012-12-10 11:21:56 -05:00
.gitignore ignore dreamweaver temp files 2011-04-21 14:33:45 -04:00