Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 313575 Details for
Bug 417797
net-misc/networkmanager-0.8.4.0-r2 - In function 'monitor_cb': nm-ppp-manager.c:307:23: error: storage size of 'req' isn't known
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Upstream patch
nm-ppp-manager.c.patch (text/plain), 1.50 KB, created by
Neil Cathey
on 2012-05-30 04:55:19 UTC
(
hide
)
Description:
Upstream patch
Filename:
MIME Type:
Creator:
Neil Cathey
Created:
2012-05-30 04:55:19 UTC
Size:
1.50 KB
patch
obsolete
>From 6b64e4db2f3c9cfc0e0e240cf0bc58f3b3e90c1f Mon Sep 17 00:00:00 2001 >From: JiÅà KlimeÅ¡ <jklimes@redhat.com> >Date: Wed, 28 Mar 2012 14:42:24 +0000 >Subject: ppp: don't use struct ifpppstatsreq that was removed from linux/ip_ppp.h > >in recent kernels. > >We can use ifreq and ppp_stats structures separately. They needn't have to >to be packed in a structure. >--- >(limited to 'src/ppp-manager/nm-ppp-manager.c') > >diff --git a/src/ppp-manager/nm-ppp-manager.c b/src/ppp-manager/nm-ppp-manager.c >index 59698c3..243d2e1 100644 >--- a/src/ppp-manager/nm-ppp-manager.c >+++ b/src/ppp-manager/nm-ppp-manager.c >@@ -304,18 +304,20 @@ monitor_cb (gpointer user_data) > { > NMPPPManager *manager = NM_PPP_MANAGER (user_data); > NMPPPManagerPrivate *priv = NM_PPP_MANAGER_GET_PRIVATE (manager); >- struct ifpppstatsreq req; >+ struct ifreq req; >+ struct ppp_stats stats; > > memset (&req, 0, sizeof (req)); >- req.stats_ptr = (caddr_t) &req.stats; >+ memset (&stats, 0, sizeof (stats)); >+ req.ifr_data = (caddr_t) &stats; > >- strncpy (req.ifr__name, priv->ip_iface, sizeof (req.ifr__name)); >+ strncpy (req.ifr_name, priv->ip_iface, sizeof (req.ifr_name)); > if (ioctl (priv->monitor_fd, SIOCGPPPSTATS, &req) < 0) { > nm_log_warn (LOGD_PPP, "could not read ppp stats: %s", strerror (errno)); > } else { > g_signal_emit (manager, signals[STATS], 0, >- req.stats.p.ppp_ibytes, >- req.stats.p.ppp_obytes); >+ stats.p.ppp_ibytes, >+ stats.p.ppp_obytes); > } > > return TRUE; >-- >cgit v0.9.0.2-2-gbebe
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 417797
:
313289
| 313575