Revision 1772a358 include/AddressRange.h

View differences:

include/AddressRange.h
128 128
    void to_xml(ostringstream &oss, const vector<int>& vms,
129 129
        const vector<int>& vnets, const vector<int>& vrs) const;
130 130

  
131
    /**
132
     *  Same as above but without the LEASES section
133
     */
134
    void to_xml(ostringstream &oss) const;
135

  
136

  
131 137
    // *************************************************************************
132 138
    // Address allocation functions
133 139
    // *************************************************************************
......
364 370
     */
365 371
    int from_attr(VectorAttribute * attr, string& error_msg);
366 372

  
373
    /**
374
     *  Builds an address request representation in XML form:
375
     *  <ADDRESS>
376
     *    <IP>
377
     *    <MAC>
378
     *    <IP6_ULA>
379
     *    <IP6_GLOBAL>
380
     *    <SIZE>
381
     */
382
    void addr_to_xml(unsigned int index, unsigned int size,
383
            ostringstream& oss) const;
384

  
367 385
    /* ---------------------------------------------------------------------- */
368 386
    /* Implementation specific address management interface                   */
369 387
    /* ---------------------------------------------------------------------- */
......
415 433
    /* ---------------------------------------------------------------------- */
416 434
    /* String to binary conversion functions for different address types      */
417 435
    /* ---------------------------------------------------------------------- */
418

  
419 436
    /**
420 437
     *  MAC to binary (48 bits)
421 438
     *    @param mac in string form 00:02:01:02:03:04
......
458 475
     * @param ip6_s Will contain the resulting IPv6 string
459 476
     * @return 0 on success
460 477
     */
461
    int ip6_to_s(const unsigned int prefix[], const unsigned int mac[], string& ip6_s) const;
478
    int ip6_to_s(const unsigned int prefix[], const unsigned int mac[],
479
        string& ip6_s) const;
462 480

  
463 481
    /* ---------------------------------------------------------------------- */
464 482
    /* NIC setup functions                                                    */
465 483
    /* ---------------------------------------------------------------------- */
466

  
467 484
    /**
468 485
     *  Check if the given MAC is valid for this address range by verifying:
469 486
     *    - Correct : notation
......
523 540
    /* ---------------------------------------------------------------------- */
524 541
    /* Address index map helper functions                                     */
525 542
    /* ---------------------------------------------------------------------- */
526

  
527 543
    /**
528 544
     *  This function generates a string representation of the in-memory allocated
529 545
     *  addresses. It'll be stored along side the AR vector attribute in the

Also available in: Unified diff