Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 78288
b: refs/heads/master
c: 3c3f486
h: refs/heads/master
v: v3
  • Loading branch information
Jan Engelhardt authored and David S. Miller committed Jan 28, 2008
1 parent 6151adb commit dd0cb9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4c37799ccf6c722e0dad6a0677af22d1c23fb897
refs/heads/master: 3c3f486603438130b93b33acd92db0f994ec3e55
6 changes: 3 additions & 3 deletions trunk/include/net/dsfield.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
#include <asm/byteorder.h>


static inline __u8 ipv4_get_dsfield(struct iphdr *iph)
static inline __u8 ipv4_get_dsfield(const struct iphdr *iph)
{
return iph->tos;
}


static inline __u8 ipv6_get_dsfield(struct ipv6hdr *ipv6h)
static inline __u8 ipv6_get_dsfield(const struct ipv6hdr *ipv6h)
{
return ntohs(*(__be16 *) ipv6h) >> 4;
return ntohs(*(const __be16 *)ipv6h) >> 4;
}


Expand Down

0 comments on commit dd0cb9b

Please sign in to comment.