public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/11903] New: undefined variable in IPTOS_CLASS macro in sysdeps/generic/netinet/ip.h
@ 2010-08-11 8:56 bikovevg at iitp dot ru
2010-08-11 8:58 ` [Bug libc/11903] " bikovevg at iitp dot ru
2010-08-11 14:45 ` drepper at redhat dot com
0 siblings, 2 replies; 3+ messages in thread
From: bikovevg at iitp dot ru @ 2010-08-11 8:56 UTC (permalink / raw)
To: glibc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1438 bytes --]
Commit dca5d51ebfe240eac1cd030e8c902a25b7a363a5 [1] with commit message
"Define IPTOS_CLASS_* macros according to RFC 2474."
introduced new IPTOS_CLASS macro.
This macro contains an undefined variable (looks like just a typo).
The macro is
#define IPTOS_CLASS(class) ((tos) & IPTOS_CLASS_MASK)
Note the "class" vs "tos" difference.
This leads to compilation errors due to a line like
int precedence = IPTOS_PREC(olsr_cnf->tos);
turns into
int precedence = ((tos) & 0xe0);
and
error: tos undeclared (first use in this function)
[1]
http://repo.or.cz/w/glibc.git/blobdiff/ace4e23f8c495927d3f24554b41560858ee50d4f.
.dca5d51ebfe240eac1cd030e8c902a25b7a363a5:/sysdeps/generic/netinet/ip.h
--
Summary: undefined variable in IPTOS_CLASS macro in
sysdeps/generic/netinet/ip.h
Product: glibc
Version: 2.13
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: bikovevg at iitp dot ru
CC: glibc-bugs at sources dot redhat dot com
GCC build triplet: x86_64-redhat-linux
GCC host triplet: x86_64-redhat-linux
GCC target triplet: x86_64-redhat-linux
http://sourceware.org/bugzilla/show_bug.cgi?id=11903
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-06-30 8:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-11903-131@http.sourceware.org/bugzilla/>
2014-06-30 8:17 ` [Bug libc/11903] undefined variable in IPTOS_CLASS macro in sysdeps/generic/netinet/ip.h fweimer at redhat dot com
2010-08-11 8:56 [Bug libc/11903] New: " bikovevg at iitp dot ru
2010-08-11 8:58 ` [Bug libc/11903] " bikovevg at iitp dot ru
2010-08-11 14:45 ` drepper at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).