~logan/ubuntu/raring/iproute/debian-merge

« back to all changes in this revision

Viewing changes to include/linux/rtnetlink.h

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Henriksson
  • Date: 2010-04-18 18:51:12 UTC
  • mfrom: (1.1.10 upstream) (3.1.8 sid)
  • Revision ID: james.westby@ubuntu.com-20100418185112-mjxyjdcszu5g0lcg
Tags: 20100224-5
* Add patch (applied upstream): build m_xt as a tc module
* Install /usr/lib/tc/m_ipt.so symlink (to m_xt.so)
* Exclude m_ipt.so / m_xt.so from dh_shlibdeps
* Add note about tc filter action ipt needs iptables installed
  to README.Debian.
  (the above changes closes: #576953)

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
   with attribute type.
128
128
 */
129
129
 
130
 
struct rtattr
131
 
{
 
130
struct rtattr {
132
131
        unsigned short  rta_len;
133
132
        unsigned short  rta_type;
134
133
};
154
153
 *              Definitions used in routing table administration.
155
154
 ****/
156
155
 
157
 
struct rtmsg
158
 
{
 
156
struct rtmsg {
159
157
        unsigned char           rtm_family;
160
158
        unsigned char           rtm_dst_len;
161
159
        unsigned char           rtm_src_len;
171
169
 
172
170
/* rtm_type */
173
171
 
174
 
enum
175
 
{
 
172
enum {
176
173
        RTN_UNSPEC,
177
174
        RTN_UNICAST,            /* Gateway or direct route      */
178
175
        RTN_LOCAL,              /* Accept locally               */
230
227
   could be assigned a value between UNIVERSE and LINK.
231
228
*/
232
229
 
233
 
enum rt_scope_t
234
 
{
 
230
enum rt_scope_t {
235
231
        RT_SCOPE_UNIVERSE=0,
236
232
/* User defined values  */
237
233
        RT_SCOPE_SITE=200,
249
245
 
250
246
/* Reserved table identifiers */
251
247
 
252
 
enum rt_class_t
253
 
{
 
248
enum rt_class_t {
254
249
        RT_TABLE_UNSPEC=0,
255
250
/* User defined values */
256
251
        RT_TABLE_COMPAT=252,
263
258
 
264
259
/* Routing message attributes */
265
260
 
266
 
enum rtattr_type_t
267
 
{
 
261
enum rtattr_type_t {
268
262
        RTA_UNSPEC,
269
263
        RTA_DST,
270
264
        RTA_SRC,
298
292
 * and rtt for different paths from multipath.
299
293
 */
300
294
 
301
 
struct rtnexthop
302
 
{
 
295
struct rtnexthop {
303
296
        unsigned short          rtnh_len;
304
297
        unsigned char           rtnh_flags;
305
298
        unsigned char           rtnh_hops;
325
318
 
326
319
/* RTM_CACHEINFO */
327
320
 
328
 
struct rta_cacheinfo
329
 
{
 
321
struct rta_cacheinfo {
330
322
        __u32   rta_clntref;
331
323
        __u32   rta_lastuse;
332
324
        __s32   rta_expires;
341
333
 
342
334
/* RTM_METRICS --- array of struct rtattr with types of RTAX_* */
343
335
 
344
 
enum
345
 
{
 
336
enum {
346
337
        RTAX_UNSPEC,
347
338
#define RTAX_UNSPEC RTAX_UNSPEC
348
339
        RTAX_LOCK,
381
372
#define RTAX_FEATURE_TIMESTAMP  0x00000004
382
373
#define RTAX_FEATURE_ALLFRAG    0x00000008
383
374
 
384
 
struct rta_session
385
 
{
 
375
struct rta_session {
386
376
        __u8    proto;
387
377
        __u8    pad1;
388
378
        __u16   pad2;
407
397
 *              General form of address family dependent message.
408
398
 ****/
409
399
 
410
 
struct rtgenmsg
411
 
{
 
400
struct rtgenmsg {
412
401
        unsigned char           rtgen_family;
413
402
};
414
403
 
421
410
 * on network protocol.
422
411
 */
423
412
 
424
 
struct ifinfomsg
425
 
{
 
413
struct ifinfomsg {
426
414
        unsigned char   ifi_family;
427
415
        unsigned char   __ifi_pad;
428
416
        unsigned short  ifi_type;               /* ARPHRD_* */
435
423
 *              prefix information 
436
424
 ****/
437
425
 
438
 
struct prefixmsg
439
 
{
 
426
struct prefixmsg {
440
427
        unsigned char   prefix_family;
441
428
        unsigned char   prefix_pad1;
442
429
        unsigned short  prefix_pad2;
457
444
 
458
445
#define PREFIX_MAX      (__PREFIX_MAX - 1)
459
446
 
460
 
struct prefix_cacheinfo
461
 
{
 
447
struct prefix_cacheinfo {
462
448
        __u32   preferred_time;
463
449
        __u32   valid_time;
464
450
};
468
454
 *              Traffic control messages.
469
455
 ****/
470
456
 
471
 
struct tcmsg
472
 
{
 
457
struct tcmsg {
473
458
        unsigned char   tcm_family;
474
459
        unsigned char   tcm__pad1;
475
460
        unsigned short  tcm__pad2;
479
464
        __u32           tcm_info;
480
465
};
481
466
 
482
 
enum
483
 
{
 
467
enum {
484
468
        TCA_UNSPEC,
485
469
        TCA_KIND,
486
470
        TCA_OPTIONS,
502
486
 *              Neighbor Discovery userland options
503
487
 ****/
504
488
 
505
 
struct nduseroptmsg
506
 
{
 
489
struct nduseroptmsg {
507
490
        unsigned char   nduseropt_family;
508
491
        unsigned char   nduseropt_pad1;
509
492
        unsigned short  nduseropt_opts_len;     /* Total length of options */
515
498
        /* Followed by one or more ND options */
516
499
};
517
500
 
518
 
enum
519
 
{
 
501
enum {
520
502
        NDUSEROPT_UNSPEC,
521
503
        NDUSEROPT_SRCADDR,
522
504
        __NDUSEROPT_MAX
596
578
#define RTNLGRP_MAX     (__RTNLGRP_MAX - 1)
597
579
 
598
580
/* TC action piece */
599
 
struct tcamsg
600
 
{
 
581
struct tcamsg {
601
582
        unsigned char   tca_family;
602
583
        unsigned char   tca__pad1;
603
584
        unsigned short  tca__pad2;