mirror of
https://repo.or.cz/socat.git
synced 2025-07-11 22:23:24 +00:00
Fixed IP-SENDTO with option pf with protocol name
This commit is contained in:
parent
50b6301bda
commit
0cfe39a413
7 changed files with 75 additions and 15 deletions
|
@ -1460,15 +1460,13 @@ int retropt_socket_pf(struct opt *opts, int *pf) {
|
|||
} else if (!strcasecmp("inet", pfname) ||
|
||||
!strcasecmp("inet4", pfname) ||
|
||||
!strcasecmp("ip4", pfname) ||
|
||||
!strcasecmp("ipv4", pfname) ||
|
||||
!strcasecmp("2", pfname)) {
|
||||
!strcasecmp("ipv4", pfname)) {
|
||||
*pf = PF_INET;
|
||||
#endif /* WITH_IP4 */
|
||||
#if WITH_IP6
|
||||
} else if (!strcasecmp("inet6", pfname) ||
|
||||
!strcasecmp("ip6", pfname) ||
|
||||
!strcasecmp("ipv6", pfname) ||
|
||||
!strcasecmp("10", pfname)) {
|
||||
!strcasecmp("ipv6", pfname)) {
|
||||
*pf = PF_INET6;
|
||||
#endif /* WITH_IP6 */
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue