Hello Nick,

tun.c:460:      case TUNSETNOCSUM:
tun.c:461:              /* Disable/Enable checksum */
tun.c:462:              if (arg)
tun.c:463:                      tun->flags |= TUN_NOCHECKSUM;
tun.c:464:              else
tun.c:465:                      tun->flags &= ~TUN_NOCHECKSUM;
tun.c:466:
tun.c:467:              DBG(KERN_INFO "%s: checksum %s\n",
tun.c:468:                  tun->name, arg ? "disabled" : "enabled");
tun.c:469:              break;
tun.c:470:

tun.c:216:      if (tun->flags & TUN_NOCHECKSUM)
tun.c:217:              skb->ip_summed = CHECKSUM_UNNECESSARY;

You'll see both ip_summed and CHECKSUM_UNNECESSARY in the sk_buff.h file 
in the kernel source.  The behaviour invoked by tun.c:217 seems to 
disable checking as per skbuff.h:1350 or so.  So yeah, I agree.

There is no better place to ask questions like this, because the volume 
of such questions is so low that it doesn't warrant a different list.

  - bish

Nick Martin wrote:
> Hello,
> 
> I was looking at the if_tun.h header file to try and find out what all 
> the ioctls for tun do, but I couldn't find anything that documents them. 
> Is there anywhere else I should be looking?
> 
> Specifically, I wanted to know what TUNSETNOCSUM does. This appears in 
> both the example programs in the documentation. I'm guessing it's tun 
> set no checksum, but what exactly does that mean?
> 
> Apologies if this is the wrong place to be asking this question. Any 
> help would be appreciated. Thanks.
> 
> Regards,
> 
> Nick Martin
> 
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> VTun-devel mailing list
> VTun-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/vtun-devel

-- 
        People don't know that vi was written for a world that
        doesn't exist anymore  -- Bill Joy, creator of vi
        http://www.theregister.co.uk/2003/09/11/bill_joys_greatest_gift/

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
VTun-devel mailing list
VTun-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vtun-devel

Reply via email to