Hans Dedecker
995193ccdb
odhcp6c: add workaround for broken extendprefix scenario
...
Extendprefix is typically used to extend an IPv6 RA prefix from a mobile
wan link to the LAN; such scenario requires correct RA prefix settings
like the on link flag not being set.
However some mobile manufacter set the RA prefix on link flag which breaks
basic IPv6 routing.
Work around this issue by filtering out the route being equal to the
extended prefix.
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years ago
Hans Dedecker
1d45ec2784
dhcpv6: add missing dollar sign in dhcpv6 script (FS#874)
...
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years ago
Hans Dedecker
7d760284a7
odhcp6c: Pass parameters to user dhcpv6 script
...
Pass all the parameters like device, dhcpv6 state to user script
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
8 years ago
blogic
ac7858a0f3
odhcp6c : Silence mtu write error warnings
...
Silence warning "daemon.notice netifd: wan6 (1139): sh: write error: Invalid argument"
when an invalid MTU is received via RA as kernel refuses to accept IPv6 mtu values
which are smaller than 1280 and bigger than the device mtu.
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
git-svn-id: svn+ssh://svn.openwrt.org/openwrt/trunk@49054 3c298f89-4303-0410-b956-a3cf2f4a3e73
8 years ago
Steven Barth
4b7ba93083
odhcp6c: correctly extend prefix from RAs
...
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46781
9 years ago
Steven Barth
72b4ed113a
odhcp6c: add RFC 7278 3gpp IPv6 prefix extension
...
Use option extendprefix 1 to enable
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46779
9 years ago
Steven Barth
9a2132156d
odhcp6c: minor fixes
...
Better synchronize RA & DHCPv6 events
Accumulate some events to avoid flooding
Restart softwires for address and prefix changes
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46518
9 years ago
Steven Barth
706adb1601
odhcp6c: add option "sourcefilter" to disable source filter
...
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46408
9 years ago
Steven Barth
a06c1c810e
odhcp6c: fix some more compatibility issues
...
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46335
9 years ago
Steven Barth
4734c4459b
odhcp6c: work around RIOs matching PIOs as sent by some apple routers
...
Thanks to Mikael Abrahamsson for reporting.
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 45941
9 years ago
Steven Barth
09ad0ae4bd
odhcp6c: silence fw3 warnings
...
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 45867
9 years ago
Steven Barth
08f057c703
ipv6: remove now unneeded source-dest-routing workarounds
...
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 45700
9 years ago
Steven Barth
64aa0929b9
odhcp6c: Fix white space errors
...
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
SVN-Revision: 45585
9 years ago
Steven Barth
6b062ad848
network: shorten names of generated interfaces
...
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 45476
9 years ago
Steven Barth
f1119373f2
odhcp6c: silence "bad number" warnings
...
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 45449
9 years ago
Steven Barth
7e5bf40cac
odhcpd: avoid illegal memory access in some corner cases
...
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 45428
9 years ago
Steven Barth
0dbbbda4bf
odhcp6c: move IPv6 /proc config to userspace and sanitize
...
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 45358
9 years ago
Steven Barth
4b1257137c
odhcp6c: add 464xlat integration, fix dslite integration
...
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 45323
9 years ago
Steven Barth
ea0a01d7e2
odhcp6c: fix typo in last commit
...
SVN-Revision: 42852
10 years ago
Steven Barth
c7a941cf02
odhcp6c: don't assign addresses or prefixes prematurely
...
SVN-Revision: 42850
10 years ago
Steven Barth
8691d75917
odhcp6c: add route-workaround for broken IPv6-ISPs
...
Some ISP seem to only do stateful DHCPv6 and not sending RAs.
This is technically broken because plain DHCPv6 doesn't carry routes.
We work around here by faking a default route to the DHCPv6 server
if we do not receive a useful RA from the ISP.
This workaround can be turned off with: option fakeroutes 0
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 42803
10 years ago
Steven Barth
462023f45a
odhcp6c: Fix white space typo in dhcpv6.script
...
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
SVN-Revision: 41893
10 years ago
Felix Fietkau
e7ece301fe
odhcp6c: suppress fw3 warnings
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 41833
10 years ago
Steven Barth
9231df5665
softwires: redesign dhcp(v6) provisioning
...
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 41823
10 years ago
Steven Barth
3ce83eb9a0
odhcp6c: export passthru options as netifd data
...
SVN-Revision: 40825
10 years ago
Steven Barth
0c06d76c79
netifd: Fix nested protocols going offline at reload + various route issues
...
Much thanks to Hans Dedecker
SVN-Revision: 40746
10 years ago
Steven Barth
cc80c11538
odhcp6c: bring up nested interfaces on config change
...
SVN-Revision: 40745
10 years ago
Steven Barth
8c53f29220
odhcp6c: some more fixes for map / lw4o6 support
...
SVN-Revision: 40728
10 years ago
Steven Barth
ef9f0fa232
odhcp6c: add preliminary support for MAP provisioning
...
SVN-Revision: 40604
10 years ago
Steven Barth
a22190340a
odhcp6c: add preliminary CER-ID support
...
SVN-Revision: 40351
10 years ago
Steven Barth
0555ebf66d
6rd / ds-lite: make the firewall-zones of nested-protocols configurable
...
SVN-Revision: 40020
10 years ago
Steven Barth
7ac0057c1f
odhcp6c: pass on delegate-flag on to ds-lite interface
...
SVN-Revision: 39910
10 years ago
Steven Barth
3194834c55
odhcp6c: remove source-restriction from local routes again (broke relaying)
...
SVN-Revision: 39575
10 years ago
Steven Barth
02c763c4ab
odhcp6c: Revert to slightly modified version of old behaviour
...
Latest changes broke source-restriction of on-link routes. Restoring
old-behaviour but adding correct source-restrictions which prevents
the offlink handler to remove the on-link route.
SVN-Revision: 39454
11 years ago
Steven Barth
a9a0b62785
odhcp6c: improve handling of RA on-link routes and addresses
...
SVN-Revision: 39451
11 years ago
Steven Barth
140a5b22d9
odhcp6c: Use sourcerouting by default
...
SVN-Revision: 39311
11 years ago
Steven Barth
e49d67f192
Convert DHCP->6rd and DHCPv6->DS-Lite autoconfig to dynamic interface
...
SVN-Revision: 39061
11 years ago
Steven Barth
fd50416248
odhcp6c: add source routing support
...
SVN-Revision: 39058
11 years ago
Steven Barth
ad93a571c6
odhcp6c: added support for DS-Lite + various fixes
...
SVN-Revision: 36625
11 years ago
Steven Barth
9c1ed6447b
odhcp6c: Make SLAAC-only work without reqprefix=no
...
Previously if the upstream router did not provide any DHCPv6-service
the wan6 interface would not come up even if RAs were received. The new
behavior allows the wan6 interface to comeup with RA-only configuration
after a timeout of 10s.
SVN-Revision: 36555
11 years ago
Steven Barth
99b69fd9c5
odhcp6c: allow setting a user-provided prefix as well
...
SVN-Revision: 35570
12 years ago
Steven Barth
9a62439c28
odhcp6c: switch to userspace RA-handling and offload address assignment to netifd
...
SVN-Revision: 35419
12 years ago
Steven Barth
1a0b207d61
odhcp6c: remove IPv6 forwarding-sysctl workaround
...
SVN-Revision: 35370
12 years ago
Steven Barth
e964fa5d8f
odhcp6c: work-around for proto-script to avoid loosing the default route
...
SVN-Revision: 35345
12 years ago
Steven Barth
0cd21ca785
odhcp6c: Send RS on start
...
SVN-Revision: 35137
12 years ago
Steven Barth
f0df2006af
odhcp6c: Add preliminary proto-handler
...
SVN-Revision: 35135
12 years ago