if_gif.c (105340) | if_gif.c (106939) |
---|---|
1/* $FreeBSD: head/sys/net/if_gif.c 105340 2002-10-17 17:47:55Z ume $ */ | 1/* $FreeBSD: head/sys/net/if_gif.c 106939 2002-11-15 00:00:15Z sam $ */ |
2/* $KAME: if_gif.c,v 1.87 2001/10/19 08:50:27 itojun Exp $ */ 3 4/* 5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 349 unchanged lines hidden (view full) --- 359 */ 360 struct mbuf m0; 361 u_int32_t af = dst->sa_family; 362 363 m0.m_next = m; 364 m0.m_len = 4; 365 m0.m_data = (char *)⁡ 366 | 2/* $KAME: if_gif.c,v 1.87 2001/10/19 08:50:27 itojun Exp $ */ 3 4/* 5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 349 unchanged lines hidden (view full) --- 359 */ 360 struct mbuf m0; 361 u_int32_t af = dst->sa_family; 362 363 m0.m_next = m; 364 m0.m_len = 4; 365 m0.m_data = (char *)⁡ 366 |
367 bpf_mtap(ifp, &m0); | 367 BPF_MTAP(ifp, &m0); |
368 } 369 ifp->if_opackets++; 370 ifp->if_obytes += m->m_pkthdr.len; 371 372 /* inner AF-specific encapsulation */ 373 374 /* XXX should we check if our outer source is legal? */ 375 --- 53 unchanged lines hidden (view full) --- 429 */ 430 struct mbuf m0; 431 u_int32_t af1 = af; 432 433 m0.m_next = m; 434 m0.m_len = 4; 435 m0.m_data = (char *)&af1; 436 | 368 } 369 ifp->if_opackets++; 370 ifp->if_obytes += m->m_pkthdr.len; 371 372 /* inner AF-specific encapsulation */ 373 374 /* XXX should we check if our outer source is legal? */ 375 --- 53 unchanged lines hidden (view full) --- 429 */ 430 struct mbuf m0; 431 u_int32_t af1 = af; 432 433 m0.m_next = m; 434 m0.m_len = 4; 435 m0.m_data = (char *)&af1; 436 |
437 bpf_mtap(ifp, &m0); | 437 BPF_MTAP(ifp, &m0); |
438 } 439 440 if (ng_gif_input_p != NULL) { 441 (*ng_gif_input_p)(ifp, &m, af); 442 if (m == NULL) 443 return; 444 } 445 --- 418 unchanged lines hidden --- | 438 } 439 440 if (ng_gif_input_p != NULL) { 441 (*ng_gif_input_p)(ifp, &m, af); 442 if (m == NULL) 443 return; 444 } 445 --- 418 unchanged lines hidden --- |