RULE: Add ifdef to FIB_RULE_INVERT since it is missing.
Subsystems (2)
PATCH 3/7 RULE: Add ifdef to FIB_RULE_INVERT since it is missing.
Signed-off-by Masahide NAKAMURA <[email protected]>
--- ip/iprule.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
ip/iprule.c +4 -0
@@ -83,8 +83,10 @@ int print_rule(const struct sockaddr_nlelse fprintf (fp,"0:\t" ); +#ifdef FIB_RULE_INVERT if (r->rtm_flags &FIB_RULE_INVERT )fprintf (fp,"not " ); +#endif if (tb[RTA_SRC ]) {if (r->rtm_src_len != host_len) {
@@ -224,7 +226,9 @@ static int iprule_modify(int cmd, int arwhile (argc >0 ) {if (strcmp (*argv,"not" ) ==0 ) { +#ifdef FIB_RULE_INVERT req.r.rtm_flags |=FIB_RULE_INVERT ; +#endif }else if (strcmp (*argv,"from" ) ==0 ) {inet_prefix dst;NEXT_ARG ();
Signature · 1 line
1.4.2
* Masahide NAKAMURA <[email protected]> 2006-12-05 19:15
Quoted 21 lines
Signed-off-by Masahide NAKAMURA <[email protected]>--- ip/iprule.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)ip/iprule.c +2
-0@@ -83,8 +83,10 @@ int print_rule(const struct sockaddr_nlelse fprintf (fp,"0:\t" ); +#ifdef FIB_RULE_INVERT if (r->rtm_flags &FIB_RULE_INVERT )fprintf (fp,"not " ); +#endif if (tb[RTA_SRC ]) {if (r->rtm_src_len != host_len) {
ip/iprule.c static int iprule_modify(int cmd, int ar · line 234
Quoted 9 lines
ip/iprule.c +2
-0@@ -224,7 +226,9 @@ static int iprule_modify(int cmd, int arwhile (argc >0 ) {if (strcmp (*argv,"not" ) ==0 ) { +#ifdef FIB_RULE_INVERT req.r.rtm_flags |=FIB_RULE_INVERT ; +#endif }else if (strcmp (*argv,"from" ) ==0 ) {inet_prefix dst;NEXT_ARG ();
It's missing because you removed it.
Quoted 23 lines · On Tue, 5 Dec 2006 11:42:31 +0100 Thomas Graf <[email protected]> wrote:
* Masahide NAKAMURA <[email protected]> 2006-12-05 19:15
Quoted 22 lines
Signed-off-by Masahide NAKAMURA <[email protected]>--- ip/iprule.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)ip/iprule.c +2
-0@@ -83,8 +83,10 @@ int print_rule(const struct sockaddr_nlelse fprintf (fp,"0:\t" ); +#ifdef FIB_RULE_INVERT if (r->rtm_flags &FIB_RULE_INVERT )fprintf (fp,"not " ); +#endif if (tb[RTA_SRC ]) {if (r->rtm_src_len != host_len) {@@ -224,7 +226,9 @@ static int iprule_modify(int cmd, int ar
Quoted 10 lines
ip/iprule.c static int iprule_modify(int cmd, int ar · line 234
Quoted 8 lines
ip/iprule.c +2
-0while (argc >0 ) {if (strcmp (*argv,"not" ) ==0 ) { +#ifdef FIB_RULE_INVERT req.r.rtm_flags |=FIB_RULE_INVERT ; +#endif }else if (strcmp (*argv,"from" ) ==0 ) {inet_prefix dst;NEXT_ARG ();It's missing because you removed it.
Not applied, FIB_RULE_INVERT stays
Signature · 1 line
Stephen Hemminger <[email protected]>