chiark / gitweb /
When printing messages about dropping IPv6, do not print anything about ihl.
[secnet.git] / slip.c
diff --git a/slip.c b/slip.c
index fad0a7ee394fa2a764e9853129f68cc19dac55b8..a75d50e5cab805f546a0e4eb7a06951ec83fd059 100644 (file)
--- a/slip.c
+++ b/slip.c
@@ -3,6 +3,25 @@
    just whole packets.  When transmitting we need to bytestuff anyway,
    and may be part-way through receiving. */
 
+/*
+ * This file is part of secnet.
+ * See README for full list of copyright holders.
+ *
+ * secnet is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version d of the License, or
+ * (at your option) any later version.
+ * 
+ * secnet is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * version 3 along with secnet; if not, see
+ * https://www.gnu.org/licenses/gpl.html.
+ */
+
 #include "secnet.h"
 #include "util.h"
 #include "netlink.h"
@@ -419,7 +438,7 @@ static list_t *userv_apply(closure_t *self, struct cloc loc, dict_t *context,
     item_t *item;
     dict_t *dict;
 
-    st=safe_malloc(sizeof(*st),"userv_apply");
+    NEW(st);
 
     /* First parameter must be a dict */
     item=list_elem(args,0);