aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-light/src/io/hicnListener.c
diff options
context:
space:
mode:
authorAngelo Mantellini <manangel@cisco.com>2019-01-31 18:20:48 +0100
committerAngelo Mantellini <manangel@cisco.com>2019-02-01 15:23:03 +0100
commitf5a0b8a5e24cede05e15ab696f0e15257a503525 (patch)
tree8cab87196baf7ea5468cebc4002da45175d91ae8 /hicn-light/src/io/hicnListener.c
parentbf29f9a52ffa3a1f32f700e4fd36ea53885d83aa (diff)
[HICN24] Windows compatibility for hicn-light
Change-Id: I8e19e52c9b4ec0fcbd7344c28765f5da1937569c Signed-off-by: Angelo Mantellini <manangel@cisco.com>
Diffstat (limited to 'hicn-light/src/io/hicnListener.c')
-rw-r--r--hicn-light/src/io/hicnListener.c26
1 files changed, 14 insertions, 12 deletions
diff --git a/hicn-light/src/io/hicnListener.c b/hicn-light/src/io/hicnListener.c
index 789face90..bcf4de6a3 100644
--- a/hicn-light/src/io/hicnListener.c
+++ b/hicn-light/src/io/hicnListener.c
@@ -55,22 +55,24 @@ struct hicn_listener {
PARCEvent *hicn_event;
int hicn_fd; // this is the file descriptor got from hicn library
- Address *localAddress; // this is the local address or 0::0 in case of the
- // main listener this is the address used inside
- // forwarder to identify the listener. Notice that this
- // address is the same as the fisical interfaces on
- // which we create the TUN. it is NOT the TUN address
- // which is given by libhicn after the bind operation
- // However the user alway uses this address since is
- // the only one available at configuration time
+ Address
+ *localAddress; // this is the local address or 0::0 in case of the
+ // main listener this is the address used inside
+ // forwarder to identify the listener. Notice that this
+ // address is the same as the fisical interfaces on
+ // which we create the TUN. it is NOT the TUN address
+ // which is given by libhicn after the bind operation
+ // However the user alway uses this address since is
+ // the only one available at configuration time
unsigned inetFamily;
int connection_id; // this is used only if the listener is used to receive
// data packets we assume that 1 connection is associated
- // to one listener in this case so we set the connection_id
- // we the connection is create. if this id is not set and a
- // data packet is received, the packet is dropped
+ // to one listener in this case so we set the
+ // connection_id we the connection is create. if this id
+ // is not set and a data packet is received, the packet is
+ // dropped
unsigned conn_id;
};
@@ -216,7 +218,7 @@ ListenerOps *hicnListener_CreateInet6(Forwarder *forwarder, char *symbolic,
// the call to libhicn is the same both for the main and the normal listeners
// in both cases we need to set only the identifier. In the case of normal
// listener (listener for data packet) we let the library select the right ip
- //address we just need to set the right type of packet
+ // address we just need to set the right type of packet
hicn_socket_helper_t *hicnSocketHelper =
forwarder_GetHicnSocketHelper(forwarder);