FreeBSD Bugzilla – Attachment 173509 Details for
Bug 211730
pf uses 32bit value for bandwith with altq
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch Makes pf_ifspeed.baudrate uint64_t
patch_pf.diff (text/plain), 819 bytes, created by
Mahdi Mokhtari
on 2016-08-10 14:13:14 UTC
(
hide
)
Description:
Patch Makes pf_ifspeed.baudrate uint64_t
Filename:
MIME Type:
Creator:
Mahdi Mokhtari
Created:
2016-08-10 14:13:14 UTC
Size:
819 bytes
patch
obsolete
>Index: sbin/pfctl/pfctl_altq.c >=================================================================== >--- sbin/pfctl/pfctl_altq.c (revision 303910) >+++ sbin/pfctl/pfctl_altq.c (working copy) >@@ -1326,7 +1326,7 @@ > errx(1, "getifspeed: strlcpy"); > if (ioctl(pfdev, DIOCGIFSPEED, &io) == -1) > err(1, "DIOCGIFSPEED"); >- return ((u_int32_t)io.baudrate); >+ return ((u_int64_t)io.baudrate); > } > #else > u_int32_t >Index: sys/net/pfvar.h >=================================================================== >--- sys/net/pfvar.h (revision 303910) >+++ sys/net/pfvar.h (working copy) >@@ -1439,7 +1439,7 @@ > #define DIOCKILLSRCNODES _IOWR('D', 91, struct pfioc_src_node_kill) > struct pf_ifspeed { > char ifname[IFNAMSIZ]; >- u_int32_t baudrate; >+ u_int64_t baudrate; > }; > #define DIOCGIFSPEED _IOWR('D', 92, struct pf_ifspeed) >
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 211730
: 173509