Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
iproute2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
iproute2
Commits
4806867a
Commit
4806867a
authored
Feb 17, 2014
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kill spaces before tabs
parent
0612519e
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
29 additions
and
29 deletions
+29
-29
ip/ip.c
ip/ip.c
+1
-1
ip/ipaddress.c
ip/ipaddress.c
+3
-3
ip/ipaddrlabel.c
ip/ipaddrlabel.c
+2
-2
ip/iplink_can.c
ip/iplink_can.c
+1
-1
ip/ipneigh.c
ip/ipneigh.c
+3
-3
ip/ipntable.c
ip/ipntable.c
+2
-2
ip/iproute.c
ip/iproute.c
+6
-6
ip/iprule.c
ip/iprule.c
+4
-4
ip/xfrm_policy.c
ip/xfrm_policy.c
+1
-1
ip/xfrm_state.c
ip/xfrm_state.c
+6
-6
No files found.
ip/ip.c
View file @
4806867a
...
@@ -65,7 +65,7 @@ static const struct cmd {
...
@@ -65,7 +65,7 @@ static const struct cmd {
const
char
*
cmd
;
const
char
*
cmd
;
int
(
*
func
)(
int
argc
,
char
**
argv
);
int
(
*
func
)(
int
argc
,
char
**
argv
);
}
cmds
[]
=
{
}
cmds
[]
=
{
{
"address"
,
do_ipaddr
},
{
"address"
,
do_ipaddr
},
{
"addrlabel"
,
do_ipaddrlabel
},
{
"addrlabel"
,
do_ipaddrlabel
},
{
"maddress"
,
do_multiaddr
},
{
"maddress"
,
do_multiaddr
},
{
"route"
,
do_iproute
},
{
"route"
,
do_iproute
},
...
...
ip/ipaddress.c
View file @
4806867a
...
@@ -1277,9 +1277,9 @@ static int default_scope(inet_prefix *lcl)
...
@@ -1277,9 +1277,9 @@ static int default_scope(inet_prefix *lcl)
static
int
ipaddr_modify
(
int
cmd
,
int
flags
,
int
argc
,
char
**
argv
)
static
int
ipaddr_modify
(
int
cmd
,
int
flags
,
int
argc
,
char
**
argv
)
{
{
struct
{
struct
{
struct
nlmsghdr
n
;
struct
nlmsghdr
n
;
struct
ifaddrmsg
ifa
;
struct
ifaddrmsg
ifa
;
char
buf
[
256
];
char
buf
[
256
];
}
req
;
}
req
;
char
*
d
=
NULL
;
char
*
d
=
NULL
;
char
*
l
=
NULL
;
char
*
l
=
NULL
;
...
...
ip/ipaddrlabel.c
View file @
4806867a
...
@@ -125,9 +125,9 @@ static int ipaddrlabel_list(int argc, char **argv)
...
@@ -125,9 +125,9 @@ static int ipaddrlabel_list(int argc, char **argv)
static
int
ipaddrlabel_modify
(
int
cmd
,
int
argc
,
char
**
argv
)
static
int
ipaddrlabel_modify
(
int
cmd
,
int
argc
,
char
**
argv
)
{
{
struct
{
struct
{
struct
nlmsghdr
n
;
struct
nlmsghdr
n
;
struct
ifaddrlblmsg
ifal
;
struct
ifaddrlblmsg
ifal
;
char
buf
[
1024
];
char
buf
[
1024
];
}
req
;
}
req
;
inet_prefix
prefix
;
inet_prefix
prefix
;
...
...
ip/iplink_can.c
View file @
4806867a
...
@@ -279,5 +279,5 @@ struct link_util can_link_util = {
...
@@ -279,5 +279,5 @@ struct link_util can_link_util = {
.
maxattr
=
IFLA_CAN_MAX
,
.
maxattr
=
IFLA_CAN_MAX
,
.
parse_opt
=
can_parse_opt
,
.
parse_opt
=
can_parse_opt
,
.
print_opt
=
can_print_opt
,
.
print_opt
=
can_print_opt
,
.
print_xstats
=
can_print_xstats
,
.
print_xstats
=
can_print_xstats
,
};
};
ip/ipneigh.c
View file @
4806867a
...
@@ -95,9 +95,9 @@ static int flush_update(void)
...
@@ -95,9 +95,9 @@ static int flush_update(void)
static
int
ipneigh_modify
(
int
cmd
,
int
flags
,
int
argc
,
char
**
argv
)
static
int
ipneigh_modify
(
int
cmd
,
int
flags
,
int
argc
,
char
**
argv
)
{
{
struct
{
struct
{
struct
nlmsghdr
n
;
struct
nlmsghdr
n
;
struct
ndmsg
ndm
;
struct
ndmsg
ndm
;
char
buf
[
256
];
char
buf
[
256
];
}
req
;
}
req
;
char
*
d
=
NULL
;
char
*
d
=
NULL
;
int
dst_ok
=
0
;
int
dst_ok
=
0
;
...
...
ip/ipntable.c
View file @
4806867a
...
@@ -63,9 +63,9 @@ static void usage(void)
...
@@ -63,9 +63,9 @@ static void usage(void)
static
int
ipntable_modify
(
int
cmd
,
int
flags
,
int
argc
,
char
**
argv
)
static
int
ipntable_modify
(
int
cmd
,
int
flags
,
int
argc
,
char
**
argv
)
{
{
struct
{
struct
{
struct
nlmsghdr
n
;
struct
nlmsghdr
n
;
struct
ndtmsg
ndtm
;
struct
ndtmsg
ndtm
;
char
buf
[
1024
];
char
buf
[
1024
];
}
req
;
}
req
;
char
*
namep
=
NULL
;
char
*
namep
=
NULL
;
char
*
threshsp
=
NULL
;
char
*
threshsp
=
NULL
;
...
...
ip/iproute.c
View file @
4806867a
...
@@ -708,9 +708,9 @@ static int parse_nexthops(struct nlmsghdr *n, struct rtmsg *r,
...
@@ -708,9 +708,9 @@ static int parse_nexthops(struct nlmsghdr *n, struct rtmsg *r,
static
int
iproute_modify
(
int
cmd
,
unsigned
flags
,
int
argc
,
char
**
argv
)
static
int
iproute_modify
(
int
cmd
,
unsigned
flags
,
int
argc
,
char
**
argv
)
{
{
struct
{
struct
{
struct
nlmsghdr
n
;
struct
nlmsghdr
n
;
struct
rtmsg
r
;
struct
rtmsg
r
;
char
buf
[
1024
];
char
buf
[
1024
];
}
req
;
}
req
;
char
mxbuf
[
256
];
char
mxbuf
[
256
];
struct
rtattr
*
mxrta
=
(
void
*
)
mxbuf
;
struct
rtattr
*
mxrta
=
(
void
*
)
mxbuf
;
...
@@ -1376,9 +1376,9 @@ static int iproute_list_flush_or_save(int argc, char **argv, int action)
...
@@ -1376,9 +1376,9 @@ static int iproute_list_flush_or_save(int argc, char **argv, int action)
static
int
iproute_get
(
int
argc
,
char
**
argv
)
static
int
iproute_get
(
int
argc
,
char
**
argv
)
{
{
struct
{
struct
{
struct
nlmsghdr
n
;
struct
nlmsghdr
n
;
struct
rtmsg
r
;
struct
rtmsg
r
;
char
buf
[
1024
];
char
buf
[
1024
];
}
req
;
}
req
;
char
*
idev
=
NULL
;
char
*
idev
=
NULL
;
char
*
odev
=
NULL
;
char
*
odev
=
NULL
;
...
...
ip/iprule.c
View file @
4806867a
...
@@ -130,7 +130,7 @@ int print_rule(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
...
@@ -130,7 +130,7 @@ int print_rule(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
fprintf
(
fp
,
"tos %s "
,
rtnl_dsfield_n2a
(
r
->
rtm_tos
,
b1
,
sizeof
(
b1
)));
fprintf
(
fp
,
"tos %s "
,
rtnl_dsfield_n2a
(
r
->
rtm_tos
,
b1
,
sizeof
(
b1
)));
}
}
if
(
tb
[
FRA_FWMARK
]
||
tb
[
FRA_FWMASK
])
{
if
(
tb
[
FRA_FWMARK
]
||
tb
[
FRA_FWMASK
])
{
__u32
mark
=
0
,
mask
=
0
;
__u32
mark
=
0
,
mask
=
0
;
if
(
tb
[
FRA_FWMARK
])
if
(
tb
[
FRA_FWMARK
])
...
@@ -243,9 +243,9 @@ static int iprule_modify(int cmd, int argc, char **argv)
...
@@ -243,9 +243,9 @@ static int iprule_modify(int cmd, int argc, char **argv)
{
{
int
table_ok
=
0
;
int
table_ok
=
0
;
struct
{
struct
{
struct
nlmsghdr
n
;
struct
nlmsghdr
n
;
struct
rtmsg
r
;
struct
rtmsg
r
;
char
buf
[
1024
];
char
buf
[
1024
];
}
req
;
}
req
;
memset
(
&
req
,
0
,
sizeof
(
req
));
memset
(
&
req
,
0
,
sizeof
(
req
));
...
...
ip/xfrm_policy.c
View file @
4806867a
...
@@ -961,7 +961,7 @@ static int xfrm_spd_getinfo(int argc, char **argv)
...
@@ -961,7 +961,7 @@ static int xfrm_spd_getinfo(int argc, char **argv)
struct
{
struct
{
struct
nlmsghdr
n
;
struct
nlmsghdr
n
;
__u32
flags
;
__u32
flags
;
char
ans
[
128
];
char
ans
[
128
];
}
req
;
}
req
;
memset
(
&
req
,
0
,
sizeof
(
req
));
memset
(
&
req
,
0
,
sizeof
(
req
));
...
...
ip/xfrm_state.c
View file @
4806867a
...
@@ -268,9 +268,9 @@ static int xfrm_state_modify(int cmd, unsigned flags, int argc, char **argv)
...
@@ -268,9 +268,9 @@ static int xfrm_state_modify(int cmd, unsigned flags, int argc, char **argv)
{
{
struct
rtnl_handle
rth
;
struct
rtnl_handle
rth
;
struct
{
struct
{
struct
nlmsghdr
n
;
struct
nlmsghdr
n
;
struct
xfrm_usersa_info
xsinfo
;
struct
xfrm_usersa_info
xsinfo
;
char
buf
[
RTA_BUF_SIZE
];
char
buf
[
RTA_BUF_SIZE
];
}
req
;
}
req
;
struct
xfrm_replay_state
replay
;
struct
xfrm_replay_state
replay
;
char
*
idp
=
NULL
;
char
*
idp
=
NULL
;
...
@@ -655,9 +655,9 @@ static int xfrm_state_allocspi(int argc, char **argv)
...
@@ -655,9 +655,9 @@ static int xfrm_state_allocspi(int argc, char **argv)
{
{
struct
rtnl_handle
rth
;
struct
rtnl_handle
rth
;
struct
{
struct
{
struct
nlmsghdr
n
;
struct
nlmsghdr
n
;
struct
xfrm_userspi_info
xspi
;
struct
xfrm_userspi_info
xspi
;
char
buf
[
RTA_BUF_SIZE
];
char
buf
[
RTA_BUF_SIZE
];
}
req
;
}
req
;
char
*
idp
=
NULL
;
char
*
idp
=
NULL
;
char
*
minp
=
NULL
;
char
*
minp
=
NULL
;
...
@@ -912,9 +912,9 @@ static int xfrm_state_get_or_delete(int argc, char **argv, int delete)
...
@@ -912,9 +912,9 @@ static int xfrm_state_get_or_delete(int argc, char **argv, int delete)
{
{
struct
rtnl_handle
rth
;
struct
rtnl_handle
rth
;
struct
{
struct
{
struct
nlmsghdr
n
;
struct
nlmsghdr
n
;
struct
xfrm_usersa_id
xsid
;
struct
xfrm_usersa_id
xsid
;
char
buf
[
RTA_BUF_SIZE
];
char
buf
[
RTA_BUF_SIZE
];
}
req
;
}
req
;
struct
xfrm_id
id
;
struct
xfrm_id
id
;
char
*
idp
=
NULL
;
char
*
idp
=
NULL
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment