Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet Actually, our local ip_off variable isn't needed.



details:   https://anonhg.NetBSD.org/src/rev/928b0c2800b2
branches:  trunk
changeset: 499094:928b0c2800b2
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sat Nov 11 00:55:51 2000 +0000

description:
Actually, our local ip_off variable isn't needed.

diffstat:

 sys/netinet/ip_output.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r 3ca567c60efc -r 928b0c2800b2 sys/netinet/ip_output.c
--- a/sys/netinet/ip_output.c   Sat Nov 11 00:53:24 2000 +0000
+++ b/sys/netinet/ip_output.c   Sat Nov 11 00:55:51 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_output.c,v 1.78 2000/11/11 00:52:39 thorpej Exp $   */
+/*     $NetBSD: ip_output.c,v 1.79 2000/11/11 00:55:51 thorpej Exp $   */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -184,7 +184,7 @@
        struct socket *so;
        struct secpolicy *sp = NULL;
 #endif /*IPSEC*/
-       u_int16_t ip_len, ip_off;
+       u_int16_t ip_len;
 
        va_start(ap, m0);
        opt = va_arg(ap, struct mbuf *);
@@ -425,7 +425,6 @@
         * network order.
         */
        ip_len = ip->ip_len;
-       ip_off = ip->ip_off;
 
        HTONS(ip->ip_len);
        HTONS(ip->ip_off);
@@ -546,7 +545,6 @@
        hlen = ip->ip_hl << 2;
 #endif
        ip_len = ntohs(ip->ip_len);
-       ip_off = ntohs(ip->ip_off);
 
        if (ro->ro_rt == NULL) {
                if ((flags & IP_ROUTETOIF) == 0) {



Home | Main Index | Thread Index | Old Index