Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion homa_hijack.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ static inline bool homa_skb_hijacked(struct sk_buff *skb)

h = (struct homa_common_hdr *)skb_transport_header(skb);
return h->flags == HOMA_HIJACK_FLAGS &&
h->urgent == ntohs(HOMA_HIJACK_URGENT);
h->urgent == htons(HOMA_HIJACK_URGENT);
}

void homa_hijack_end(void);
Expand Down
2 changes: 1 addition & 1 deletion homa_wire.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ struct homa_common_hdr {
* @checksum: occupies the same bytes as the checksum in a TCP
* header. Set by Homa only during TCP hijacking.
*/
__be16 checksum;
__sum16 checksum;

#ifndef __STRIP__ /* See strip.py */
/**
Expand Down