IPv6 Support
Description of Patch
This patch adds support for IPv6 to Motion.
The 'local' options, which before bound on localhost, now will bind on the appropriate localhost (127.0.0.1 or ::1) depending if IPv6 is available or not. Do note that multiple sockets are not supported, this would require a lot of code changes.
Refences
http://en.wikipedia.org/wiki/IPv6
Installation of Patch
Download the patch file. If it is packed as a gz or tar.gz unpack it first. Then copy it to the motion source directory and issue the command (assuming the patch file is called filename_of_patch_file.diff)
patch < filename_of_patch_file.diff
Then re-build Motion and test the patch.
Change History of Patch
Discussion and Comments
Hi Jeroen,
Thanks for your patch
Current stable version of motion is 3.2.9, so i think that could be better do it against svn version, so i'll take some time to do it.
--
AngelCarpintero - 31 Dec 2007
I've commit to svn r344 some parts of your patch fixing some issues , but only to allow IPV4/IPV6 dual stack for webcam stream and http-control.
--
AngelCarpintero - 12 May 2008
I've compiled motion on jaunty and now it only binds to IPv6 and not IPv4 -- How do I get it to bind to IPv4?
--
RomanGaufman - 16 Apr 2009
I presently have to run ifconfig lo inet6 del ::1/128 every time before I start motion to get motion to bind on IPv4

-- Any better solution?
--
RomanGaufman - 20 May 2009
I can add a new config option to enable or disable IPV6 support.
--
AngelCarpintero - 19 Jul 2009
included already in svn trunk