Commit bbe8f58
authored
osd/netdev/pcap.cpp: Fix inverted success/failure return from send() (#15874)
* osd/netdev/pcap.cpp: Fix inverted success/failure return from send().
pcap_sendpacket() returns 0 on success and PCAP_ERROR on failure, but
netdev_pcap::send() was returning the byte count only when the call
failed and 0 on success.
* osd/netdev/pcap.cpp: Remove orphaned dead comment in send().1 parent ed697c3 commit bbe8f58
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
235 | | - | |
| 234 | + | |
236 | 235 | | |
237 | 236 | | |
238 | 237 | | |
| |||
0 commit comments