netdev
[Top] [All Lists]

comment on [NET]: Delete support for old-style protocols, no longer nece

To: davem@xxxxxxxxxxxxxx, linux-net@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx
Subject: comment on [NET]: Delete support for old-style protocols, no longer necessary.
From: Joe Perches <joe@xxxxxxxxxxx>
Date: Tue, 07 Oct 2003 11:37:09 -0700
Sender: netdev-bounce@xxxxxxxxxxx
How about

netdevice.h

struct sock;

struct packet_type {
        unsigned short          type;   /* This is really htons(ether_type).    
*/
        struct net_device               *dev;   /* NULL is wildcarded here      
        */
        int                     (*func) (struct sk_buff *, struct net_device *,
                                         struct packet_type *);
-       void                    *af_packet_priv;
+       struct sock             *sk;    /* appropriate comment: socket copy? */
        struct list_head        list;
 };

and s/af_packet_priv/sk/g in the rest of the files?


<Prev in Thread] Current Thread [Next in Thread>