Deleted Added
full compact
keysock.c (111119) keysock.c (113255)
1/* $FreeBSD: head/sys/netipsec/keysock.c 111119 2003-02-19 05:47:46Z imp $ */
1/* $FreeBSD: head/sys/netipsec/keysock.c 113255 2003-04-08 14:25:47Z des $ */
2/* $KAME: keysock.c,v 1.25 2001/08/13 20:07:41 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

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

109 if (m->m_len < sizeof(struct sadb_msg)) {
110 if ((m = m_pullup(m, sizeof(struct sadb_msg))) == 0) {
111 pfkeystat.out_nomem++;
112 error = ENOBUFS;
113 goto end;
114 }
115 }
116
2/* $KAME: keysock.c,v 1.25 2001/08/13 20:07:41 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

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

109 if (m->m_len < sizeof(struct sadb_msg)) {
110 if ((m = m_pullup(m, sizeof(struct sadb_msg))) == 0) {
111 pfkeystat.out_nomem++;
112 error = ENOBUFS;
113 goto end;
114 }
115 }
116
117 if ((m->m_flags & M_PKTHDR) == 0)
118 panic("key_output: not M_PKTHDR ??");
117 M_ASSERTPKTHDR(m);
119
120 KEYDEBUG(KEYDEBUG_KEY_DUMP, kdebug_mbuf(m));
121
122 msg = mtod(m, struct sadb_msg *);
123 pfkeystat.out_msgtype[msg->sadb_msg_type]++;
124 if (len != PFKEY_UNUNIT64(msg->sadb_msg_len)) {
125 pfkeystat.out_invlen++;
126 error = EINVAL;

--- 477 unchanged lines hidden ---
118
119 KEYDEBUG(KEYDEBUG_KEY_DUMP, kdebug_mbuf(m));
120
121 msg = mtod(m, struct sadb_msg *);
122 pfkeystat.out_msgtype[msg->sadb_msg_type]++;
123 if (len != PFKEY_UNUNIT64(msg->sadb_msg_len)) {
124 pfkeystat.out_invlen++;
125 error = EINVAL;

--- 477 unchanged lines hidden ---