diff options
author | Randall Stewart <rrs@FreeBSD.org> | 2012-06-12 13:31:32 +0000 |
---|---|---|
committer | Randall Stewart <rrs@FreeBSD.org> | 2012-06-12 13:31:32 +0000 |
commit | 4013878828c1b05b9849353c4826c24d72dccaa2 (patch) | |
tree | 4164f7f08395ea55071bfc158fe59a4b14d672fe /sys/net | |
parent | c9e089587c6c825b85b07b8972cdfb6b1884ac1b (diff) | |
download | src-4013878828c1b05b9849353c4826c24d72dccaa2.tar.gz src-4013878828c1b05b9849353c4826c24d72dccaa2.zip |
Fix comment to better reflect how we are
cheating and using the csum_data. Also fix
style issues with the comments.
Notes
Notes:
svn path=/head/; revision=236957
Diffstat (limited to 'sys/net')
-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 1b45d38cf795..232c44a2241f 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 |