summaryrefslogblamecommitdiffstats
path: root/3rdparty/openpgm-svn-r1135/pgm/source.c.rej
blob: 515f7ec02e2058a6c3320e8486d4aee7318b31ed (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                                                                                                               
***************
*** 2295,2301 ****
          header->pgm_checksum           = 0;
  	const size_t pgm_header_len     = tpdu_length - ntohs(header->pgm_tsdu_length);
  	uint32_t unfolded_header        = pgm_csum_partial (header, pgm_header_len, 0);
- 	uint32_t unfolded_odata         = pgm_txw_get_unfolded_checksum (skb);
  	header->pgm_checksum            = pgm_csum_fold (pgm_csum_block_add (unfolded_header, unfolded_odata, pgm_header_len));
  
  /* congestion control */
--- 2295,2301 ----
          header->pgm_checksum           = 0;
  	const size_t pgm_header_len     = tpdu_length - ntohs(header->pgm_tsdu_length);
  	uint32_t unfolded_header        = pgm_csum_partial (header, pgm_header_len, 0);
+ 	uint32_t unfolded_odata         = pgm_csum_partial (skb->data, ntohs(header->pgm_tsdu_length), 0);
  	header->pgm_checksum            = pgm_csum_fold (pgm_csum_block_add (unfolded_header, unfolded_odata, pgm_header_len));
  
  /* congestion control */