[acassen/keepalived] bf0a6a: Add support for iprule and iproute table names

Alexandre Cassen <[email protected]>
Newsgroups gmane.linux.keepalived.devel
Message-ID <56eaaf46218ae_5ae93fd13814b2b831934e@hookshot-fe2-cp1-prd.iad.github.net.mail>
  Branch: refs/heads/master
  Home:   https://github.com/acassen/keepalived
  Commit: bf0a6a79ff81971f1af66ddbcb40f434fc870edb
      https://github.com/acassen/keepalived/commit/bf0a6a79ff81971f1af66ddbcb40f434fc870edb
  Author: Quentin Armitage <[email protected]>
  Date:   2016-03-16 (Wed, 16 Mar 2016)

  Changed paths:
    M keepalived/include/vrrp_iproute.h
    M keepalived/include/vrrp_iprule.h
    M keepalived/vrrp/Makefile.in
    M keepalived/vrrp/vrrp_iproute.c
    M keepalived/vrrp/vrrp_iprule.c
    M lib/Makefile.in
    M lib/parser.c
    A lib/rttables.c
    A lib/rttables.h

  Log Message:
  -----------
  Add support for iprule and iproute table names

Pull request #153 added support for named tables in adding/removing
iprules and iproutes.

This commit updates that pull request to use standard keepalived
functionality, and also to support named tables for iprules. In
addition, it supports table numbers > 255.

When reading a configuration, if there is a static or virtual rule
or route entry, and if the table specified is not numeric, then the
table names/numbers are read from the /etc/iproutes/rt_tables file.
The table names are discarded after the configuration has been read,
and if the configuration is reloaded, then the table names, if needed,
are read again. If there are no rule or route entries, or if they all
specify tables by number, then the table names file is not read.

Signed-off-by: Quentin Armitage <[email protected]>


  Commit: c7c01fb8d7826c3c121c2e4275031a47814645e2
      https://github.com/acassen/keepalived/commit/c7c01fb8d7826c3c121c2e4275031a47814645e2
  Author: Quentin Armitage <[email protected]>
  Date:   2016-03-17 (Thu, 17 Mar 2016)

  Changed paths:
    M lib/rttables.c

  Log Message:
  -----------
  Resolve MALLOC/FREE issues to iprule/iproute table names

Signed-off-by: Quentin Armitage <[email protected]>


  Commit: ee1d6fbb75ed8067fd18840fd7799a2199b2b864
      https://github.com/acassen/keepalived/commit/ee1d6fbb75ed8067fd18840fd7799a2199b2b864
  Author: Quentin Armitage <[email protected]>
  Date:   2016-03-17 (Thu, 17 Mar 2016)

  Changed paths:
    M keepalived/check/check_http.c
    M keepalived/vrrp/vrrp_iproute.c
    M keepalived/vrrp/vrrp_iprule.c
    M keepalived/vrrp/vrrp_iptables_calls.c

  Log Message:
  -----------
  Fix MALLOC'd memory not FREE'd

Signed-off-by: Quentin Armitage <[email protected]>


  Commit: d04c910b473770837c26ef61c9fbf335d7a4826f
      https://github.com/acassen/keepalived/commit/d04c910b473770837c26ef61c9fbf335d7a4826f
  Author: Quentin Armitage <[email protected]>
  Date:   2016-03-17 (Thu, 17 Mar 2016)

  Changed paths:
    M lib/memory.c
    M lib/memory.h

  Log Message:
  -----------
  Make keepalived_malloc return void* to match malloc

Signed-off-by: Quentin Armitage <[email protected]>


  Commit: d1bf5f2a156598663e88915e78ee09bb0f1f5ec9
      https://github.com/acassen/keepalived/commit/d1bf5f2a156598663e88915e78ee09bb0f1f5ec9
  Author: Quentin Armitage <[email protected]>
  Date:   2016-03-17 (Thu, 17 Mar 2016)

  Changed paths:
    M lib/memory.c

  Log Message:
  -----------
  When reporting MALLOC/FREE status on exit, report max MALLOC'd memory

Signed-off-by: Quentin Armitage <[email protected]>


  Commit: fb88ed2078f99e080b8c54580be24b5c85be1724
      https://github.com/acassen/keepalived/commit/fb88ed2078f99e080b8c54580be24b5c85be1724
  Author: Quentin Armitage <[email protected]>
  Date:   2016-03-17 (Thu, 17 Mar 2016)

  Changed paths:
    M keepalived/libipvs-2.4/Makefile.in
    M keepalived/libipvs-2.4/libipvs.c
    M keepalived/libipvs-2.6/Makefile.in
    M keepalived/libipvs-2.6/libipvs.c

  Log Message:
  -----------
  Make libipvs use MALLOC/FREE

There is now no use of malloc()/free() within the code, except in
memory.h/memory.c themselves.

Signed-off-by: Quentin Armitage <[email protected]>


  Commit: fdab125eb39089437174ef9e71a5f97992c24efb
      https://github.com/acassen/keepalived/commit/fdab125eb39089437174ef9e71a5f97992c24efb
  Author: Alexandre Cassen <[email protected]>
  Date:   2016-03-17 (Thu, 17 Mar 2016)

  Changed paths:
    M keepalived/check/check_http.c
    M keepalived/include/vrrp_iproute.h
    M keepalived/include/vrrp_iprule.h
    M keepalived/libipvs-2.4/Makefile.in
    M keepalived/libipvs-2.4/libipvs.c
    M keepalived/libipvs-2.6/Makefile.in
    M keepalived/libipvs-2.6/libipvs.c
    M keepalived/vrrp/Makefile.in
    M keepalived/vrrp/vrrp_iproute.c
    M keepalived/vrrp/vrrp_iprule.c
    M keepalived/vrrp/vrrp_iptables_calls.c
    M lib/Makefile.in
    M lib/memory.c
    M lib/memory.h
    M lib/parser.c
    A lib/rttables.c
    A lib/rttables.h

  Log Message:
  -----------
  Merge pull request #281 from pqarmitage/fixes

Add support for iprule and iproute table names. Also resolve some malloc/free issues.


Compare: https://github.com/acassen/keepalived/compare/d91bfb219b78...fdab125eb390

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140

_______________________________________________
Keepalived-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/keepalived-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.