~ubuntu-branches/ubuntu/trusty/keepalived/trusty

« back to all changes in this revision

Viewing changes to keepalived/check/ipvswrapper.c

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Wirt
  • Date: 2005-04-29 23:22:40 UTC
  • mfrom: (1.1.1 upstream) (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050429232240-a8m3jtpi3cvuyyy2
Tags: 1.1.11-3
Added a warning about sarge kernels to README.Debian and 
the package description 

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 * Part:        IPVS Kernel wrapper. Use setsockopt call to add/remove
7
7
 *              server to/from the loadbalanced server pool.
8
8
 *  
9
 
 * Version:     $Id: ipvswrapper.c,v 1.1.7 2004/04/04 23:28:05 acassen Exp $
 
9
 * Version:     $Id: ipvswrapper.c,v 1.1.11 2005/03/01 01:22:13 acassen Exp $
10
10
 * 
11
11
 * Author:      Alexandre Cassen, <acassen@linux-vs.org>
12
12
 *              
20
20
 *               as published by the Free Software Foundation; either version
21
21
 *               2 of the License, or (at your option) any later version.
22
22
 *
23
 
 * Copyright (C) 2001-2004 Alexandre Cassen, <acassen@linux-vs.org>
 
23
 * Copyright (C) 2001-2005 Alexandre Cassen, <acassen@linux-vs.org>
24
24
 */
25
25
 
26
26
#include "ipvswrapper.h"
108
108
 
109
109
        /* SVR specific */
110
110
        if (ctl.m_cmd == IP_MASQ_CMD_ADD_DEST
111
 
            || ctl.m_cmd == IP_MASQ_CMD_DEL_DEST) {
 
111
            || ctl.m_cmd == IP_MASQ_CMD_DEL_DEST
 
112
            || ctl.m_cmd == IP_MASQ_CMD_SET_DEST) {
112
113
                ctl.u.vs_user.weight = rs->weight;
113
114
                ctl.u.vs_user.daddr = SVR_IP(rs);
114
115
                ctl.u.vs_user.dport = SVR_PORT(rs);
325
326
 
326
327
        /* SVR specific */
327
328
        if (rs) {
328
 
                if (cmd == IP_VS_SO_SET_ADDDEST || cmd == IP_VS_SO_SET_DELDEST) {
 
329
                if (cmd == IP_VS_SO_SET_ADDDEST
 
330
                    || cmd == IP_VS_SO_SET_DELDEST
 
331
                    || cmd == IP_VS_SO_SET_EDITDEST) {
329
332
                        urule->weight = rs->weight;
330
333
                        urule->daddr = SVR_IP(rs);
331
334
                        urule->dport = SVR_PORT(rs);