ip6_output.c (83366) | ip6_output.c (87565) |
---|---|
1/* $FreeBSD: head/sys/netinet6/ip6_output.c 83366 2001-09-12 08:38:13Z julian $ */ | 1/* $FreeBSD: head/sys/netinet6/ip6_output.c 87565 2001-12-09 17:48:08Z arr $ */ |
2/* $KAME: ip6_output.c,v 1.180 2001/05/21 05:37:50 jinmei 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 --- 1525 unchanged lines hidden (view full) --- 1535 1536 case SOPT_GET: 1537 switch (optname) { 1538 1539 case IPV6_PKTOPTIONS: 1540 if (in6p->in6p_options) { 1541 struct mbuf *m; 1542 m = m_copym(in6p->in6p_options, | 2/* $KAME: ip6_output.c,v 1.180 2001/05/21 05:37:50 jinmei 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 --- 1525 unchanged lines hidden (view full) --- 1535 1536 case SOPT_GET: 1537 switch (optname) { 1538 1539 case IPV6_PKTOPTIONS: 1540 if (in6p->in6p_options) { 1541 struct mbuf *m; 1542 m = m_copym(in6p->in6p_options, |
1543 0, M_COPYALL, M_WAIT); | 1543 0, M_COPYALL, M_TRYWAIT); |
1544 error = soopt_mcopyout(sopt, m); 1545 if (error == 0) 1546 m_freem(m); 1547 } else 1548 sopt->sopt_valsize = 0; 1549 break; 1550 1551 case IPV6_UNICAST_HOPS: --- 1010 unchanged lines hidden --- | 1544 error = soopt_mcopyout(sopt, m); 1545 if (error == 0) 1546 m_freem(m); 1547 } else 1548 sopt->sopt_valsize = 0; 1549 break; 1550 1551 case IPV6_UNICAST_HOPS: --- 1010 unchanged lines hidden --- |