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
41d46674
Commit
41d46674
authored
Feb 05, 2015
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into net-next
parents
9ca23a59
858dbb20
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
ip/link_gre.c
ip/link_gre.c
+10
-1
ip/link_iptnl.c
ip/link_iptnl.c
+10
-1
No files found.
ip/link_gre.c
View file @
41d46674
...
...
@@ -31,7 +31,7 @@ static void print_usage(FILE *f)
fprintf
(
f
,
" [ ttl TTL ] [ tos TOS ] [ [no]pmtudisc ] [ dev PHYS_DEV ]
\n
"
);
fprintf
(
f
,
" [ noencap ] [ encap { fou | gue | none } ]
\n
"
);
fprintf
(
f
,
" [ encap-sport PORT ] [ encap-dport PORT ]
\n
"
);
fprintf
(
f
,
" [ [no]encap-csum ] [ [no]encap-csum6 ]
\n
"
);
fprintf
(
f
,
" [ [no]encap-csum ] [ [no]encap-csum6 ]
[ [no]encap-remcsum ]
\n
"
);
fprintf
(
f
,
"
\n
"
);
fprintf
(
f
,
"Where: NAME := STRING
\n
"
);
fprintf
(
f
,
" ADDR := { IP_ADDRESS | any }
\n
"
);
...
...
@@ -287,6 +287,10 @@ get_failed:
encapflags
|=
TUNNEL_ENCAP_FLAG_CSUM6
;
}
else
if
(
strcmp
(
*
argv
,
"noencap-udp6-csum"
)
==
0
)
{
encapflags
|=
~
TUNNEL_ENCAP_FLAG_CSUM6
;
}
else
if
(
strcmp
(
*
argv
,
"encap-remcsum"
)
==
0
)
{
encapflags
|=
TUNNEL_ENCAP_FLAG_REMCSUM
;
}
else
if
(
strcmp
(
*
argv
,
"noencap-remcsum"
)
==
0
)
{
encapflags
|=
~
TUNNEL_ENCAP_FLAG_REMCSUM
;
}
else
usage
();
argc
--
;
argv
++
;
...
...
@@ -445,6 +449,11 @@ static void gre_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[])
fputs
(
"encap-csum6 "
,
f
);
else
fputs
(
"noencap-csum6 "
,
f
);
if
(
flags
&
TUNNEL_ENCAP_FLAG_REMCSUM
)
fputs
(
"encap-remcsum "
,
f
);
else
fputs
(
"noencap-remcsum "
,
f
);
}
}
...
...
ip/link_iptnl.c
View file @
41d46674
...
...
@@ -31,7 +31,7 @@ static void print_usage(FILE *f, int sit)
fprintf
(
f
,
" [ 6rd-prefix ADDR ] [ 6rd-relay_prefix ADDR ] [ 6rd-reset ]
\n
"
);
fprintf
(
f
,
" [ noencap ] [ encap { fou | gue | none } ]
\n
"
);
fprintf
(
f
,
" [ encap-sport PORT ] [ encap-dport PORT ]
\n
"
);
fprintf
(
f
,
" [ [no]encap-csum ] [ [no]encap-csum6 ]
\n
"
);
fprintf
(
f
,
" [ [no]encap-csum ] [ [no]encap-csum6 ]
[ [no]encap-remcsum ]
\n
"
);
if
(
sit
)
{
fprintf
(
f
,
" [ mode { ip6ip | ipip | any } ]
\n
"
);
fprintf
(
f
,
" [ isatap ]
\n
"
);
...
...
@@ -256,6 +256,10 @@ get_failed:
encapflags
|=
TUNNEL_ENCAP_FLAG_CSUM6
;
}
else
if
(
strcmp
(
*
argv
,
"noencap-udp6-csum"
)
==
0
)
{
encapflags
&=
~
TUNNEL_ENCAP_FLAG_CSUM6
;
}
else
if
(
strcmp
(
*
argv
,
"encap-remcsum"
)
==
0
)
{
encapflags
|=
TUNNEL_ENCAP_FLAG_REMCSUM
;
}
else
if
(
strcmp
(
*
argv
,
"noencap-remcsum"
)
==
0
)
{
encapflags
&=
~
TUNNEL_ENCAP_FLAG_REMCSUM
;
}
else
if
(
strcmp
(
*
argv
,
"6rd-prefix"
)
==
0
)
{
inet_prefix
prefix
;
NEXT_ARG
();
...
...
@@ -438,6 +442,11 @@ static void iptunnel_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[
fputs
(
"encap-csum6 "
,
f
);
else
fputs
(
"noencap-csum6 "
,
f
);
if
(
flags
&
TUNNEL_ENCAP_FLAG_REMCSUM
)
fputs
(
"encap-remcsum "
,
f
);
else
fputs
(
"noencap-remcsum "
,
f
);
}
}
...
...
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