if_arcsubr.c (127260) | if_arcsubr.c (127275) |
---|---|
1/* $NetBSD: if_arcsubr.c,v 1.36 2001/06/14 05:44:23 itojun Exp $ */ | 1/* $NetBSD: if_arcsubr.c,v 1.36 2001/06/14 05:44:23 itojun Exp $ */ |
2/* $FreeBSD: head/sys/net/if_arcsubr.c 127260 2004-03-21 06:34:34Z mdodd $ */ | 2/* $FreeBSD: head/sys/net/if_arcsubr.c 127275 2004-03-21 17:27:41Z mdodd $ */ |
3 4/* 5 * Copyright (c) 1994, 1995 Ignatios Souvatzis 6 * Copyright (c) 1982, 1989, 1993 7 * The Regents of the University of California. All rights reserved. 8 * 9 * Redistribution and use in source and binary forms, with or without 10 * modification, are permitted provided that the following conditions --- 137 unchanged lines hidden (view full) --- 148 ah = mtod(m, struct arphdr *); 149 ah->ar_hrd = htons(ARPHRD_ARCNET); 150 151 loop_copy = -1; /* if this is for us, don't do it */ 152 153 switch(ntohs(ah->ar_op)) { 154 case ARPOP_REVREQUEST: 155 case ARPOP_REVREPLY: | 3 4/* 5 * Copyright (c) 1994, 1995 Ignatios Souvatzis 6 * Copyright (c) 1982, 1989, 1993 7 * The Regents of the University of California. All rights reserved. 8 * 9 * Redistribution and use in source and binary forms, with or without 10 * modification, are permitted provided that the following conditions --- 137 unchanged lines hidden (view full) --- 148 ah = mtod(m, struct arphdr *); 149 ah->ar_hrd = htons(ARPHRD_ARCNET); 150 151 loop_copy = -1; /* if this is for us, don't do it */ 152 153 switch(ntohs(ah->ar_op)) { 154 case ARPOP_REVREQUEST: 155 case ARPOP_REVREPLY: |
156 type = htons(ARCTYPE_REVARP); | 156 atype = ARCTYPE_REVARP; |
157 break; 158 case ARPOP_REQUEST: 159 case ARPOP_REPLY: 160 default: | 157 break; 158 case ARPOP_REQUEST: 159 case ARPOP_REPLY: 160 default: |
161 type = htons(ARCTYPE_ARP); | 161 atype = ARCTYPE_ARP; |
162 break; 163 } 164 165 if (m->m_flags & M_BCAST) 166 bcopy(ifp->if_broadcastaddr, adst, ARC_ADDR_LEN); 167 else 168 bcopy(ar_tha(ah), adst, ARC_ADDR_LEN); 169 --- 689 unchanged lines hidden --- | 162 break; 163 } 164 165 if (m->m_flags & M_BCAST) 166 bcopy(ifp->if_broadcastaddr, adst, ARC_ADDR_LEN); 167 else 168 bcopy(ar_tha(ah), adst, ARC_ADDR_LEN); 169 --- 689 unchanged lines hidden --- |