Commit 98c81476 authored by Niu Xilei's avatar Niu Xilei Committed by David S. Miller

vxlan: Fix alignment and code style of vxlan.c

Fixed Coding function and style issues
Signed-off-by: default avatarNiu Xilei <niu_xilei@163.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f5e5d272
...@@ -1060,6 +1060,7 @@ static int vxlan_fdb_parse(struct nlattr *tb[], struct vxlan_dev *vxlan, ...@@ -1060,6 +1060,7 @@ static int vxlan_fdb_parse(struct nlattr *tb[], struct vxlan_dev *vxlan,
return err; return err;
} else { } else {
union vxlan_addr *remote = &vxlan->default_dst.remote_ip; union vxlan_addr *remote = &vxlan->default_dst.remote_ip;
if (remote->sa.sa_family == AF_INET) { if (remote->sa.sa_family == AF_INET) {
ip->sin.sin_addr.s_addr = htonl(INADDR_ANY); ip->sin.sin_addr.s_addr = htonl(INADDR_ANY);
ip->sa.sa_family = AF_INET; ip->sa.sa_family = AF_INET;
......
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