spppcontrol.c (44242) | spppcontrol.c (44345) |
---|---|
1/* 2 * Copyright (c) 1997 Joerg Wunsch 3 * 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 */ 26 27#ifndef lint 28static const char rcsid[] = | 1/* 2 * Copyright (c) 1997 Joerg Wunsch 3 * 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 */ 26 27#ifndef lint 28static const char rcsid[] = |
29 "$Id: spppcontrol.c,v 1.4 1998/08/03 06:24:59 charnier Exp $"; | 29 "$Id: spppcontrol.c,v 1.5 1999/02/23 21:47:05 gj Exp $"; |
30#endif /* not lint */ 31 32#include <sys/param.h> 33#include <sys/callout.h> 34#include <sys/ioctl.h> 35#include <sys/socket.h> 36 37#include <net/if.h> --- 188 unchanged lines hidden (view full) --- 226 } 227 sprintf(buf, "0x%x", (unsigned)proto); 228 return buf; 229} 230 231const char * 232authflags(u_short flags) 233{ | 30#endif /* not lint */ 31 32#include <sys/param.h> 33#include <sys/callout.h> 34#include <sys/ioctl.h> 35#include <sys/socket.h> 36 37#include <net/if.h> --- 188 unchanged lines hidden (view full) --- 226 } 227 sprintf(buf, "0x%x", (unsigned)proto); 228 return buf; 229} 230 231const char * 232authflags(u_short flags) 233{ |
234 static char buf[20]; | 234 static char buf[30]; |
235 buf[0] = '\0'; 236 if (flags & AUTHFLAG_NOCALLOUT) 237 strcat(buf, " callin"); 238 if (flags & AUTHFLAG_NORECHALLENGE) 239 strcat(buf, " norechallenge"); 240 return buf; 241} | 235 buf[0] = '\0'; 236 if (flags & AUTHFLAG_NOCALLOUT) 237 strcat(buf, " callin"); 238 if (flags & AUTHFLAG_NORECHALLENGE) 239 strcat(buf, " norechallenge"); 240 return buf; 241} |