def to_attr_list(self):
        if self.fwmark_ is None:
            af, addr = _to_af_union(self.vip_)
            netmask = (1 - (1 << 32)) if af == socket.AF_INET else 128
            proto = self.proto_num()
            return IpvsServiceAttrList(af=af, addr=addr, protocol=proto,
                                       netmask=netmask, port=self.port_,
                                       sched_name=self.sched_,
                                       flags=struct.pack(str('=II'), 0, 0))
        else:
            netmask = ((1 << 32) - 1)
            return IpvsServiceAttrList(fwmark=self.fwmark_, af=self.af_,
                                       netmask=netmask, sched_name=self.sched_,
                                       flags=struct.pack(str('=II'), 0, 0))
dataset/ETHPy150Open facebook/gnlpy/ipvs.py/Service.to_attr_list/swapped operands of `-`