~ubuntu-branches/ubuntu/precise/iproute/precise

« back to all changes in this revision

Viewing changes to include/libnetlink.h

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Wirt, Andreas Henriksson, Ben Finney, Justin Pryzby, Daniel Silverstone, Alexander Wirt
  • Date: 2007-12-16 14:30:31 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20071216143031-cbd111kybw3o9mpv
Tags: 20071016-1
[ Andreas Henriksson ]
* New upstream release (v2.6.23 aka snapshot 071016) (Closes: #445944)
  - time2tick overflow patch applied upstream (Closes: #175462)
  - tc ematch cmp/nbyte help patch applied upstream (Closes: #438653)
  - mpath support dropped upstream (Closes: #428440, #428442)
  - new manpages included upstream (Closes: #438994)
  - linux header files updated to v2.6.23 (Closes: #409047)
* Drop patches which has been applied upstream or deprecated by
  upstream changes.
  - debian/patches/lartc applied upstream.
  - debian/patches/netbug_fix deprecated, upstream dropped netbug script.
  - debian/patches/empty_linkname.dpatch deprecated, fixed upstream.
* Add .dpatch suffix to wrr-qdisc patch to make dpatch-edit-patch work.
* Update patches to apply:
  - wrr-qdisc, moo, ip_route_usage
* Don't install removed netbug script.
* Fix corruption when using batch files with comments and broken
  lines. (cherry-picked from upstream. Closes: #398912)
* Update build-dependencies:
  - libdb4.3-dev -> libdb-dev. (Closes: #442653)
  - linux-kernel-headers -> linux-libc-dev.
* Drop debian/patches/ip_address_flush_loop.dpatch,
  instead we'll use Daniel Silverstones patch imported from Ubuntu.
* Add Homepage and Vcs-{Browser,Git} fields to debian/control.
* Remove dead/leftover code from tc/q_htb.c, include/linux/pkt_sched.h
* Remove outdated README.Debian.
* Drop our own (buggy) RTAX_INITCWND support, in favor of upstreams.
* fix dotted-quad support patch to work on big-endian.
  (upstream applied a broken patch, which we cherry-picked for #357172)

[ Ben Finney ]
* Add dh_md5sums to generate md5sums control file (Closes: #439439)

[ Justin Pryzby ]
* ss(8) manpage formatting breaks EXAMPLE (Closes: #443071)

[ Daniel Silverstone ]
* Avoid infinite loop in ip addr flush.

[ Alexander Wirt ]
* Add Andreas Henriksson to uploaders
* Bump standards version
* Support dotted-quad netmasks in iproute (Closes: #357172) (Cherry picked
  from upstream)

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
extern int addattr32(struct nlmsghdr *n, int maxlen, int type, __u32 data);
40
40
extern int addattr_l(struct nlmsghdr *n, int maxlen, int type, const void *data, int alen);
41
41
extern int addraw_l(struct nlmsghdr *n, int maxlen, const void *data, int len);
 
42
extern struct rtattr *addattr_nest(struct nlmsghdr *n, int maxlen, int type);
 
43
extern int addattr_nest_end(struct nlmsghdr *n, struct rtattr *nest);
 
44
extern struct rtattr *addattr_nest_compat(struct nlmsghdr *n, int maxlen, int type, const void *data, int len);
 
45
extern int addattr_nest_compat_end(struct nlmsghdr *n, struct rtattr *nest);
42
46
extern int rta_addattr32(struct rtattr *rta, int maxlen, int type, __u32 data);
43
47
extern int rta_addattr_l(struct rtattr *rta, int maxlen, int type, const void *data, int alen);
44
48
 
45
49
extern int parse_rtattr(struct rtattr *tb[], int max, struct rtattr *rta, int len);
46
50
extern int parse_rtattr_byindex(struct rtattr *tb[], int max, struct rtattr *rta, int len);
 
51
extern int __parse_rtattr_nested_compat(struct rtattr *tb[], int max, struct rtattr *rta, int len);
47
52
 
48
53
#define parse_rtattr_nested(tb, max, rta) \
49
54
        (parse_rtattr((tb), (max), RTA_DATA(rta), RTA_PAYLOAD(rta)))
50
55
 
 
56
#define parse_rtattr_nested_compat(tb, max, rta, data, len) \
 
57
({      data = RTA_PAYLOAD(rta) >= len ? RTA_DATA(rta) : NULL; \
 
58
        __parse_rtattr_nested_compat(tb, max, rta, len); })
 
59
 
51
60
extern int rtnl_listen(struct rtnl_handle *, rtnl_filter_t handler,
52
61
                       void *jarg);
53
62
extern int rtnl_from_file(FILE *, rtnl_filter_t handler,