From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Fri, 3 Feb 2012 07:21:36 -0500 Subject: [U-Boot] [PATCH 17/28] net: Refactor to separate the UDP handler from the ARP handler In-Reply-To: <1327020811-1538-18-git-send-email-joe.hershberger@ni.com> References: <1327020811-1538-1-git-send-email-joe.hershberger@ni.com> <1327020811-1538-18-git-send-email-joe.hershberger@ni.com> Message-ID: <201202030721.37544.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thursday 19 January 2012 19:53:20 Joe Hershberger wrote: > Only call the handlers if one was registered... don't require > protocols to register a handler (eliminating dummies) > NetConsole now uses the ARP handler when waiting on arp (instead of > needing a #define hack in arp.c) > Clear handlers at the end of net loop what if the SetHandler funcs took care of setting to a dummy func when it was given NULL ? then calling code need not worry about creating their own dummies, and you don't have to add NULL pointer checking. -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. URL: