Lines Matching +full:0 +full:x00000000 +full:- +full:0 +full:x0fffffff
1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
40 #define IPPROTO_IP 0 /* dummy for IP */
45 #define INADDR_ANY ((in_addr_t)0x00000000)
46 #define INADDR_BROADCAST ((in_addr_t)0xffffffff) /* must be masked */
139 #define IPPROTO_HOPOPTS 0 /* IP6 hop-by-hop options */
159 #define IPPROTO_TRUNK1 23 /* Trunk-1 */
160 #define IPPROTO_TRUNK2 24 /* Trunk-2 */
161 #define IPPROTO_LEAF1 25 /* Leaf-1 */
162 #define IPPROTO_LEAF2 26 /* Leaf-2 */
165 #define IPPROTO_TP 29 /* tp-4 w/ class negotiation */
220 #define IPPROTO_IGP 85 /* NSFNET-IGP */
239 #define IPPROTO_UDPLITE 136 /* UDP-Lite */
242 /* 101-254: Partly Unassigned */
246 #define IPPROTO_MPLS 137 /* MPLS-in-IP */
252 #define IPPROTO_OLD_DIVERT 254 /* OLD divert pseudo-proto */
259 #define IPPROTO_DIVERT 258 /* divert pseudo-protocol */
260 #define IPPROTO_SEND 259 /* SeND pseudo-protocol */
272 * a non-conflicting local port address is chosen.
303 * ftp://ftp.isi.edu/in-notes/iana/assignments/port-numbers
307 * 0 - 1023 Well Known Ports
308 * 1024 - 49151 Registered Ports
309 * 49152 - 65535 Dynamic and/or Private Ports
334 * 512, but that conflicts with some well-known-services that firewalls may
343 * (pre-CIDR). Class A/B/C are long obsolete, and now deprecated.
351 #define IN_CLASSA(i) (((in_addr_t)(i) & 0x80000000) == 0)
352 #define IN_CLASSA_NET 0xff000000
354 #define IN_CLASSA_HOST 0x00ffffff
357 #define IN_CLASSB(i) (((in_addr_t)(i) & 0xc0000000) == 0x80000000)
358 #define IN_CLASSB_NET 0xffff0000
360 #define IN_CLASSB_HOST 0x0000ffff
363 #define IN_CLASSC(i) (((in_addr_t)(i) & 0xe0000000) == 0xc0000000)
364 #define IN_CLASSC_NET 0xffffff00
366 #define IN_CLASSC_HOST 0x000000ff
369 #define IN_NETMASK_DEFAULT 0xffffff00 /* mask when forced to guess */
371 #define IN_MULTICAST(i) (((in_addr_t)(i) & 0xf0000000) == 0xe0000000)
374 #define IN_CLASSD_NET 0xf0000000 /* These ones aren't really */
376 #define IN_CLASSD_HOST 0x0fffffff /* routing needn't know. */
379 #define IN_EXPERIMENTAL(i) (((in_addr_t)(i) & 0xf0000000) == 0xf0000000)
380 #define IN_BADCLASS(i) (((in_addr_t)(i) & 0xf0000000) == 0xf0000000)
382 #define IN_LINKLOCAL(i) (((in_addr_t)(i) & 0xffff0000) == 0xa9fe0000)
385 (((in_addr_t)(i) & V_in_loopback_mask) == 0x7f000000)
386 #define IN_LOOPBACK_MASK_DFLT 0xff000000
388 #define IN_LOOPBACK(i) (((in_addr_t)(i) & 0xff000000) == 0x7f000000)
390 #define IN_ZERONET(i) (((in_addr_t)(i) & 0xff000000) == 0)
392 #define IN_PRIVATE(i) ((((in_addr_t)(i) & 0xff000000) == 0x0a000000) || \
393 (((in_addr_t)(i) & 0xfff00000) == 0xac100000) || \
394 (((in_addr_t)(i) & 0xffff0000) == 0xc0a80000))
396 #define IN_LOCAL_GROUP(i) (((in_addr_t)(i) & 0xffffff00) == 0xe0000000)
400 #define INADDR_LOOPBACK ((in_addr_t)0x7f000001)
402 #define INADDR_NONE ((in_addr_t)0xffffffff) /* -1 return */
405 #define INADDR_UNSPEC_GROUP ((in_addr_t)0xe0000000) /* 224.0.0.0 */
406 #define INADDR_ALLHOSTS_GROUP ((in_addr_t)0xe0000001) /* 224.0.0.1 */
407 #define INADDR_ALLRTRS_GROUP ((in_addr_t)0xe0000002) /* 224.0.0.2 */
408 #define INADDR_ALLRPTS_GROUP ((in_addr_t)0xe0000016) /* 224.0.0.22, IGMPv3 */
409 #define INADDR_CARP_GROUP ((in_addr_t)0xe0000012) /* 224.0.0.18 */
410 #define INADDR_PFSYNC_GROUP ((in_addr_t)0xe00000f0) /* 224.0.0.240 */
411 #define INADDR_ALLMDNS_GROUP ((in_addr_t)0xe00000fb) /* 224.0.0.251 */
412 #define INADDR_MAX_LOCAL_GROUP ((in_addr_t)0xe00000ff) /* 224.0.0.255 */
418 #define IN_RFC3021_MASK ((in_addr_t)0xfffffffe)
454 #define IP_RSVP_VIF_ON 17 /* set RSVP per-vif socket */
455 #define IP_RSVP_VIF_OFF 18 /* unset RSVP per-vif socket */
461 #define IP_ONESBCAST 23 /* bool: send all-ones broadcast */
505 #define IP_ADD_SOURCE_MEMBERSHIP 70 /* join a source-specific group */
515 /* -1 use interface default */
518 #define MCAST_JOIN_GROUP 80 /* join an any-source group */
520 #define MCAST_JOIN_SOURCE_GROUP 82 /* join a source-specific group */
528 #define IP_RSSBUCKETID 92 /* get RSS flowid -> bucket mapping */
580 * Argument structures for Protocol-Independent Multicast Source
616 * Advanced (Full-state) APIs [RFC3678]
630 * Filter modes; also used to represent per-socket filter mode internally.
632 #define MCAST_UNDEFINED 0 /* fmode: not yet defined */
638 * - which range to search when port is unspecified at bind() or connect()
640 #define IP_PORTRANGE_DEFAULT 0 /* default range */
641 #define IP_PORTRANGE_HIGH 1 /* "high" - request firewall bypass */
642 #define IP_PORTRANGE_LOW 2 /* "low" - vouchsafe security */
657 #define IPCTL_DIRECTEDBROADCAST 9 /* may re-broadcast received packets */