Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 54492 Details for
Bug 86729
Bug in iproute2 (2.6.11.20050310) breaks dsmark qdiscs
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
A patch to fix the dsmark qdisc problems in tc
fix-rta_align.patch (text/plain), 1.20 KB, created by
dswhite42
on 2005-03-25 19:10:53 UTC
(
hide
)
Description:
A patch to fix the dsmark qdisc problems in tc
Filename:
MIME Type:
Creator:
dswhite42
Created:
2005-03-25 19:10:53 UTC
Size:
1.20 KB
patch
obsolete
>diff -urN a/lib/libnetlink.c b/lib/libnetlink.c >--- a/lib/libnetlink.c 2005-03-20 17:19:53 +01:00 >+++ b/lib/libnetlink.c 2005-03-20 17:19:53 +01:00 >@@ -491,7 +491,7 @@ > int len = RTA_LENGTH(alen); > struct rtattr *rta; > >- if (NLMSG_ALIGN(n->nlmsg_len) + len > maxlen) { >+ if (NLMSG_ALIGN(n->nlmsg_len) + RTA_ALIGN(len) > maxlen) { > fprintf(stderr, "addattr_l ERROR: message exceeded bound of %d\n",maxlen); > return -1; > } >@@ -499,7 +499,7 @@ > rta->rta_type = type; > rta->rta_len = len; > memcpy(RTA_DATA(rta), data, alen); >- n->nlmsg_len = NLMSG_ALIGN(n->nlmsg_len) + len; >+ n->nlmsg_len = NLMSG_ALIGN(n->nlmsg_len) + RTA_ALIGN(len); > return 0; > } > >@@ -539,7 +539,7 @@ > struct rtattr *subrta; > int len = RTA_LENGTH(alen); > >- if (RTA_ALIGN(rta->rta_len) + len > maxlen) { >+ if (RTA_ALIGN(rta->rta_len) + RTA_ALIGN(len) > maxlen) { > fprintf(stderr,"rta_addattr_l: Error! max allowed bound %d exceeded\n",maxlen); > return -1; > } >@@ -547,7 +547,7 @@ > subrta->rta_type = type; > subrta->rta_len = len; > memcpy(RTA_DATA(subrta), data, alen); >- rta->rta_len = NLMSG_ALIGN(rta->rta_len) + len; >+ rta->rta_len = NLMSG_ALIGN(rta->rta_len) + RTA_ALIGN(len); > return 0; > } >
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 86729
: 54492