Frame Overhead Discard Problem with Encapsulating Netgraph Node

From: Gerasimos Dimitriadis (gedimitr_at_auth.gr)
Date: 11/25/03

  • Next message: Eugene Grosbein: "Re: ipfw: pullup failed"
    To: <freebsd-net@freebsd.org>
    Date: Tue, 25 Nov 2003 12:18:15 +0200
    
    

    Dear all,

    I have built a netgraph node that allows the formation of multihop ad hoc wireless networks in FreeBSD. This node employs routing tables based on hardware addresses, in order to give the impression to upper layers that all the network nodes are within one hop. This netgraph node accepts all traffic to the wireless interface and encapsulates it using a custom header. The encapsulated packet propagates towards its destination according to the routing tables maintained at each intermediate host, and when it reaches its final destination the netgraph node deencapsulates it and sends it to the upper layers (upper hook of ng_ether node).

    This scheme worked fine with FreeBSD 4.7. However, when I ported it to 5.1 it was broken. I found out that the received encapsulated frames were discarded, because their size were longer than accepted / expected by the kernel (The if_ethersubr.c makes these checks in 5.1). The message appearing was:

    wi0: discard oversize frame (len 1536 > max 1514)

    no matter if I reduced the interface MTU, this message persists.

    I would like to ask you how can I tell the upper layers (i.e. IP, TCP/UDP) to leave more size in a packet, so that when my header is added, the total length does not exceed MTU + ether_header_length?

    Also, if there is another solution to my problem I would be grateful if you could inform me about it

    Thank you very much,

    Gerasimos Dimitriadis (gedimitr at auth.gr)
    _______________________________________________
    freebsd-net@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-net
    To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"


  • Next message: Eugene Grosbein: "Re: ipfw: pullup failed"

    Relevant Pages

    • Re: The Ultimate - A No-Numbers Dsplacement Cipher -Adacrypt.
      ... What will we strive after Hassan whispers the ... grateful tail's duty? ... Some oceans no matter how matter the coming crack. ...
      (sci.crypt)
    • Re: my work on numbers
      ... Read my e-mail .Thanks.I would be grateful to you for wasting time on ... > Here I am submitting my work on numbers as jpeg images which I have got ... > Although my work could be very simple,making me a matter of laugh. ...
      (sci.math)
    • Re: Motorcycle DIY
      ... I'd be grateful for any advice on the matter. ... how much it will cost to get fixed by a mechanic but I'm ...
      (uk.rec.motorcycles)
    • A "Happily" Birthday for my DD4?
      ... a trip to Disney and will be grateful no matter what comes of this-- ... each) for Cindy's Happily Ever After on HER birthday, ...
      (rec.arts.disney.parks)
    • Re: Eugene Robinson praying for Rick Warren.
      ... I don't see any of what you refer to. ... It doesn't matter. ... He just wants to do some drive-bys. ... I'm just grateful when they don't showcase his myriad ...
      (soc.motss)