@@ -72,13 +72,13 @@ static struct tcp_backlog_entry {
7272#define NET_CONN_CB (name ) \
7373 static enum net_verdict _##name(struct net_conn *conn, \
7474 struct net_pkt *pkt, \
75- union ip_header *ip_hdr, \
76- union proto_header *proto_hdr, \
75+ union net_ip_header *ip_hdr, \
76+ union net_proto_header *proto_hdr, \
7777 void *user_data); \
7878 static enum net_verdict name(struct net_conn *conn, \
7979 struct net_pkt *pkt, \
80- union ip_header *ip_hdr, \
81- union proto_header *proto_hdr, \
80+ union net_ip_header *ip_hdr, \
81+ union net_proto_header *proto_hdr, \
8282 void *user_data) \
8383 { \
8484 enum net_verdict result; \
@@ -91,8 +91,8 @@ static struct tcp_backlog_entry {
9191 } \
9292 static enum net_verdict _##name(struct net_conn *conn, \
9393 struct net_pkt *pkt, \
94- union ip_header *ip_hdr, \
95- union proto_header *proto_hdr, \
94+ union net_ip_header *ip_hdr, \
95+ union net_proto_header *proto_hdr, \
9696 void *user_data) \
9797
9898
@@ -1581,7 +1581,7 @@ static void backlog_ack_timeout(struct k_work *work)
15811581}
15821582
15831583static void tcp_copy_ip_addr_from_hdr (sa_family_t family ,
1584- union ip_header * ip_hdr ,
1584+ union net_ip_header * ip_hdr ,
15851585 struct net_tcp_hdr * tcp_hdr ,
15861586 struct sockaddr * addr ,
15871587 bool is_src_addr )
@@ -1622,7 +1622,7 @@ static void tcp_copy_ip_addr_from_hdr(sa_family_t family,
16221622}
16231623
16241624static int tcp_backlog_find (struct net_pkt * pkt ,
1625- union ip_header * hdr ,
1625+ union net_ip_header * ip_hdr ,
16261626 struct net_tcp_hdr * tcp_hdr ,
16271627 int * empty_slot )
16281628{
@@ -1646,7 +1646,8 @@ static int tcp_backlog_find(struct net_pkt *pkt,
16461646 }
16471647
16481648 if (memcmp (& net_sin (& tcp_backlog [i ].remote )-> sin_addr ,
1649- & hdr -> ipv4 -> src , sizeof (struct in_addr ))) {
1649+ & ip_hdr -> ipv4 -> src ,
1650+ sizeof (struct in_addr ))) {
16501651 continue ;
16511652 }
16521653 } else if (IS_ENABLED (CONFIG_NET_IPV6 ) &&
@@ -1657,7 +1658,8 @@ static int tcp_backlog_find(struct net_pkt *pkt,
16571658 }
16581659
16591660 if (memcmp (& net_sin6 (& tcp_backlog [i ].remote )-> sin6_addr ,
1660- & hdr -> ipv6 -> src , sizeof (struct in6_addr ))) {
1661+ & ip_hdr -> ipv6 -> src ,
1662+ sizeof (struct in6_addr ))) {
16611663 continue ;
16621664 }
16631665 }
@@ -1673,7 +1675,7 @@ static int tcp_backlog_find(struct net_pkt *pkt,
16731675}
16741676
16751677static int tcp_backlog_syn (struct net_pkt * pkt ,
1676- union ip_header * ip_hdr ,
1678+ union net_ip_header * ip_hdr ,
16771679 struct net_tcp_hdr * tcp_hdr ,
16781680 struct net_context * context ,
16791681 u16_t send_mss )
@@ -1705,7 +1707,7 @@ static int tcp_backlog_syn(struct net_pkt *pkt,
17051707}
17061708
17071709static int tcp_backlog_ack (struct net_pkt * pkt ,
1708- union ip_header * ip_hdr ,
1710+ union net_ip_header * ip_hdr ,
17091711 struct net_tcp_hdr * tcp_hdr ,
17101712 struct net_context * context )
17111713{
@@ -1734,7 +1736,7 @@ static int tcp_backlog_ack(struct net_pkt *pkt,
17341736}
17351737
17361738static int tcp_backlog_rst (struct net_pkt * pkt ,
1737- union ip_header * ip_hdr ,
1739+ union net_ip_header * ip_hdr ,
17381740 struct net_tcp_hdr * tcp_hdr )
17391741{
17401742 int r ;
@@ -2010,8 +2012,8 @@ static int send_reset(struct net_context *context,
20102012 *
20112013 * Prototype:
20122014 * enum net_verdict tcp_established(struct net_conn *conn,
2013- * union ip_header *ip_hdr,
2014- * union data_header *proto_hdr,
2015+ * union net_ip_header *ip_hdr,
2016+ * union net_proto_header *proto_hdr,
20152017 * struct net_pkt *pkt,
20162018 * void *user_data)
20172019 */
@@ -2204,8 +2206,8 @@ NET_CONN_CB(tcp_established)
22042206 * Prototype:
22052207 * enum net_verdict tcp_synack_received(struct net_conn *conn,
22062208 * struct net_pkt *pkt,
2207- * union ip_header *ip_hdr,
2208- * union data_header *proto_hdr,
2209+ * union net_ip_header *ip_hdr,
2210+ * union net_proto_header *proto_hdr,
22092211 * void *user_data)
22102212 */
22112213NET_CONN_CB (tcp_synack_received )
@@ -2298,7 +2300,7 @@ NET_CONN_CB(tcp_synack_received)
22982300 return NET_DROP ;
22992301}
23002302
2301- static void get_sockaddr_ptr (union ip_header * ip_hdr ,
2303+ static void get_sockaddr_ptr (union net_ip_header * ip_hdr ,
23022304 struct net_tcp_hdr * tcp_hdr ,
23032305 sa_family_t family ,
23042306 struct sockaddr_ptr * addr )
@@ -2341,8 +2343,8 @@ static inline void copy_pool_vars(struct net_context *new_context,
23412343 * Prototype:
23422344 * enum net_verdict tcp_syn_rcvd(struct net_conn *conn,
23432345 * struct net_pkt *pkt,
2344- * union ip_header *ip_hdr,
2345- * union data_header *proto_hdr,
2346+ * union net_ip_header *ip_hdr,
2347+ * union net_proto_header *proto_hdr,
23462348 * void *user_data)
23472349 */
23482350NET_CONN_CB (tcp_syn_rcvd )
0 commit comments