~ubuntu-branches/ubuntu/trusty/libnl3/trusty

« back to all changes in this revision

Viewing changes to doc/src/examples/nla_flag.c

  • Committer: Bazaar Package Importer
  • Author(s): Heiko Stuebner
  • Date: 2011-05-21 19:25:13 UTC
  • Revision ID: james.westby@ubuntu.com-20110521192513-1ieyu9w9kym4bt16
Tags: upstream-3.0
ImportĀ upstreamĀ versionĀ 3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* nla_put_flag() appends a zero sized attribute to the message. */
 
2
nla_put_flag(msg, ATTR_FLAG);
 
3
 
 
4
 
 
5
/* There is no need for a receival function, the presence is the value. */
 
6
if (attrs[ATTR_FLAG])
 
7
        /* flag is present */