mirror of
https://repo.or.cz/socat.git
synced 2025-07-13 15:13:23 +00:00
1.7.0-rc1: ported to FreeBSD: test.sh runssctpx; small fixes
This commit is contained in:
parent
784e378ede
commit
28cc25ec90
5 changed files with 40 additions and 11 deletions
|
@ -146,12 +146,14 @@ ssize_t xioread(xiofile_t *file, void *buff, size_t bufsiz) {
|
|||
}
|
||||
/* on packet type we also receive outgoing packets, this is not desired
|
||||
*/
|
||||
#ifdef PF_PACKET
|
||||
if (from.soa.sa_family == PF_PACKET) {
|
||||
if ((((struct sockaddr_ll *)&from.soa)->sll_pkttype & PACKET_OUTGOING)
|
||||
== 0) {
|
||||
errno = EAGAIN; return -1;
|
||||
}
|
||||
}
|
||||
#endif /* PF_PACKET */
|
||||
|
||||
Notice2("received packet with "F_Zu" bytes from %s",
|
||||
bytes,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue