)]}'
{"dragonflow/controller/l3_app.py":[{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"121e3767742aa25798c4cc8a0d355acc878599f4","unresolved":false,"context_lines":[{"line_number":95,"context_line":""},{"line_number":96,"context_line":"    def packet_in_handler(self, event):"},{"line_number":97,"context_line":"        msg \u003d event.msg"},{"line_number":98,"context_line":"        pkt \u003d packet.Packet(msg.data)"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"        if msg.reason \u003d\u003d self.ofproto.OFPR_INVALID_TTL:"},{"line_number":101,"context_line":"            LOG.debug(\"Get an invalid TTL packet at table %s\","}],"source_content_type":"text/x-python","patch_set":3,"id":"fa31d9ce_9bb8f82b","line":98,"updated":"2017-02-15 19:34:24.000000000","message":"I thought this was moved down so the packet parsing is done after the DoS protection?","commit_id":"480f89e0088d48f26a5a20af216fc5abe755bab5"},{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"121e3767742aa25798c4cc8a0d355acc878599f4","unresolved":false,"context_lines":[{"line_number":127,"context_line":"            return"},{"line_number":128,"context_line":"        pkt_ethernet \u003d pkt.get_protocol(ethernet.ethernet)"},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"        if pkt_ip.dst in self.router_port_rarp_cache.values():"},{"line_number":131,"context_line":"            # The packet\u0027s IP destination is router interface."},{"line_number":132,"context_line":"            # Response icmp echo request."},{"line_number":133,"context_line":"            # TODO(xiaohhui or lihi): support icmpv6"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa31d9ce_dbbc30de","line":130,"updated":"2017-02-15 19:34:24.000000000","message":"Maybe the flow can detect if the packet is ICMP, and then set one of the registers to the dst_ip. Then maybe the packet parsing can be done only if needed, and only after DoS protection?","commit_id":"480f89e0088d48f26a5a20af216fc5abe755bab5"},{"author":{"_account_id":11159,"name":"Hong Hui Xiao","email":"honghui_xiao@yeah.net","username":"HongHuiXiao"},"change_message_id":"c665bec1e058ceca6d0986c36613db1608afeb9e","unresolved":false,"context_lines":[{"line_number":127,"context_line":"            return"},{"line_number":128,"context_line":"        pkt_ethernet \u003d pkt.get_protocol(ethernet.ethernet)"},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"        if pkt_ip.dst in self.router_port_rarp_cache.values():"},{"line_number":131,"context_line":"            # The packet\u0027s IP destination is router interface."},{"line_number":132,"context_line":"            # Response icmp echo request."},{"line_number":133,"context_line":"            # TODO(xiaohhui or lihi): support icmpv6"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa31d9ce_13a14146","line":130,"in_reply_to":"fa31d9ce_d317a9a0","updated":"2017-02-16 03:28:47.000000000","message":"But that is gonna only work for ipv4. register are 32 bits. ipv6 addresses are 128 bits.","commit_id":"480f89e0088d48f26a5a20af216fc5abe755bab5"},{"author":{"_account_id":11159,"name":"Hong Hui Xiao","email":"honghui_xiao@yeah.net","username":"HongHuiXiao"},"change_message_id":"b4ae249410c9578d2850078b1761e6480cf44113","unresolved":false,"context_lines":[{"line_number":127,"context_line":"            return"},{"line_number":128,"context_line":"        pkt_ethernet \u003d pkt.get_protocol(ethernet.ethernet)"},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"        if pkt_ip.dst in self.router_port_rarp_cache.values():"},{"line_number":131,"context_line":"            # The packet\u0027s IP destination is router interface."},{"line_number":132,"context_line":"            # Response icmp echo request."},{"line_number":133,"context_line":"            # TODO(xiaohhui or lihi): support icmpv6"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa31d9ce_d317a9a0","line":130,"in_reply_to":"fa31d9ce_dbbc30de","updated":"2017-02-16 03:23:24.000000000","message":"Setting dst_ip to one register in advance can remove the unnecessary parsing, will update it.","commit_id":"480f89e0088d48f26a5a20af216fc5abe755bab5"},{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"121e3767742aa25798c4cc8a0d355acc878599f4","unresolved":false,"context_lines":[{"line_number":381,"context_line":""},{"line_number":382,"context_line":"        # Delete the rules for the packets whose source is from"},{"line_number":383,"context_line":"        # the subnet of the router port."},{"line_number":384,"context_line":"        match \u003d parser.OFPMatch()"},{"line_number":385,"context_line":"        match.set_metadata(local_network_id)"},{"line_number":386,"context_line":"        self.mod_flow("},{"line_number":387,"context_line":"            table_id\u003dconst.L3_LOOKUP_TABLE,"},{"line_number":388,"context_line":"            command\u003dofproto.OFPFC_DELETE,"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa31d9ce_7b93445b","line":385,"range":{"start_line":384,"start_character":0,"end_line":385,"end_character":44},"updated":"2017-02-15 19:34:24.000000000","message":"nit: match \u003d parser.OFPMatch(metadata\u003dlocal_network_id)","commit_id":"480f89e0088d48f26a5a20af216fc5abe755bab5"},{"author":{"_account_id":11159,"name":"Hong Hui Xiao","email":"honghui_xiao@yeah.net","username":"HongHuiXiao"},"change_message_id":"b4ae249410c9578d2850078b1761e6480cf44113","unresolved":false,"context_lines":[{"line_number":381,"context_line":""},{"line_number":382,"context_line":"        # Delete the rules for the packets whose source is from"},{"line_number":383,"context_line":"        # the subnet of the router port."},{"line_number":384,"context_line":"        match \u003d parser.OFPMatch()"},{"line_number":385,"context_line":"        match.set_metadata(local_network_id)"},{"line_number":386,"context_line":"        self.mod_flow("},{"line_number":387,"context_line":"            table_id\u003dconst.L3_LOOKUP_TABLE,"},{"line_number":388,"context_line":"            command\u003dofproto.OFPFC_DELETE,"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa31d9ce_9370d141","line":385,"range":{"start_line":384,"start_character":0,"end_line":385,"end_character":44},"in_reply_to":"fa31d9ce_7b93445b","updated":"2017-02-16 03:23:24.000000000","message":"Done","commit_id":"480f89e0088d48f26a5a20af216fc5abe755bab5"}]}
