aboutsummaryrefslogtreecommitdiffstats
path: root/net/decnet
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2007-02-09 18:46:30 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2007-02-11 02:20:31 -0500
commit11a2254716255c6f9cd98e0e0e8f44df9b13b66c (patch)
tree21c5a91330d36824df018a678aaeaa443c6b09fa /net/decnet
parent95f30b336b944e3e418f825044b4793d9e9aac09 (diff)
[DECNET]: FRA_{DST,SRC} are le16 for decnet
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/decnet')
-rw-r--r--net/decnet/dn_rules.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/net/decnet/dn_rules.c b/net/decnet/dn_rules.c
index e32d0c3d5a96..b6c98ac93dc8 100644
--- a/net/decnet/dn_rules.c
+++ b/net/decnet/dn_rules.c
@@ -151,10 +151,10 @@ static int dn_fib_rule_configure(struct fib_rule *rule, struct sk_buff *skb,
151 } 151 }
152 152
153 if (tb[FRA_SRC]) 153 if (tb[FRA_SRC])
154 r->src = nla_get_u16(tb[FRA_SRC]); 154 r->src = nla_get_le16(tb[FRA_SRC]);
155 155
156 if (tb[FRA_DST]) 156 if (tb[FRA_DST])
157 r->dst = nla_get_u16(tb[FRA_DST]); 157 r->dst = nla_get_le16(tb[FRA_DST]);
158 158
159 r->src_len = frh->src_len; 159 r->src_len = frh->src_len;
160 r->srcmask = dnet_make_mask(r->src_len); 160 r->srcmask = dnet_make_mask(r->src_len);
@@ -176,10 +176,10 @@ static int dn_fib_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh,
176 if (frh->dst_len && (r->dst_len != frh->dst_len)) 176 if (frh->dst_len && (r->dst_len != frh->dst_len))
177 return 0; 177 return 0;
178 178
179 if (tb[FRA_SRC] && (r->src != nla_get_u16(tb[FRA_SRC]))) 179 if (tb[FRA_SRC] && (r->src != nla_get_le16(tb[FRA_SRC])))
180 return 0; 180 return 0;
181 181
182 if (tb[FRA_DST] && (r->dst != nla_get_u16(tb[FRA_DST]))) 182 if (tb[FRA_DST] && (r->dst != nla_get_le16(tb[FRA_DST])))
183 return 0; 183 return 0;
184 184
185 return 1; 185 return 1;
@@ -214,9 +214,9 @@ static int dn_fib_rule_fill(struct fib_rule *rule, struct sk_buff *skb,
214 frh->tos = 0; 214 frh->tos = 0;
215 215
216 if (r->dst_len) 216 if (r->dst_len)
217 NLA_PUT_U16(skb, FRA_DST, r->dst); 217 NLA_PUT_LE16(skb, FRA_DST, r->dst);
218 if (r->src_len) 218 if (r->src_len)
219 NLA_PUT_U16(skb, FRA_SRC, r->src); 219 NLA_PUT_LE16(skb, FRA_SRC, r->src);
220 220
221 return 0; 221 return 0;
222 222