]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/ipv4/raw.c
net: use the macros defined for the members of flowi
[net-next-2.6.git] / net / ipv4 / raw.c
index 1f85ef289895a8c2a4a567089ad5bef7c1271dae..a3d5ab786e81bcb09a6e8b3a54cd64537218fd43 100644 (file)
@@ -549,10 +549,9 @@ static int raw_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,
        {
                struct flowi fl = { .oif = ipc.oif,
                                    .mark = sk->sk_mark,
-                                   .nl_u = { .ip4_u =
-                                             { .daddr = daddr,
-                                               .saddr = saddr,
-                                               .tos = tos } },
+                                   .fl4_dst = daddr,
+                                   .fl4_src = saddr,
+                                   .fl4_tos = tos,
                                    .proto = inet->hdrincl ? IPPROTO_RAW :
                                                             sk->sk_protocol,
                                  };