Skip to content

Commit

Permalink
FW-208. remove comments for flow label.
Browse files Browse the repository at this point in the history
  • Loading branch information
changtengfei committed Jul 1, 2015
1 parent 2b40c30 commit bc710b1
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions software/openvisualizer/openvisualizer/openLbr/openLbr.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ class OpenLbr(eventBusClient.eventBusClient):
The IPv6 Flow Label within a RPL domain
'''
#implementing http://tools.ietf.org/html/draft-thubert-6man-flow-label-for-rpl-03
#FLOW_LABEL_RPL_DOMAIN = True

# http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xml
IANA_PROTOCOL_IPv6ROUTE = 43
Expand Down Expand Up @@ -240,16 +239,6 @@ def _meshToV6_notif(self,sender,signal,data):
#skip the header and process the rest of the message.
ipv6dic['next_header'] = ipv6dic['hop_next_header']

#===================================================================
#if (self.FLOW_LABEL_RPL_DOMAIN and 'flags' in ipv6dic):
#if flow label si formatted following thubert-flow-label draft then check for loops as if it was a hop route header
# if ((ipv6dic['flags'] & self.O_FLAG) == self.O_FLAG):
# log.error("detected possible downstream link on upstream route from {0}".format(",".join(str(c) for c in ipv6dic['src_addr'])))

# if ((ipv6dic['flags'] & self.R_FLAG) == self.R_FLAG):
#error -- loop in the route
# log.error("detected possible loop on upstream route from {0}".format(",".join(str(c) for c in ipv6dic['src_addr'])))

#===================================================================

if (ipv6dic['next_header']==self.IPV6_HEADER):
Expand Down Expand Up @@ -595,12 +584,6 @@ def lowpan_to_ipv6(self,data):
tf = ((pkt_lowpan[0]) >> 3) & 0x03
if (tf == self.IPHC_TF_3B):
pkt_ipv6['flow_label'] = ((pkt_lowpan[ptr]) << 16) + ((pkt_lowpan[ptr+1]) << 8) + ((pkt_lowpan[ptr+2]) << 0)
#print "flow label {0}".format(pkt_ipv6['flow_label'])
#if (self.FLOW_LABEL_RPL_DOMAIN):
# pkt_ipv6['flags']=((pkt_lowpan[ptr]) << 16);
#log this situation as an error to see it
# log.error("FLOW_LABEL_RPL_DOMAIN draft implemented")
# pkt_ipv6['flow_label'] = 0
ptr = ptr + 3
elif (tf == self.IPHC_TF_ELIDED):
pkt_ipv6['flow_label'] = 0
Expand Down

0 comments on commit bc710b1

Please sign in to comment.