~ubuntu-branches/ubuntu/wily/musl/wily

« back to all changes in this revision

Viewing changes to include/netinet/in.h

  • Committer: Package Import Robot
  • Author(s): Kevin Bortis
  • Date: 2014-03-22 09:39:56 UTC
  • mfrom: (4.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20140322093956-1oc4xt9b2n3domo7
Tags: 1.0.0-1
* Import upstream version 1.0.0
* Provide musl-ldd (Closes: #732169)
* Arch independent ld-musl-config (Closes: #739205)

Show diffs side-by-side

added added

removed removed

Lines of Context:
149
149
        (IN6_IS_ADDR_MULTICAST(a) && ((((uint8_t *) (a))[1] & 0xf) == 0xe))
150
150
 
151
151
#define __ARE_4_EQUAL(a,b) \
152
 
        (!( 0[a]-0[b] | 1[a]-1[b] | 2[a]-2[b] | 3[a]-3[b] ))
 
152
        (!( (0[a]-0[b]) | (1[a]-1[b]) | (2[a]-2[b]) | (3[a]-3[b]) ))
153
153
#define IN6_ARE_ADDR_EQUAL(a,b) \
154
154
        __ARE_4_EQUAL((const uint32_t *)(a), (const uint32_t *)(b))
155
155
 
211
211
#define IP_MULTICAST_ALL   49
212
212
#define IP_UNICAST_IF      50
213
213
 
214
 
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
215
 
#define MCAST_JOIN_GROUP   42
216
 
#define MCAST_BLOCK_SOURCE 43
217
 
#define MCAST_UNBLOCK_SOURCE      44
218
 
#define MCAST_LEAVE_GROUP  45
219
 
#define MCAST_JOIN_SOURCE_GROUP   46
220
 
#define MCAST_LEAVE_SOURCE_GROUP  47
221
 
#define MCAST_MSFILTER     48
222
 
 
223
 
#define MCAST_EXCLUDE 0
224
 
#define MCAST_INCLUDE 1
225
 
#endif
226
 
 
227
214
#define IP_RECVRETOPTS IP_RETOPTS
228
215
 
229
216
#define IP_PMTUDISC_DONT   0
230
217
#define IP_PMTUDISC_WANT   1
231
218
#define IP_PMTUDISC_DO     2
232
219
#define IP_PMTUDISC_PROBE  3
233
 
 
234
 
#define SOL_IP 0
 
220
#define IP_PMTUDISC_INTERFACE 4
235
221
 
236
222
#define IP_DEFAULT_MULTICAST_TTL        1
237
223
#define IP_DEFAULT_MULTICAST_LOOP       1
243
229
        char ip_opts[40];
244
230
};
245
231
 
 
232
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
 
233
 
 
234
#define MCAST_JOIN_GROUP   42
 
235
#define MCAST_BLOCK_SOURCE 43
 
236
#define MCAST_UNBLOCK_SOURCE      44
 
237
#define MCAST_LEAVE_GROUP  45
 
238
#define MCAST_JOIN_SOURCE_GROUP   46
 
239
#define MCAST_LEAVE_SOURCE_GROUP  47
 
240
#define MCAST_MSFILTER     48
 
241
 
 
242
#define MCAST_EXCLUDE 0
 
243
#define MCAST_INCLUDE 1
 
244
 
246
245
struct ip_mreq
247
246
{
248
247
        struct in_addr imr_multiaddr;
273
272
        (sizeof(struct ip_msfilter) - sizeof(struct in_addr) \
274
273
        + (numsrc) * sizeof(struct in_addr))
275
274
 
276
 
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
277
275
struct group_req {
278
276
        uint32_t gr_interface;
279
277
        struct sockaddr_storage gr_group;
295
293
#define GROUP_FILTER_SIZE(numsrc) \
296
294
        (sizeof(struct group_filter) - sizeof(struct sockaddr_storage) \
297
295
        + (numsrc) * sizeof(struct sockaddr_storage))
298
 
#endif
299
296
 
300
297
struct in_pktinfo
301
298
{
315
312
        struct sockaddr_in6 ip6m_addr;
316
313
        uint32_t ip6m_mtu;
317
314
};
 
315
#endif
318
316
 
319
317
#define IPV6_ADDRFORM           1
320
318
#define IPV6_2292PKTINFO        2
324
322
#define IPV6_2292PKTOPTIONS     6
325
323
#define IPV6_CHECKSUM           7
326
324
#define IPV6_2292HOPLIMIT       8
327
 
#define SCM_SRCRT               IPV6_RXSRCRT
328
325
#define IPV6_NEXTHOP            9
329
326
#define IPV6_AUTHHDR            10
330
327
#define IPV6_UNICAST_HOPS       16
363
360
#define IPV6_RXHOPOPTS          IPV6_HOPOPTS
364
361
#define IPV6_RXDSTOPTS          IPV6_DSTOPTS
365
362
 
366
 
 
367
363
#define IPV6_PMTUDISC_DONT      0
368
364
#define IPV6_PMTUDISC_WANT      1
369
365
#define IPV6_PMTUDISC_DO        2
370
366
#define IPV6_PMTUDISC_PROBE     3
371
367
 
372
 
#define SOL_IPV6        41
373
 
#define SOL_ICMPV6      58
374
 
 
375
368
#define IPV6_RTHDR_LOOSE        0
376
369
#define IPV6_RTHDR_STRICT       1
377
370