Date: Thu, 24 Aug 2006 12:47:02 GMT From: Paolo Pisati <piso@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 104925 for review Message-ID: <200608241247.k7OCl2VN070671@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=104925 Change 104925 by piso@piso_newluxor on 2006/08/24 12:46:15 Depending from which flow/position is called, AliasHandleUdpNbtNS() gets different parameters: use 2 different functions for IN/OUT directions and pass AliasHandleUdpNbtNS() the correct arguments. Affected files ... .. //depot/projects/soc2005/libalias/sys/netinet/libalias/alias_nbt.c#7 edit Differences ... ==== //depot/projects/soc2005/libalias/sys/netinet/libalias/alias_nbt.c#7 (text+ko) ==== @@ -116,7 +116,15 @@ } static int -protohandler2(struct libalias *la, struct ip *pip, struct alias_data *ah) { +protohandler2in(struct libalias *la, struct ip *pip, struct alias_data *ah) { + + AliasHandleUdpNbtNS(la, pip, ah->lnk, ah->aaddr, ah->aport, + ah->oaddr, ah->dport); + return (0); +} + +static int +protohandler2out(struct libalias *la, struct ip *pip, struct alias_data *ah) { AliasHandleUdpNbtNS(la, pip, ah->lnk, &pip->ip_src, ah->sport, ah->aaddr, ah->aport); @@ -134,10 +142,17 @@ }, { .pri = 140, - .dir = IN|OUT, + .dir = IN, + .proto = UDP, + .fingerprint = &fingerprint2, + .protohandler = &protohandler2in + }, + { + .pri = 140, + .dir = OUT, .proto = UDP, .fingerprint = &fingerprint2, - .protohandler = &protohandler2 + .protohandler = &protohandler2out }, { EOH } };
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608241247.k7OCl2VN070671>