lkml.org 
[lkml]   [2002]   [Oct]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: 2.5.45 ipmr.c syntax error
    Randy.Dunlap wrote:
    > gcc -Wp,-MD,net/ipv4/.ipmr.o.d -D__KERNEL__ -Iinclude -Wall
    > -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
    > -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
    > -march=i686 -Iarch/i386/mach-generic -nostdinc -iwithprefix include
    > -DKBUILD_BASENAME=ipmr -c -o net/ipv4/ipmr.o net/ipv4/ipmr.c
    > net/ipv4/ipmr.c: In function `ipmr_forward_finish':
    > net/ipv4/ipmr.c:1114: structure has no member named `pmtu'
    > net/ipv4/ipmr.c: In function `ipmr_queue_xmit':
    > net/ipv4/ipmr.c:1170: structure has no member named `pmtu'
    > make[2]: *** [net/ipv4/ipmr.o] Error 1
    > make[1]: *** [net/ipv4] Error 2
    > make: *** [net] Error 2


    --- linux/net/ipv4/ipmr.c~ Thu Oct 31 01:54:40 2002
    +++ linux/net/ipv4/ipmr.c Thu Oct 31 01:55:31 2002
    @@ -1111,7 +1111,7 @@
    {
    struct dst_entry *dst = skb->dst;

    - if (skb->len <= dst->pmtu)
    + if (skb->len <= dst_pmtu(dst))
    return dst->output(skb);
    else
    return ip_fragment(skb, dst->output);
    @@ -1167,7 +1167,7 @@

    dev = rt->u.dst.dev;

    - if (skb->len+encap > rt->u.dst.pmtu && (ntohs(iph->frag_off) & IP_DF)) {
    + if (skb->len+encap > dst_pmtu(rt->u.dst) && (ntohs(iph->frag_off) & IP_DF)) {
    /* Do not fragment multicasts. Alas, IPv4 does not
    allow to send ICMP, so that packets will disappear
    to blackhole.
    --
    Skip
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:30    [W:0.048 / U:179.784 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site