Modify

Opened 7 years ago

Closed 7 years ago

#8547 closed defect (fixed)

curl doesn't work over ipv6

Reported by: candrews@… Owned by: developers
Priority: normal Milestone: Backfire 10.03.1
Component: packages Version: Trunk
Keywords: ipv6 Cc:

Description

root@OpenWrt:~# curl ipv6.google.com
curl: (6) Couldn't resolve host 'ipv6.google.com'

I do have IPv6 connectivity.

root@OpenWrt:~# curl --version
curl 7.21.3 (mipsel-openwrt-linux-gnu) libcurl/7.21.3 OpenSSL/0.9.8p zlib/1.2.3
Protocols: file ftp ftps http https imap imaps pop3 pop3s rtsp smtp smtps tftp 
Features: NTLM SSL libz 

Attachments (1)

curl-ipv6.diff (348 bytes) - added by candrews@… 7 years ago.
Makefile diff to enable ipv6 in curl

Download all attachments as: .zip

Change History (9)

comment:1 Changed 7 years ago by luke-jr+openwrtbugs@…

Confirmed.

comment:2 Changed 7 years ago by jow

Self compiled?

comment:3 Changed 7 years ago by luke-jr+openwrtbugs@…

ar71xx repository

comment:4 Changed 7 years ago by brad@…

The Features: field should list IPv6 if IPv6 support is compiled in.

comment:5 Changed 7 years ago by hnyman

Same here. Self-compiled today from Backfire code for ar71xx / WNDR3700. IPv6 works otherwise just nicely.

root@OpenWrt:/lib# curl --version
curl 7.21.3 (mips-openwrt-linux-gnu) libcurl/7.21.3 OpenSSL/0.9.8p zlib/1.2.3
Protocols: file ftp ftps http https imap imaps pop3 pop3s rtsp smtp smtps tftp
Features: NTLM SSL libz
root@OpenWrt:/lib# curl ipv6.google.com
curl: (6) Couldn't resolve host 'ipv6.google.com'
root@OpenWrt:/lib# ping ipv6.google.com
PING ipv6.google.com (2a00:1450:8005::63): 56 data bytes
64 bytes from 2a00:1450:8005::63: seq=0 ttl=53 time=63.029 ms
64 bytes from 2a00:1450:8005::63: seq=1 ttl=53 time=57.741 ms
64 bytes from 2a00:1450:8005::63: seq=2 ttl=52 time=45.294 ms
^C
--- ipv6.google.com ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 45.294/55.354/63.029 ms

comment:6 Changed 7 years ago by candrews@…

I'm pretty sure all that needs to be done is to modify source:/packages/libs/curl/Makefile adding this line to CONFIGURE_ARGS:

$(call autoconf_bool,CONFIG_IPV6,ipv6) \

Changed 7 years ago by candrews@…

Makefile diff to enable ipv6 in curl

comment:7 Changed 7 years ago by candrews@…

I've attached a patch which is exactly what my previous comment says.

I have compiled a new image and installed and just tested it - curl now works over IPv6.

comment:8 Changed 7 years ago by jow

  • Resolution set to fixed
  • Status changed from new to closed

Committed in r24986 - thanks!

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.