Deleted Added
full compact
if_iso88025subr.c (96184) if_iso88025subr.c (102291)
1/*
2 * Copyright (c) 1998, Larry Lile
3 * All rights reserved.
4 *
5 * For latest sources and information on this driver, please
6 * go to http://anarchy.stdio.com.
7 *
8 * Questions, comments or suggestions should be directed to

--- 16 unchanged lines hidden (view full) ---

25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
1/*
2 * Copyright (c) 1998, Larry Lile
3 * All rights reserved.
4 *
5 * For latest sources and information on this driver, please
6 * go to http://anarchy.stdio.com.
7 *
8 * Questions, comments or suggestions should be directed to

--- 16 unchanged lines hidden (view full) ---

25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * $FreeBSD: head/sys/net/if_iso88025subr.c 96184 2002-05-07 22:14:06Z kbyanc $
33 * $FreeBSD: head/sys/net/if_iso88025subr.c 102291 2002-08-22 21:24:01Z archie $
34 *
35 */
36
37/*
38 *
39 * General ISO 802.5 (Token Ring) support routines
40 *
41 */

--- 206 unchanged lines hidden (view full) ---

248 if (rt->rt_flags & RTF_REJECT)
249 if (rt->rt_rmx.rmx_expire == 0 ||
250 time_second < rt->rt_rmx.rmx_expire)
251 senderr(rt == rt0 ? EHOSTDOWN : EHOSTUNREACH);
252 }
253
254 /* Calculate routing info length based on arp table entry */
255 if (rt && (sdl = (struct sockaddr_dl *)rt->rt_gateway))
34 *
35 */
36
37/*
38 *
39 * General ISO 802.5 (Token Ring) support routines
40 *
41 */

--- 206 unchanged lines hidden (view full) ---

248 if (rt->rt_flags & RTF_REJECT)
249 if (rt->rt_rmx.rmx_expire == 0 ||
250 time_second < rt->rt_rmx.rmx_expire)
251 senderr(rt == rt0 ? EHOSTDOWN : EHOSTUNREACH);
252 }
253
254 /* Calculate routing info length based on arp table entry */
255 if (rt && (sdl = (struct sockaddr_dl *)rt->rt_gateway))
256 if (SDL_ISO88025(sdl)->trld_rcf != NULL)
256 if (SDL_ISO88025(sdl)->trld_rcf != 0)
257 rif_len = TR_RCF_RIFLEN(SDL_ISO88025(sdl)->trld_rcf);
258
259 /* Generate a generic 802.5 header for the packet */
260 gen_th.ac = TR_AC;
261 gen_th.fc = TR_LLC_FRAME;
262 (void)memcpy((caddr_t)gen_th.iso88025_shost, (caddr_t)ac->ac_enaddr,
263 sizeof(ac->ac_enaddr));
264 if (rif_len) {

--- 307 unchanged lines hidden ---
257 rif_len = TR_RCF_RIFLEN(SDL_ISO88025(sdl)->trld_rcf);
258
259 /* Generate a generic 802.5 header for the packet */
260 gen_th.ac = TR_AC;
261 gen_th.fc = TR_LLC_FRAME;
262 (void)memcpy((caddr_t)gen_th.iso88025_shost, (caddr_t)ac->ac_enaddr,
263 sizeof(ac->ac_enaddr));
264 if (rif_len) {

--- 307 unchanged lines hidden ---