Deleted Added
full compact
if_arcsubr.c (298075) if_arcsubr.c (298649)
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 298075 2016-04-15 17:30:33Z pfg $ */
2/* $FreeBSD: head/sys/net/if_arcsubr.c 298649 2016-04-26 15:38:17Z pfg $ */
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

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

269 if (m == NULL)
270 return 0;
271
272 ah = mtod(m, struct arc_header *);
273 if (!arc_isphds(ah->arc_type))
274 return m;
275
276 ++ac->ac_seqid; /* make the seqid unique */
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

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

269 if (m == NULL)
270 return 0;
271
272 ah = mtod(m, struct arc_header *);
273 if (!arc_isphds(ah->arc_type))
274 return m;
275
276 ++ac->ac_seqid; /* make the seqid unique */
277 tfrags = (m->m_pkthdr.len + ARC_MAX_DATA - 1) / ARC_MAX_DATA;
277 tfrags = howmany(m->m_pkthdr.len, ARC_MAX_DATA);
278 ac->fsflag = 2 * tfrags - 3;
279 ac->sflag = 0;
280 ac->rsflag = ac->fsflag;
281 ac->arc_dhost = ah->arc_dhost;
282 ac->arc_shost = ah->arc_shost;
283 ac->arc_type = ah->arc_type;
284
285 m_adj(m, ARC_HDRNEWLEN);

--- 547 unchanged lines hidden ---
278 ac->fsflag = 2 * tfrags - 3;
279 ac->sflag = 0;
280 ac->rsflag = ac->fsflag;
281 ac->arc_dhost = ah->arc_dhost;
282 ac->arc_shost = ah->arc_shost;
283 ac->arc_type = ah->arc_type;
284
285 m_adj(m, ARC_HDRNEWLEN);

--- 547 unchanged lines hidden ---