<div class='section-title plus'>IP Header Information</div>

<div class='ip plus'>
	
	<table class='ip-header' border='0' cellspacing='0' cellpadding='0'>
		<tr>
			<th class='first'>Source</th>
			<th>Destination</th>
			<th>Ver</th>
			<th>Hlen</th>
			<th>Tos</th>
			<th>Len</th>
			<th>ID</th>
			<th>Flags</th>
			<th>Off</th>
			<th>TTL</th>
			<th>Proto</th>
			<th class='last'>Csum</th>
		</tr>
		<tbody>
			<tr>
        
        <td style='width:150px;' class='first'>
          <a href='/events/lookup?address=<%= @event.ip.ip_src %>' 
            data-address='<%= @event.ip.ip_src %>' class='ip-button has-event-menu' onclick="return false;">
            
            <%= @event.ip.ip_src %>
            <%= clippy(@event.ip.ip_src, '#FFFFFF', "src-#{@event.id}") %>
          </a>
          
          <dl class='event-sub-menu round shadow push-down' style='display:none;'>
            <dd><%= link_to 'Basic Source Lookup', "/events/lookup?address=#{@event.ip.ip_src}", :class => 'snorbybox' %></dd>

            <% @lookups.each do |lookup| %>
              <dd>
              <%= link_to lookup.title, 
                lookup.build(:ip => @event.ip.ip_src, :port => @event.source_port),
                :target => '_blank' %>
              </dd>
            <% end %>

            <dd><%= link_to "Snorby Search By Source", results_path(:search => {:ip_src => @event.ip.ip_src}) %></dd>
          </dl>

        </td>

        <td style='width:150px;'>
          <a href='/events/lookup?address=<%= @event.ip.ip_dst %>' 
            data-address='<%= @event.ip.ip_dst %>' class='ip-button has-event-menu'>
            
            <%= @event.ip.ip_dst %>
            <%= clippy(@event.ip.ip_dst, '#FFFFFF', "dst-#{@event.id}") %>
          </a>

          <dl class='event-sub-menu round shadow push-down' style='display:none;'>
            <dd><%= link_to 'Basic Destination Lookup', "/events/lookup?address=#{@event.ip.ip_dst}", :class => 'snorbybox' %></dd>
            
            <% @lookups.each do |lookup| %>
              <dd>
              <%= link_to lookup.title, 
                lookup.build(:ip => @event.ip.ip_dst, :port => @event.destination_port),
                :target => '_blank' %>
              </dd>
            <% end %>

            <dd><%= link_to "Snorby Search By Destination", results_path(:search => {:ip_dst => @event.ip.ip_dst}) %></dd>
          </dl
        </td>
        
        <td><%= @event.ip.ip_ver %></td>
				<td><%= @event.ip.ip_hlen %></td>
				<td><%= @event.ip.ip_tos %></td>
				<td><%= @event.ip.ip_len %></td>
				<td><%= @event.ip.ip_id %></td>
				<td><%= @event.ip.ip_flags %></td>
				<td><%= @event.ip.ip_off %></td>
				<td><%= @event.ip.ip_ttl %></td>
				<td><%= @event.ip.ip_proto %></td>
				<td class='last'><%= @event.ip.ip_csum %></td>
			</tr>
		</tbody>
	</table>
	
</div>
