Skip to content

Commit

Permalink
Fix IPTOS_CLASS definition.
Browse files Browse the repository at this point in the history
(cherry picked from commit 15bac72)
  • Loading branch information
Ulrich Drepper authored and Andreas Schwab committed Dec 6, 2010
1 parent 5657e17 commit 745cb72
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2010-08-11 Ulrich Drepper <drepper@redhat.com>

[BZ #11903]
* sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
Patch by Evgeni Bikov <bikovevg@iitp.ru>.

2010-08-21 Mike Frysinger <vapier@gentoo.org>

* configure.in: Move assembler checks to before sysdep dir checking.
Expand Down
5 changes: 2 additions & 3 deletions sysdeps/generic/netinet/ip.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* Copyright (C) 1991,92,93,95,96,97,98,99,2000,2009 Free Software
Foundation, Inc.
/* Copyright (C) 1991-1993,1995-2000,2009,2010 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -194,7 +193,7 @@ struct ip_timestamp
*/

#define IPTOS_CLASS_MASK 0xe0
#define IPTOS_CLASS(class) ((tos) & IPTOS_CLASS_MASK)
#define IPTOS_CLASS(class) ((class) & IPTOS_CLASS_MASK)
#define IPTOS_CLASS_CS0 0x00
#define IPTOS_CLASS_CS1 0x20
#define IPTOS_CLASS_CS2 0x40
Expand Down

0 comments on commit 745cb72

Please sign in to comment.