On Sat, Oct 22, 2011 at 20:14 +0200, Maxim Bourmistrov wrote: > > On both sides I use em(4) with MTU 9000. > Then tried to set the same value to the pfsync with success (ifconfig pfsync0 > mtu 9000), but the actual value I see is 2048. >
ugh. i thought you've fixed up the source code. i'm curious if it'll still work with a smaller mtu on the physical interface :-) Index: net/if_pfsync.c =================================================================== RCS file: /cvs/src/sys/net/if_pfsync.c,v retrieving revision 1.169 diff -u -p -r1.169 if_pfsync.c --- net/if_pfsync.c 20 Oct 2011 08:57:26 -0000 1.169 +++ net/if_pfsync.c 22 Oct 2011 18:17:44 -0000 @@ -1294,8 +1294,8 @@ pfsyncioctl(struct ifnet *ifp, u_long cm s = splnet(); if (ifr->ifr_mtu <= PFSYNC_MINPKT) return (EINVAL); - if (ifr->ifr_mtu > MCLBYTES) /* XXX could be bigger */ - ifr->ifr_mtu = MCLBYTES; + if (ifr->ifr_mtu > 65536) + ifr->ifr_mtu = 65536; if (ifr->ifr_mtu < ifp->if_mtu) pfsync_sendout(); ifp->if_mtu = ifr->ifr_mtu;