Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Jarry <[email protected]>
  • Loading branch information
rjarry committed Jun 6, 2024
1 parent c9c1c33 commit 0778f88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/ip/datapath/br_ip4_datapath.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ void ip_output_add_tunnel(uint16_t iface_type_id, rte_edge_t edge);
static inline void ip_set_fields(struct rte_ipv4_hdr *ip, struct ip_local_mbuf_data *data) {
ip->version_ihl = IPV4_VERSION_IHL;
ip->type_of_service = 0;
ip->total_length = rte_cpu_to_be_16(data->len + sizeof(*ip));
ip->total_length = rte_cpu_to_be_16(data->len + rte_ipv4_hdr_len(ip));
ip->fragment_offset = 0;
ip->packet_id = 0;
ip->time_to_live = IPV4_DEFAULT_TTL; // make this confgurable somehow?
Expand Down

0 comments on commit 0778f88

Please sign in to comment.