rfcomm_pppd.c (132711) | rfcomm_pppd.c (133178) |
---|---|
1/* 2 * rfcomm_pppd.c 3 * 4 * Copyright (c) 2001-2003 Maksim Yevmenkin <m_evmenkin@yahoo.com> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 12 unchanged lines hidden (view full) --- 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * 28 * $Id: rfcomm_pppd.c,v 1.5 2003/09/07 18:32:11 max Exp $ | 1/* 2 * rfcomm_pppd.c 3 * 4 * Copyright (c) 2001-2003 Maksim Yevmenkin <m_evmenkin@yahoo.com> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 12 unchanged lines hidden (view full) --- 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * 28 * $Id: rfcomm_pppd.c,v 1.5 2003/09/07 18:32:11 max Exp $ |
29 * $FreeBSD: head/usr.sbin/bluetooth/rfcomm_pppd/rfcomm_pppd.c 132711 2004-07-27 22:40:42Z emax $ | 29 * $FreeBSD: head/usr.sbin/bluetooth/rfcomm_pppd/rfcomm_pppd.c 133178 2004-08-05 16:32:41Z emax $ |
30 */ 31 32#include <bluetooth.h> 33#include <ctype.h> 34#include <err.h> 35#include <errno.h> 36#include <fcntl.h> 37#include <sdp.h> --- 391 unchanged lines hidden (view full) --- 429 430/* Display usage and exit */ 431static void 432usage(void) 433{ 434 fprintf(stdout, 435"Usage: %s options\n" \ 436"Where options are:\n" \ | 30 */ 31 32#include <bluetooth.h> 33#include <ctype.h> 34#include <err.h> 35#include <errno.h> 36#include <fcntl.h> 37#include <sdp.h> --- 391 unchanged lines hidden (view full) --- 429 430/* Display usage and exit */ 431static void 432usage(void) 433{ 434 fprintf(stdout, 435"Usage: %s options\n" \ 436"Where options are:\n" \ |
437"\t-a bdaddr BDADDR to listen on or connect to (required for client)\n" \ | 437"\t-a address Address to listen on or connect to (required for client)\n" \ |
438"\t-c Act as a clinet (default)\n" \ 439"\t-C channel RFCOMM channel to listen on or connect to (required)\n" \ 440"\t-d Run in foreground\n" \ 441"\t-l label Use PPP label (required)\n" \ 442"\t-s Act as a server\n" \ 443"\t-S Register Serial Port service (server mode only)\n" \ 444"\t-u N Tell PPP to operate on /dev/tunN (client mode only)\n" \ 445"\t-h Display this message\n", RFCOMM_PPPD); 446 447 exit(255); 448} /* usage */ 449 | 438"\t-c Act as a clinet (default)\n" \ 439"\t-C channel RFCOMM channel to listen on or connect to (required)\n" \ 440"\t-d Run in foreground\n" \ 441"\t-l label Use PPP label (required)\n" \ 442"\t-s Act as a server\n" \ 443"\t-S Register Serial Port service (server mode only)\n" \ 444"\t-u N Tell PPP to operate on /dev/tunN (client mode only)\n" \ 445"\t-h Display this message\n", RFCOMM_PPPD); 446 447 exit(255); 448} /* usage */ 449 |