VirtualBox

Ignore:
Timestamp:
Dec 13, 2008 10:06:40 PM (16 years ago)
Author:
vboxsync
Message:

slirp: style, dead code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/ip.h

    r15056 r15450  
    122122#define IPTOS_RELIABILITY       0x04
    123123
    124 /*
    125  * Definitions for options.
    126  */
    127 #define IPOPT_COPIED(o)         ((o)&0x80)
    128 #define IPOPT_CLASS(o)          ((o)&0x60)
    129 #define IPOPT_NUMBER(o)         ((o)&0x1f)
    130 
    131 #define IPOPT_CONTROL           0x00
    132 #define IPOPT_RESERVED1         0x20
    133 #define IPOPT_DEBMEAS           0x40
    134 #define IPOPT_RESERVED2         0x60
    135 
    136 #define IPOPT_EOL               0     /* end of option list */
    137 #define IPOPT_NOP               1     /* no operation */
    138 
    139 #define IPOPT_RR                7     /* record packet route */
    140 #define IPOPT_TS                68    /* timestamp */
    141 #define IPOPT_SECURITY          130   /* provide s,c,h,tcc */
    142 #define IPOPT_LSRR              131   /* loose source route */
    143 #define IPOPT_SATID             136   /* satnet id */
    144 #define IPOPT_SSRR              137   /* strict source route */
    145 
    146 /*
    147  * Offsets to fields in options other than EOL and NOP.
    148  */
    149 #define IPOPT_OPTVAL            0     /* option ID */
    150 #define IPOPT_OLEN              1     /* option length */
    151 #define IPOPT_OFFSET            2     /* offset within option */
    152 #define IPOPT_MINOFF            4     /* min value of above */
    153124
    154125/*
     
    188159};
    189160AssertCompileSize(struct ip_timestamp, 12);
    190 
    191 /* flag bits for ipt_flg */
    192 #define IPOPT_TS_TSONLY         0     /* timestamps only */
    193 #define IPOPT_TS_TSANDADDR      1     /* timestamps and addresses */
    194 #define IPOPT_TS_PRESPEC        3     /* specified modules only */
    195 
    196 /* bits for security (not byte swapped) */
    197 #define IPOPT_SECUR_UNCLASS     0x0000
    198 #define IPOPT_SECUR_CONFID      0xf135
    199 #define IPOPT_SECUR_EFTO        0x789a
    200 #define IPOPT_SECUR_MMMM        0xbc4d
    201 #define IPOPT_SECUR_RESTR       0xaf13
    202 #define IPOPT_SECUR_SECRET      0xd788
    203 #define IPOPT_SECUR_TOPSECRET   0x6bc5
    204161
    205162/*
     
    335292
    336293#endif /* !VBOX_WITH_BSD_REASS */
    337 
    338 /*
    339  * Structure stored in mbuf in inpcb.ip_options
    340  * and passed to ip_output when ip options are in use.
    341  * The actual length of the options (including ipopt_dst)
    342  * is in m_len.
    343  */
    344 #define MAX_IPOPTLEN    40
    345 
    346 struct ipoption
    347 {
    348     struct in_addr ipopt_dst;      /* first-hop dst if source routed */
    349     int8_t         ipopt_list[MAX_IPOPTLEN]; /* options proper */
    350 };
    351294
    352295/*
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette