- Timestamp:
- Jun 27, 2016 4:26:41 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/libalias/alias.c
r56377 r61905 751 751 u_short alias_port; 752 752 int accumulate; 753 int r = 0,error;753 int error; 754 754 struct alias_data ad; 755 755 ad.lnk = lnk; … … 769 769 /* Walk out chain. */ 770 770 error = find_handler(IN, UDP, la, pip, &ad); 771 /* If we cannot figure out the packet, ignore it. */ 772 if (error < 0) 773 return (PKT_ALIAS_IGNORED); 771 774 772 775 /* If UDP checksum is not zero, then adjust since destination port */ … … 784 787 pip->ip_dst = original_address; 785 788 786 /* 787 * If we cannot figure out the packet, ignore it. 788 */ 789 if (r < 0) 790 return (PKT_ALIAS_IGNORED); 791 else 792 return (PKT_ALIAS_OK); 789 return (PKT_ALIAS_OK); 793 790 } 794 791 return (PKT_ALIAS_IGNORED);
Note:
See TracChangeset
for help on using the changeset viewer.