~kim0/lxc/bug-740167

« back to all changes in this revision

Viewing changes to src/lxc/confile.c

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2011-03-10 07:25:34 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20110310072534-vgwm47kspsdqe5zp
Tags: 0.7.4-0ubuntu1
* New upstream version.
* Refreshed patches, dropped 0005-env.patch since it was already
  accepted upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
423
423
         * prefix and address
424
424
         */
425
425
        if (!bcast) {
426
 
                inetdev->bcast.s_addr =
427
 
                        htonl(INADDR_BROADCAST << (32 - inetdev->prefix));
428
 
                inetdev->bcast.s_addr &= inetdev->addr.s_addr;
 
426
                inetdev->bcast.s_addr = inetdev->addr.s_addr;
 
427
                inetdev->bcast.s_addr |=
 
428
                        htonl(INADDR_BROADCAST >>  inetdev->prefix);
429
429
        }
430
430
 
431
431
        lxc_list_add(&netdev->ipv4, list);