Lines Matching defs:ip_hdr
148 struct udphdr *ecm_tracker_udp_check_header_and_read(struct sk_buff *skb, struct ecm_tracker_ip_header *ip_hdr, struct udphdr *port_buffer)
155 header = &ip_hdr->headers[ECM_TRACKER_IP_PROTOCOL_TYPE_UDP];
553 struct ecm_tracker_ip_header *ip_hdr, struct ecm_tracker_ip_protocol_header *ecm_udp_header,
560 utii, skb, sender, ip_hdr->ip_header_length, ip_hdr->total_length,
581 if (ip_hdr->total_length < (ecm_udp_header->offset + ecm_udp_header->size)) {
655 struct ecm_tracker_ip_header ip_hdr;
665 if (!ecm_tracker_ip_check_header_and_read(&ip_hdr, skb)) {
666 DEBUG_WARN("%p: no ip_hdr for %p\n", utii, skb);
673 udp_header = ecm_tracker_udp_check_header_and_read(skb, &ip_hdr, &udp_header_buffer);
675 DEBUG_WARN("%p: not/invalid udp %d\n", utii, ip_hdr.protocol);
678 ecm_udp_header = &ip_hdr.headers[ECM_TRACKER_IP_PROTOCOL_TYPE_UDP];
680 return ecm_tracker_udp_datagram_add(utii, sender, &ip_hdr, ecm_udp_header, udp_header, skb);
688 struct ecm_tracker_ip_header *ip_hdr, struct ecm_tracker_ip_protocol_header *ecm_udp_header,
693 return ecm_tracker_udp_datagram_add(utii, sender, ip_hdr, ecm_udp_header, udp_header, skb);
796 static void ecm_tracker_udp_state_update_callback(struct ecm_tracker_instance *ti, ecm_tracker_sender_type_t sender, struct ecm_tracker_ip_header *ip_hdr, struct sk_buff *skb)