diff options
author | rrs <rrs@FreeBSD.org> | 2012-06-12 13:31:32 +0000 |
---|---|---|
committer | rrs <rrs@FreeBSD.org> | 2012-06-12 13:31:32 +0000 |
commit | 7aa509cdffbd790413799924fc3d5f55055e2be0 (patch) | |
tree | 4164f7f08395ea55071bfc158fe59a4b14d672fe /sys/net/if_gif.c | |
parent | 45eb5de175896f9ad56034f23bea19fb9ebc411b (diff) | |
download | FreeBSD-src-7aa509cdffbd790413799924fc3d5f55055e2be0.zip FreeBSD-src-7aa509cdffbd790413799924fc3d5f55055e2be0.tar.gz |
Fix comment to better reflect how we are
cheating and using the csum_data. Also fix
style issues with the comments.
Diffstat (limited to 'sys/net/if_gif.c')
-rw-r--r-- | sys/net/if_gif.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/sys/net/if_gif.c b/sys/net/if_gif.c index 1b45d38..232c44a 100644 --- a/sys/net/if_gif.c +++ b/sys/net/if_gif.c @@ -385,8 +385,9 @@ keep_going: m->m_pkthdr.len -= GIF_HDR_LEN6; #endif #endif - /* Now pull back the af in packet that - * was saved in the address location. + /* + * Now pull back the af that we + * stashed in the csum_data. */ af = m->m_pkthdr.csum_data; @@ -504,9 +505,12 @@ gif_output(ifp, m, dst, ro) dst->sa_family = af; } af = dst->sa_family; - /* Now save the af in the inbound pkt csum - * data, this is a cheat since really - * gif tunnels don't do offload. + /* + * Now save the af in the inbound pkt csum + * data, this is a cheat since we are using + * the inbound csum_data field to carry the + * af over to the gif_start() routine, avoiding + * using yet another mtag. */ m->m_pkthdr.csum_data = af; if (!(ifp->if_flags & IFF_UP) || @@ -516,7 +520,8 @@ gif_output(ifp, m, dst, ro) goto end; } #ifdef ALTQ - /* Make altq aware of the bytes we will add + /* + * Make altq aware of the bytes we will add * when we actually send it. */ #ifdef INET |