Skip to content

Commit

Permalink
[IPV4]: route.h annotations
Browse files Browse the repository at this point in the history
ip_route_connect(), ip_route_newports() get port numbers net-endian

Signed-off-by: Al Viro <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Al Viro authored and David S. Miller committed Sep 29, 2006
1 parent 35986b3 commit 39dccd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/net/route.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ static inline char rt_tos2priority(u8 tos)

static inline int ip_route_connect(struct rtable **rp, __be32 dst,
__be32 src, u32 tos, int oif, u8 protocol,
u16 sport, u16 dport, struct sock *sk)
__be16 sport, __be16 dport, struct sock *sk)
{
struct flowi fl = { .oif = oif,
.nl_u = { .ip4_u = { .daddr = dst,
Expand All @@ -172,7 +172,7 @@ static inline int ip_route_connect(struct rtable **rp, __be32 dst,
}

static inline int ip_route_newports(struct rtable **rp, u8 protocol,
u16 sport, u16 dport, struct sock *sk)
__be16 sport, __be16 dport, struct sock *sk)
{
if (sport != (*rp)->fl.fl_ip_sport ||
dport != (*rp)->fl.fl_ip_dport) {
Expand Down

0 comments on commit 39dccd9

Please sign in to comment.