DESERT 4.0.0
packer-uwpolling.h
Go to the documentation of this file.
1//
2// Copyright (c) 2013 Regents of the SIGNET lab, University of Padova.
3// All rights reserved.
4//
5// Redistribution and use in source and binary forms, with or without
6// modification, are permitted provided that the following conditions
7// are met:
8// 1. Redistributions of source code must retain the above copyright
9// notice, this list of conditions and the following disclaimer.
10// 2. Redistributions in binary form must reproduce the above copyright
11// notice, this list of conditions and the following disclaimer in the
12// documentation and/or other materials provided with the distribution.
13// 3. Neither the name of the University of Padova (SIGNET lab) nor the
14// names of its contributors may be used to endorse or promote products
15// derived from this software without specific prior written permission.
16//
17// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
19// TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
20// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
22// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
23// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
24// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
25// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
26// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
27// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
37#ifndef PACKER_UWPOLLING_H
38#define PACKER_UWPOLLING_H
39
40#include "packer.h"
41
42#include "mac.h"
43#include "uwpolling_cmn_hdr.h"
44
45#include <iostream>
46
163
164#endif
Definition packer-uwpolling.h:51
size_t uid_probe_sink_Bits
Definition packer-uwpolling.h:146
size_t t_fin_Bits
Definition packer-uwpolling.h:125
size_t id_polled_Bits
Definition packer-uwpolling.h:129
size_t poll_time_Bits
Definition packer-uwpolling.h:142
size_t uid_ack_Bits
Definition packer-uwpolling.h:148
size_t uid_trigger_Bits
Definition packer-uwpolling.h:127
size_t n_pkts_Bits
Definition packer-uwpolling.h:134
int sink_mac
Definition packer-uwpolling.h:161
size_t uid_acks_Bits
Definition packer-uwpolling.h:154
size_t ts_Bits
Definition packer-uwpolling.h:133
void printMyHdrMap()
Definition packer-uwpolling.cpp:438
~packerUwpolling()
Definition packer-uwpolling.cpp:102
size_t uid_poll_Bits
Definition packer-uwpolling.h:140
void printMyHdrFields(Packet *)
Definition packer-uwpolling.cpp:377
size_t t_in_Bits
Definition packer-uwpolling.h:123
size_t backoff_time_Bits
Definition packer-uwpolling.h:131
void init()
Definition packer-uwpolling.cpp:108
size_t uid_packet_Bits
Definition packer-uwpolling.h:150
nbits_index
Definition packer-uwpolling.h:99
@ POLL_TIME
Definition packer-uwpolling.h:110
@ TS_BITS
Definition packer-uwpolling.h:105
@ UID_SINK
Definition packer-uwpolling.h:111
@ UID_ACKS
Definition packer-uwpolling.h:116
@ UID_TRIGGER
Definition packer-uwpolling.h:102
@ UID_PROBE
Definition packer-uwpolling.h:107
@ UID_POLL
Definition packer-uwpolling.h:109
@ LAST_ELEM
Definition packer-uwpolling.h:120
@ BACKOFF_TIME
Definition packer-uwpolling.h:104
@ ACK_ARRAY_SIZE
Definition packer-uwpolling.h:117
@ T_FIN
Definition packer-uwpolling.h:101
@ ID_POLLED
Definition packer-uwpolling.h:103
@ T_IN
Definition packer-uwpolling.h:100
@ UID_PROBE_SINK
Definition packer-uwpolling.h:112
@ ID_NODE
Definition packer-uwpolling.h:108
@ ACK_ELEM_BITS
Definition packer-uwpolling.h:118
@ UID_ACK
Definition packer-uwpolling.h:113
@ UID_LAST_PACKET
Definition packer-uwpolling.h:115
@ UID_PACKET
Definition packer-uwpolling.h:114
@ N_PKTS
Definition packer-uwpolling.h:106
size_t id_node_Bits
Definition packer-uwpolling.h:138
size_t ack_array_size_Bits
Definition packer-uwpolling.h:155
size_t uid_sink_Bits
Definition packer-uwpolling.h:144
packerUwpolling()
Definition packer-uwpolling.cpp:54
size_t ack_array_el_Bits
Definition packer-uwpolling.h:157
size_t unpackMyHdr(unsigned char *, size_t, Packet *)
Definition packer-uwpolling.cpp:244
size_t uid_probe_Bits
Definition packer-uwpolling.h:136
size_t packMyHdr(Packet *, unsigned char *, size_t)
Definition packer-uwpolling.cpp:135
size_t ack_array_size
Definition packer-uwpolling.h:159
size_t uid_last_packet_Bits
Definition packer-uwpolling.h:152
Definition packer.h:57
Header of the class responsible to map an NS-Miracle packet into a bit stream, and vice-versa.
Common structures and variables in the protocol.