54 #include <IPAddress.h>
65 #define IPV4_ADDRESS_LENGTH 4
79 IPv4Address(uint8_t octet1, uint8_t octet2, uint8_t octet3, uint8_t octet4);
107 const uint8_t*
address()
const;
111 uint8_t _address[IPV4_ADDRESS_LENGTH];
123 #define IPV6_ADDRESS_LENGTH 16
157 const uint8_t*
address()
const;
161 uint8_t _address[IPV6_ADDRESS_LENGTH];
173 #define MAC_ADDRESS_LENGTH 6
189 MACAddress(uint8_t octet1, uint8_t octet2, uint8_t octet3, uint8_t octet4, uint8_t octet5, uint8_t octet6);
234 size_t printTo(Print& p)
const;
238 uint8_t _address[MAC_ADDRESS_LENGTH];
323 size_t printTo(Print& p)
const;
375 #define IPTOS_TOS_MASK 0x1E
376 #define IPTOS_TOS(tos) ((tos)&IPTOS_TOS_MASK)
377 #define IPTOS_LOWDELAY 0x10
378 #define IPTOS_THROUGHPUT 0x08
379 #define IPTOS_RELIABILITY 0x04
380 #define IPTOS_MINCOST 0x02
382 #define IPTOS_PREC_MASK 0xE0
383 #define IPTOS_PREC(tos) ((tos)&IPTOS_PREC_MASK)
384 #define IPTOS_PREC_NETCONTROL 0xe0
385 #define IPTOS_PREC_INTERNETCONTROL 0xc0
386 #define IPTOS_PREC_CRITIC_ECP 0xa0
387 #define IPTOS_PREC_FLASHOVERRIDE 0x80
388 #define IPTOS_PREC_FLASH 0x60
389 #define IPTOS_PREC_IMMEDIATE 0x40
390 #define IPTOS_PREC_PRIORITY 0x20
391 #define IPTOS_PREC_ROUTINE 0x00
394 #define IPOPT_COPY 0x80
395 #define IPOPT_CLASS_MASK 0x60
396 #define IPOPT_NUMBER_MASK 0x1f
398 #define IPOPT_COPIED(o) ((o)&IPOPT_COPY)
399 #define IPOPT_CLASS(o) ((o)&IPOPT_CLASS_MASK)
400 #define IPOPT_NUMBER(o) ((o)&IPOPT_NUMBER_MASK)
402 #define IPOPT_CONTROL 0x00
403 #define IPOPT_RESERVED1 0x20
404 #define IPOPT_MEASUREMENT 0x40
405 #define IPOPT_RESERVED2 0x60
407 #define IPOPT_END (0 |IPOPT_CONTROL)
408 #define IPOPT_NOOP (1 |IPOPT_CONTROL)
409 #define IPOPT_SEC (2 |IPOPT_CONTROL|IPOPT_COPY)
410 #define IPOPT_LSRR (3 |IPOPT_CONTROL|IPOPT_COPY)
411 #define IPOPT_TIMESTAMP (4 |IPOPT_MEASUREMENT)
412 #define IPOPT_CIPSO (6 |IPOPT_CONTROL|IPOPT_COPY)
413 #define IPOPT_RR (7 |IPOPT_CONTROL)
414 #define IPOPT_SID (8 |IPOPT_CONTROL|IPOPT_COPY)
415 #define IPOPT_SSRR (9 |IPOPT_CONTROL|IPOPT_COPY)
416 #define IPOPT_RA (20|IPOPT_CONTROL|IPOPT_COPY)
422 #define IPOPT_OPTVAL 0
424 #define IPOPT_OFFSET 2
425 #define IPOPT_MINOFF 4
426 #define MAX_IPOPTLEN 40
427 #define IPOPT_NOP IPOPT_NOOP
428 #define IPOPT_EOL IPOPT_END
429 #define IPOPT_TS IPOPT_TIMESTAMP
431 #define IPOPT_TS_TSONLY 0
432 #define IPOPT_TS_TSANDADDR 1
433 #define IPOPT_TS_PRESPEC 3
496 uint8_t
flags()
const;
529 size_t printTo(Print& p)
const;
536 uint16_t _flags_offset;
589 uint8_t
code()
const;
610 size_t printTo(Print& p)
const;
613 uint16_t _sourcePort;
616 uint32_t _acknowledgement;
661 size_t printTo(Print& p)
const;
664 uint16_t _sourcePort;