| To: | Thomas Graf <tgraf@xxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 2/4] [NETLINK] introduce netlink_check_skb function |
| From: | Pablo Neira <pablo@xxxxxxxxxxx> |
| Date: | Fri, 11 Feb 2005 22:31:40 +0100 |
| Cc: | netdev@xxxxxxxxxxx, "David S. Miller" <davem@xxxxxxxxxxxxx> |
| In-reply-to: | <20050211032448.GD31837@xxxxxxxxxxxxxx> |
| References: | <420BF8CB.6080005@xxxxxxxxxxx> <20050211032448.GD31837@xxxxxxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040413 Debian/1.6-5 |
Thomas Graf wrote: +/* + * Process one packet of messages.+ * Malformed skbs with wrong lengths of messages are discarded silently. + */+int netlink_process_skb(struct sk_buff *skb, + int (*process_msg)(struct sk_buff *skb, They are all the same thing. They all return 16 bytes which is the size of a netlink header. If you and someone else think that those are more readable, I'm ok with it, whatever. I just stole that piece of code as is from current checkings done in xfrm and rtnetlink. -- Pablo |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH] tg3: capacitive coupling detection fix, john stultz |
|---|---|
| Next by Date: | Re: [PATCH] ieee80211 subsystem, Jeff Garzik |
| Previous by Thread: | Re: [PATCH 2/4] [NETLINK] introduce netlink_check_skb function, Thomas Graf |
| Next by Thread: | Re: [PATCH 2/4] [NETLINK] introduce netlink_check_skb function, Thomas Graf |
| Indexes: | [Date] [Thread] [Top] [All Lists] |