ip_encap.c (109623) | ip_encap.c (111119) |
---|---|
1/* $FreeBSD: head/sys/netinet/ip_encap.c 109623 2003-01-21 08:56:16Z alfred $ */ | 1/* $FreeBSD: head/sys/netinet/ip_encap.c 111119 2003-02-19 05:47:46Z imp $ */ |
2/* $KAME: ip_encap.c,v 1.41 2001/03/15 08:35:08 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 --- 472 unchanged lines hidden (view full) --- 482 483static void 484encap_fillarg(m, ep) 485 struct mbuf *m; 486 const struct encaptab *ep; 487{ 488 struct m_tag *tag; 489 | 2/* $KAME: ip_encap.c,v 1.41 2001/03/15 08:35:08 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 --- 472 unchanged lines hidden (view full) --- 482 483static void 484encap_fillarg(m, ep) 485 struct mbuf *m; 486 const struct encaptab *ep; 487{ 488 struct m_tag *tag; 489 |
490 tag = m_tag_get(PACKET_TAG_ENCAP, sizeof (void*), M_NOWAIT); | 490 tag = m_tag_get(PACKET_TAG_ENCAP, sizeof (void*), M_DONTWAIT); |
491 if (tag) { 492 *(void**)(tag+1) = ep->arg; 493 m_tag_prepend(m, tag); 494 } 495} 496 497void * 498encap_getarg(m) --- 12 unchanged lines hidden --- | 491 if (tag) { 492 *(void**)(tag+1) = ep->arg; 493 m_tag_prepend(m, tag); 494 } 495} 496 497void * 498encap_getarg(m) --- 12 unchanged lines hidden --- |