cvs commit: src/sys/net/pf

Joerg Sonnenberger joerg at crater.dragonflybsd.org
Sun Nov 14 09:28:24 PST 2004


joerg       2004/11/14 09:27:31 PST

DragonFly src repository

  Modified files:
    sys/net/pf           if_pflog.c 
  Log:
  Fix an endian bug in pflog. The DragonFly version of PF uses the normal
  host byte order instead of network byte order as used by OpenBSD and
  FreeBSD. Normally the ether_output code converts this back, but for
  pflog, we shortcut these code. Therefore, before calling bpf_mtap, switch
  the byte order back to network order and revert it afterwards.
  
  Problem-reported-by: Erik P. Skaalerud
  
  Revision  Changes    Path
  1.2       +18 -5     src/sys/net/pf/if_pflog.c


http://www.dragonflybsd.org/cvsweb/src/sys/net/pf/if_pflog.c.diff?r1=1.1&r2=1.2&f=u





More information about the Commits mailing list