Commit 39dccd9d authored by Al Viro's avatar Al Viro Committed by David S. Miller

[IPV4]: route.h annotations

ip_route_connect(), ip_route_newports() get port numbers net-endian
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 35986b32
...@@ -146,7 +146,7 @@ static inline char rt_tos2priority(u8 tos) ...@@ -146,7 +146,7 @@ static inline char rt_tos2priority(u8 tos)
static inline int ip_route_connect(struct rtable **rp, __be32 dst, static inline int ip_route_connect(struct rtable **rp, __be32 dst,
__be32 src, u32 tos, int oif, u8 protocol, __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, struct flowi fl = { .oif = oif,
.nl_u = { .ip4_u = { .daddr = dst, .nl_u = { .ip4_u = { .daddr = dst,
...@@ -172,7 +172,7 @@ static inline int ip_route_connect(struct rtable **rp, __be32 dst, ...@@ -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, 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 || if (sport != (*rp)->fl.fl_ip_sport ||
dport != (*rp)->fl.fl_ip_dport) { dport != (*rp)->fl.fl_ip_dport) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment