Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

research: disable cksum validation #16

Open
AkihiroSuda opened this issue Aug 1, 2018 · 3 comments
Open

research: disable cksum validation #16

AkihiroSuda opened this issue Aug 1, 2018 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed libslirp

Comments

@AkihiroSuda
Copy link
Member

I think we can ignore cksum for our usecase but not 100% sure

@AkihiroSuda AkihiroSuda added enhancement New feature or request help wanted Extra attention is needed labels Aug 1, 2018
@AkihiroSuda
Copy link
Member Author

TODO: investigate what is TUN_F_CSUM

/* Features for GSO (TUNSETOFFLOAD). */
#define TUN_F_CSUM	0x01	/* You can hand me unchecksummed packets. */
#define TUN_F_TSO4	0x02	/* I can handle TSO for IPv4 packets */
#define TUN_F_TSO6	0x04	/* I can handle TSO for IPv6 packets */
#define TUN_F_TSO_ECN	0x08	/* I can handle TSO with ECN bits. */
#define TUN_F_UFO	0x10	/* I can handle UFO packets */

https://github.com/torvalds/linux/blob/6b4703768268d09ac928c64474fd686adf4574f9/include/uapi/linux/if_tun.h#L83-L88

@AkihiroSuda
Copy link
Member Author

https://elixir.bootlin.com/linux/v4.18-rc8/source/include/uapi/linux/if_tun.h#L32

TODO: investigate what is TUNSETNOCSUM

@AkihiroSuda
Copy link
Member Author

somebody's note https://ldpreload.com/p/tuntap-notes.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed libslirp
Projects
None yet
Development

No branches or pull requests

1 participant