~ubuntu-branches/ubuntu/saucy/quagga/saucy

« back to all changes in this revision

Viewing changes to lib/vty.c

  • Committer: Bazaar Package Importer
  • Author(s): Stephan Hermann
  • Date: 2007-09-14 09:47:54 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20070914094754-kqi815lcg6n8mh51
Tags: 0.99.9-1ubuntu1
* Merged new upstream version (LP: #139376)
  - Merged debian/changelog
* Fixes a DoS and some bugs introduced in 0.99.8
  (see: http://www.quagga.net/news2.php?y=2007&m=9&d=7#id1189190760)
* Remaining Ubuntu Patches:
  - debian/rules: use bash as shell
  - debian/quagga.prerm: handle upgrades more gracefully
  - debian/patches/81_32bit_u64.dpatch: Define __u64 as uint64_t
    before including the netlink headers, since that symbol does not exist
    by default on 32 bit arches. Fixes i386/powerpc FTBFS.
  - debian/patches/83_ifaddr_defs.dpatch:
    zebra/rt_netlink.c: #include <linux/if_addr.h> and define IF[L]A_RTA
    macros, so that the file compiles again with our kernel headers.
  - debian/patches/20_ht-20061217-0.99.6-bgp-md5.dpatch: updated for
    linux kernel 2.6.20.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1924
1924
  memset (&serv, 0, sizeof (struct sockaddr_un));
1925
1925
  serv.sun_family = AF_UNIX;
1926
1926
  strncpy (serv.sun_path, path, strlen (path));
1927
 
#ifdef HAVE_SUN_LEN
 
1927
#ifdef HAVE_STRUCT_SOCKADDR_UN_SUN_LEN
1928
1928
  len = serv.sun_len = SUN_LEN(&serv);
1929
1929
#else
1930
1930
  len = sizeof (serv.sun_family) + strlen (serv.sun_path);
1931
 
#endif /* HAVE_SUN_LEN */
 
1931
#endif /* HAVE_STRUCT_SOCKADDR_UN_SUN_LEN */
1932
1932
 
1933
1933
  ret = bind (sock, (struct sockaddr *) &serv, len);
1934
1934
  if (ret < 0)