Files
kernel-tenderloin-3.0/include/net
Arnaldo Carvalho de Melo ee41e2dff1 [INET]: Change protocol field in struct inet_protosw to u16
[acme@newtoy net-2.6.20]$ pahole /tmp/tcp_ipv6.o inet_protosw
/* /pub/scm/linux/kernel/git/acme/net-2.6.20/include/net/protocol.h:69 */
struct inet_protosw {
        struct list_head           list;                 /*     0     8 */
        short unsigned int         type;                 /*     8     2 */

        /* XXX 2 bytes hole, try to pack */

        int                        protocol;             /*    12     4 */
        struct proto *             prot;                 /*    16     4 */
        const struct proto_ops  *  ops;                  /*    20     4 */
        int                        capability;           /*    24     4 */
        char                       no_check;             /*    28     1 */
        unsigned char              flags;                /*    29     1 */
}; /* size: 32, sum members: 28, holes: 1, sum holes: 2, padding: 2 */

So that we can kill that hole, protocol can only go all the way to 255 (RAW).

Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
2006-12-02 21:30:55 -08:00
..
2006-12-02 21:22:48 -08:00
2006-12-02 21:21:08 -08:00
2006-12-02 21:22:55 -08:00
2006-09-22 14:54:40 -07:00
2006-09-28 18:02:58 -07:00
2006-09-28 18:01:06 -07:00
2006-12-02 21:23:41 -08:00
2006-11-05 14:11:25 -08:00
2006-03-23 07:12:57 -05:00
2006-12-02 21:21:23 -08:00
2006-03-20 22:59:36 -08:00
2006-12-02 21:22:52 -08:00
2006-09-28 18:02:10 -07:00
2006-12-02 21:27:19 -08:00
2006-06-30 14:12:10 -07:00
2006-12-02 21:30:48 -08:00