[Bug 218517] ppp fails adding route with error Value too large to be stored in data type

2018-11-10 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218517

Eugene Grosbein  changed:

   What|Removed |Added

 Resolution|Feedback Timeout|FIXED

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


[Bug 218517] ppp fails adding route with error Value too large to be stored in data type

2018-11-09 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218517

--- Comment #35 from emiku...@gmail.com ---
Sorry I wasn't more responsive on this bug.

I can confirm that 11.2-STABLE works fine! :D

$ uname -K
1102503

(-U is the same)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


[Bug 218517] ppp fails adding route with error Value too large to be stored in data type

2018-11-06 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218517

Eugene Grosbein  changed:

   What|Removed |Added

 Status|In Progress |Closed
 Resolution|--- |Feedback Timeout

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


[Bug 218517] ppp fails adding route with error Value too large to be stored in data type

2018-08-18 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218517

--- Comment #34 from Eugene Grosbein  ---
Is this problem still actual? If so, please try 11.2-RELEASE that has some
relevant changes for the ppp(8) and the kernel and respond with results.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


[Bug 218517] ppp fails adding route with error Value too large to be stored in data type

2018-03-12 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218517

--- Comment #33 from commit-h...@freebsd.org ---
A commit references this bug:

Author: eugen
Date: Mon Mar 12 17:37:39 UTC 2018
New revision: 330805
URL: https://svnweb.freebsd.org/changeset/base/330805

Log:
  MFC r329105: ppp(8): fix code producing debugging logs

ppp(8): fix code producing debugging logs

Fix several cases when long buffer is copied to shorter one
using snprintf that results in contents truncation and
clobbering unsaved errno value and creation of misleading logs.

  PR:   218517
  Approved by:  mav (mentor)

Changes:
_U  stable/10/
  stable/10/usr.sbin/ppp/defs.h
  stable/10/usr.sbin/ppp/iface.c
  stable/10/usr.sbin/ppp/ip.c
  stable/10/usr.sbin/ppp/ipv6cp.c
  stable/10/usr.sbin/ppp/ncpaddr.c
  stable/10/usr.sbin/ppp/route.c

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


[Bug 218517] ppp fails adding route with error Value too large to be stored in data type

2018-03-12 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218517

--- Comment #32 from commit-h...@freebsd.org ---
A commit references this bug:

Author: eugen
Date: Mon Mar 12 17:36:37 UTC 2018
New revision: 330804
URL: https://svnweb.freebsd.org/changeset/base/330804

Log:
  MFC r329105: ppp(8): fix code producing debugging logs

ppp(8): fix code producing debugging logs

Fix several cases when long buffer is copied to shorter one
using snprintf that results in contents truncation and
clobbering unsaved errno value and creation of misleading logs.

  PR:   218517
  Approved by:  mav (mentor)

Changes:
_U  stable/11/
  stable/11/usr.sbin/ppp/defs.h
  stable/11/usr.sbin/ppp/iface.c
  stable/11/usr.sbin/ppp/ip.c
  stable/11/usr.sbin/ppp/ipv6cp.c
  stable/11/usr.sbin/ppp/ncpaddr.c
  stable/11/usr.sbin/ppp/route.c

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


[Bug 218517] ppp fails adding route with error Value too large to be stored in data type

2018-03-12 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218517

Eugene Grosbein  changed:

   What|Removed |Added

 Status|Open|In Progress

--- Comment #31 from Eugene Grosbein  ---
(In reply to emikulic from comment #9)

Note that https://bugs.freebsd.org/bugzilla/attachment.cgi?id=190932 has
already been merged to stable/10 with r329913. Please test and respond.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


[Bug 218517] ppp fails adding route with error Value too large to be stored in data type

2018-02-23 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218517

--- Comment #30 from Eugene Grosbein  ---
Created attachment 190932
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=190932=edit
Fix for stable/10 after incomplete MFC r326012

Please re-test with this kernel patch applied.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


[Bug 218517] ppp fails adding route with error Value too large to be stored in data type

2018-02-11 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218517

--- Comment #29 from Eugene Grosbein  ---
(In reply to emikulic from comment #27)

I still wait for 3) error log of patched ppp with unpatched kernel.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


[Bug 218517] ppp fails adding route with error Value too large to be stored in data type

2018-02-10 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218517

--- Comment #28 from commit-h...@freebsd.org ---
A commit references this bug:

Author: eugen
Date: Sat Feb 10 17:09:52 UTC 2018
New revision: 329105
URL: https://svnweb.freebsd.org/changeset/base/329105

Log:
  ppp(8): fix code producing debugging logs

  Fix several cases when long buffer is copied to shorter one
  using snprintf that results in contents truncation and
  clobbering unsaved errno value and creation of misleading logs.

  PR:   218517
  Approved by:  avg (mentor)
  MFC after:1 month

Changes:
  head/usr.sbin/ppp/defs.h
  head/usr.sbin/ppp/iface.c
  head/usr.sbin/ppp/ip.c
  head/usr.sbin/ppp/ipv6cp.c
  head/usr.sbin/ppp/ncpaddr.c
  head/usr.sbin/ppp/route.c

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


[Bug 218517] ppp fails adding route with error Value too large to be stored in data type

2018-02-10 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218517

--- Comment #27 from emiku...@gmail.com ---
(In reply to Eugene Grosbein from comment #26)

> 1) output of "netstat -rn" before starting ppp

# netstat -nr
Routing tables

Internet:
DestinationGatewayFlags  Netif Expire
127.0.0.1  link#2 UH  lo0
192.168.1.0/24 link#1 U   re0
192.168.1.2link#1 UHS lo0

Internet6:
Destination   Gateway   Flags 
Netif Expire
::/96 ::1   UGRSlo0
::1   link#2UH  lo0
:::0.0.0.0/96 ::1   UGRSlo0
fe80::/10 ::1   UGRSlo0
fe80::%re0/64 link#1U   re0
fe80:::::%re0 link#1UHS lo0
fe80::%lo0/64 link#2U   lo0
fe80::1%lo0   link#2UHS lo0
ff01::%re0/32 fe80:::::%re0 U   re0
ff01::%lo0/32 ::1   U   lo0
ff02::/16 ::1   UGRSlo0
ff02::%re0/32 fe80:::::%re0 U   re0
ff02::%lo0/32 ::1   U   lo0

> 2) repeat it after successfull start of ppp with patched kernel

--- ppp started, dhcp6c not running ---

# netstat -nr
Routing tables

Internet:
DestinationGatewayFlags  Netif Expire
default150.xxx.yy.z1  UGStun0
59.xxx.yyy.zz2 link#3 UHS lo0
127.0.0.1  link#2 UH  lo0
150.xxx.yy.z1  link#3 UH tun0
192.168.1.0/24 link#1 U   re0
192.168.1.2link#1 UHS lo0

Internet6:
Destination   Gateway   Flags 
Netif Expire
::/96 ::1   UGRSlo0
default   fe80::5aac:78ff:fe22:8f00%tun0 UGS   
tun0
::1   link#2UH  lo0
:::0.0.0.0/96 ::1   UGRSlo0
fe80::/10 ::1   UGRSlo0
fe80::%re0/64 link#1U   re0
fe80:::::%re0 link#1UHS lo0
fe80::%lo0/64 link#2U   lo0
fe80::1%lo0   link#2UHS lo0
fe80::%tun0/64link#3US tun0
fe80:::::%tun0link#3UHS lo0
ff01::%re0/32 fe80:::::%re0 U   re0
ff01::%lo0/32 ::1   U   lo0
ff01::%tun0/32fe80:::::%tun0 US
tun0
ff02::/16 ::1   UGRSlo0
ff02::%re0/32 fe80:::::%re0 U   re0
ff02::%lo0/32 ::1   U   lo0
ff02::%tun0/32fe80:::::%tun0 US
tun0

--- dhcp6c running, everything working ---

# netstat -nr
Routing tables

Internet:
DestinationGatewayFlags  Netif Expire
default150.xxx.yy.z1  UGStun0
59.xxx.yyy.zz2 link#3 UHS lo0
127.0.0.1  link#2 UH  lo0
150.xxx.yy.z1  link#3 UH tun0
192.168.1.0/24 link#1 U   re0
192.168.1.2link#1 UHS lo0

Internet6:
Destination   Gateway   Flags 
Netif Expire
::/96 ::1   UGRSlo0
default   fe80::5aac:78ff:fe22:8f00%tun0 UGS   
tun0
::1   link#2UH  lo0
:::0.0.0.0/96 ::1   UGRSlo0
2001:eee2:fff2:1234::/64  link#1U   re0
2001:eee2:fff2:1234:::: link#1UHS  
  lo0
2001:::5678::/64  link#1U   re0
2001:::5678:::: link#1UHS  
  lo0
fe80::/10 ::1   UGRSlo0

[Bug 218517] ppp fails adding route with error Value too large to be stored in data type

2018-02-10 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218517

--- Comment #26 from Eugene Grosbein  ---
(In reply to emikulic from comment #24)

> Yes, I actually use IPv6 over PPPoE.

I need more details then. Please attach 1) output of "netstat -rn" before
starting ppp, 2) repeat it after successfull start of ppp with patched kernel,
3) error log of patched ppp with unpatched kernel.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


[Bug 218517] ppp fails adding route with error Value too large to be stored in data type

2018-02-09 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218517

--- Comment #24 from emiku...@gmail.com ---
(In reply to Eugene Grosbein from comment #23)

Yes, I actually use IPv6 over PPPoE. :) I suspect my situation is the same as
Kris's in #1.

I'm not sure what the correct solution is. For now I pull
remotes/origin/stable/10 and git revert the r326012 commit. This gets me a
10-STABLE system with working IPv6.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


[Bug 218517] ppp fails adding route with error Value too large to be stored in data type

2018-02-09 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218517

--- Comment #25 from emiku...@gmail.com ---
(In reply to Eugene Grosbein from comment #22)

I applied the patch but it doesn't produce anything useful with a working
kernel. I can try it later with a not-working kernel but I'm pretty sure you're
going to get the same results as #16 and #18: where errno=17.

Your patch fixes a real logging bug in PPP so I hope it gets committed to
mainline.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


[Bug 218517] ppp fails adding route with error Value too large to be stored in data type

2018-02-09 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218517

--- Comment #23 from Eugene Grosbein  ---
(In reply to emikulic from comment #9)

Do you actually use IPv6 within this system? If not, does ppp actually work for
IPv4 connectivity, so that is just bad logging problem?

If you do actually use IPv6, you seem to be already having mentioned IPv6
address, right?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


[Bug 218517] ppp fails adding route with error Value too large to be stored in data type

2018-02-09 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218517

--- Comment #22 from Eugene Grosbein  ---
(In reply to emikulic from comment #20)

Please try a patch for /usr/sbin/ppp I've just attached that fixes cosmetic
problem preventing clobbering errno value while producing logs.

To apply:

cd /usr/src
patch < /path/to/path
cd usr.sbin/ppp
make obj depend && make all install

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


[Bug 218517] ppp fails adding route with error Value too large to be stored in data type

2018-02-09 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218517

--- Comment #21 from Eugene Grosbein  ---
Created attachment 190463
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=190463=edit
save errno and fix buffer size for copies of ncpaddr_ntoa/ncprange_ntoa result

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


[Bug 218517] ppp fails adding route with error Value too large to be stored in data type

2018-02-09 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218517

Rodney W. Grimes  changed:

   What|Removed |Added

 CC||freebsd-net@FreeBSD.org

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


[Bug 218517] ppp fails adding route with error Value too large to be stored in data type

2018-02-09 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218517

Eugene Grosbein  changed:

   What|Removed |Added

   Assignee|freebsd-net@FreeBSD.org |eu...@freebsd.org

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


[Bug 218517] ppp fails adding route with error Value too large to be stored in data type

2018-02-09 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218517

--- Comment #20 from emiku...@gmail.com ---
Bisecting:

revision=326006 works
revision=326012 doesn't

https://svnweb.freebsd.org/base?view=revision=326012

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


[Bug 218517] ppp fails adding route with error Value too large to be stored in data type

2018-02-09 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218517

--- Comment #19 from emiku...@gmail.com ---
This version kernel works:

# uname -K
1003507

Log looks weird though:

ppp[440]: tun0: IPV6CP: deflink: LayerUp.
ppp[440]: tun0: ID0: 2 = socket(28, 2, 0)
ppp[440]: tun0: ID0: 0 = ioctl(2, 2166384921, 0x7fffd900)
ppp[440]: tun0: ID0: bug 218517: errno = 4 (Interrupted system call)
ppp[440]: tun0: ID0: 0 = ioctl(2, 2156423451, 0x7fffd370)
ppp[440]: tun0: ID0: bug 218517: errno = 4 (Interrupted system call)
ppp[440]: tun0: ID0: 2 = socket(17, 3, 0)
ppp[440]: tun0: ID0: -1 = write(2, data, 248)
ppp[440]: tun0: ID0: 248 = write(2, data, 248)
ppp[440]: tun0: ID0: 2 = socket(17, 3, 0)
ppp[440]: tun0: ID0: -1 = write(2, data, 200)
ppp[440]: tun0: ID0: 200 = write(2, data, 200)
ppp[440]: tun0: ID0: 2 = socket(17, 3, 0)
ppp[440]: tun0: ID0: -1 = write(2, data, 248)
ppp[440]: tun0: ID0: 248 = write(2, data, 248)
ppp[440]: tun0: ID0: 2 = socket(2, 2, 0)
ppp[440]: tun0: ID0: 0 = ioctl(2, 3223349521, 0x7fffdd40)
ppp[440]: tun0: ID0: bug 218517: errno = 17 (File exists)
ppp[440]: tun0: ID0: 0 = ioctl(2, 2149607696, 0x7fffdd40)
ppp[440]: tun0: ID0: bug 218517: errno = 17 (File exists)
ppp[440]: tun0: IPV6CP: myaddr  hisaddr = 

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


[Bug 218517] ppp fails adding route with error Value too large to be stored in data type

2018-02-08 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218517

--- Comment #18 from emiku...@gmail.com ---
I ran "./kernel-error.d ppp 84" followed by ppp, but it didn't produce any
output.

I think the actual errno is 17, but "./kernel-error.d ppp 17" mostly produces
"Returning 17 from _rw_runlock_cookie+0x12e", e.g.:

  2  42896_rw_runlock_cookie:return Returning 17 from
_rw_runlock_cookie+0x12e
  kernel`ifioctl+0x2f8
  kernel`kern_ioctl+0x25f
  kernel`sys_ioctl+0x140
  kernel`amd64_syscall+0x452
  kernel`0x80d95b7b

Running ppp under truss:

 8711: 5.695770520 sendto(7,"<30>Feb  9 01:24:57 ppp[8711]: tun0: IPV6CP:
deflink: LayerUp.",62,0x0,NULL,0x0) = 62 (0x3e)
 8711: 5.695952875 socket(PF_INET6,SOCK_DGRAM,0) = 2 (0x2)
 8711: 5.697504600 ioctl(2,SIOCAIFADDR_IN6,0xd200) ERR#17 'File exists'
 8711: 5.697701621 sendto(7,"<30>Feb  9 01:24:57 ppp[8711]: tun0: ID0: -1 =
ioctl(2, 2156423451, 0x7fffd200)",83,0x0,NULL,0x0) = 83 (0x53)
 8711: 5.697964153 sendto(7,"<30>Feb  9 01:24:57 ppp[8711]: tun0: ID0: bug
218517: errno = 17 (File exists)",78,0x0,NULL,0x0) = 78 (0x4e)
 8711: 5.698235484 sendto(7,"<28>Feb  9 01:24:57 ppp[8711]: tun0: Warning:
iface add: ioctl(SIOCAIFADDR_IN6, fe80::f43e:9675:fb45:aa33 ->
fe80::72e4:22ff:fe8b:df00): Value too large to be stored in data
type",178,0x0,NULL,0x0) = 178 (0xb2)

(note ERR#17)

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


[Bug 218517] ppp fails adding route with error Value too large to be stored in data type

2018-02-08 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218517

--- Comment #17 from Eugene Grosbein  ---
(In reply to emikulic from comment #16)

Could you please look at comment #1 and use directions of glebius@ to collect
DTrace information?

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


[Bug 218517] ppp fails adding route with error Value too large to be stored in data type

2018-02-08 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218517

--- Comment #16 from emiku...@gmail.com ---
(In reply to Eugene Grosbein from comment #15)

--- a/usr.sbin/ppp/id.c
+++ b/usr.sbin/ppp/id.c
@@ -50,6 +50,7 @@
 #include 
 #endif
 #include 
+#include 

 #include "log.h"
 #include "main.h"
@@ -93,10 +94,14 @@ int
 ID0ioctl(int fd, unsigned long req, void *arg)
 {
   int ret;
+  int saved_errno;

   ID0set0();
   ret = ioctl(fd, req, arg);
+  saved_errno = errno;
   log_Printf(LogID0, "%d = ioctl(%d, %lu, %p)\n", ret, fd, req, arg);
+  log_Printf(LogID0, "bug 218517: errno = %d (%s)\n", saved_errno,
+strerror(saved_errno));
   ID0setuser();
   return ret;
 }

Resulting in:

ppp[4390]: tun0: IPV6CP: deflink: LayerUp.
ppp[4390]: tun0: ID0: 2 = socket(28, 2, 0)
ppp[4390]: tun0: ID0: -1 = ioctl(2, 2156423451, 0x7fffd790)
ppp[4390]: tun0: ID0: bug 218517: errno = 17 (File exists)
ppp[4390]: tun0: Warning: iface add: ioctl(SIOCAIFADDR_IN6,
fe80::a9df:fac8:17ee:204d -> fe80::5aac:78ff:fe22:8f00): Value too large to be
stored in data type
ppp[4390]: tun0: Error: ipv6cp_InterfaceUp: unable to set ipv6 address
ppp[4390]: tun0: IPV6CP: deflink: LayerDown: fe80::a9df:fac8:17ee:204d

errno must be getting clobbered somewhere between ioctl() and the "iface add"
log line.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


[Bug 218517] ppp fails adding route with error Value too large to be stored in data type

2018-02-08 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218517

--- Comment #15 from Eugene Grosbein  ---
(In reply to emikulic from comment #10)

And please show the diff for your added printf because "Value too large to be
stored in data type" should not be errno = 17

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


[Bug 218517] ppp fails adding route with error Value too large to be stored in data type

2018-02-08 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218517

--- Comment #14 from Eugene Grosbein  ---
(In reply to emikulic from comment #13)

Can you try to reproduce this with GENERIC kernel so we know if ALTQ breaks
something here?

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


[Bug 218517] ppp fails adding route with error Value too large to be stored in data type

2018-02-08 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218517

--- Comment #13 from emiku...@gmail.com ---
Sorry to be a pain, this is a custom kernel (can we get ALTQ in GENERIC? ;) and
-stable:

include GENERIC
nodevicefdc
options ALTQ
options ALTQ_CBQ# Class Based Queueing
options ALTQ_RED# Random Early Detection
options ALTQ_RIO# RED In/Out
options ALTQ_CODEL  # CoDel Active Queueing
options ALTQ_HFSC   # Hierarchical Packet Scheduler
options ALTQ_FAIRQ  # Fair Packet Scheduler
options ALTQ_CDNR   # Traffic conditioner
options ALTQ_PRIQ

*** ppp.conf:

default:
  set log Phase Chat tun IPCP IPV6CP ID0
  set mru 1492
  enable lqr echo
  set echoperiod 30
  nat enable no
  set device PPPoE:re0
  add default HISADDR
  add default HISADDR6
  set authname blah
  set authkey blah
  set redial 5

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


[Bug 218517] ppp fails adding route with error Value too large to be stored in data type

2018-02-08 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218517

--- Comment #12 from Eugene Grosbein  ---
(In reply to emikulic from comment #9)

Please show your ppp confuration. Do you use GENERIC kernel?

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


[Bug 218517] ppp fails adding route with error Value too large to be stored in data type

2018-02-08 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218517

Eugene Grosbein  changed:

   What|Removed |Added

   Assignee|freebsd-b...@freebsd.org|freebsd-net@FreeBSD.org

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


[Bug 218517] ppp fails adding route with error Value too large to be stored in data type

2017-11-06 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218517

Eugene Grosbein  changed:

   What|Removed |Added

 Status|New |Open
   Assignee|freebsd-net@FreeBSD.org |eu...@freebsd.org
 CC||eu...@freebsd.org

--- Comment #4 from Eugene Grosbein  ---
Please provide output of commands:

uname -K
uname -U
file /usr/sbin/ppp

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


[Bug 218517] ppp fails adding route with error Value too large to be stored in data type

2017-08-27 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218517

--- Comment #3 from Kris  ---
Can someone take a look at the previous output I provided?

Also, just updated from 11.0 to FreeBSD 11.1 Release and problem still exists.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


[Bug 218517] ppp fails adding route with error Value too large to be stored in data type

2017-04-12 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218517

Mark Linimon  changed:

   What|Removed |Added

   Assignee|freebsd-b...@freebsd.org|freebsd-net@FreeBSD.org

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"