]>
git.ipfire.org Git - thirdparty/cups.git/blob - scheduler/network.h
46f144158e610cf1d80577394ce91f2114bf52e4
4 * Network interface definitions for the Common UNIX Printing System
7 * Copyright 1997-2005 by Easy Software Products, all rights reserved.
9 * These coded instructions, statements, and computer programs are the
10 * property of Easy Software Products and are protected by Federal
11 * copyright law. Distribution and use rights are outlined in the file
12 * "LICENSE" which should have been included with this file. If this
13 * file is missing or damaged please contact Easy Software Products
16 * Attn: CUPS Licensing Information
17 * Easy Software Products
18 * 44141 Airport View Drive, Suite 204
19 * Hollywood, Maryland 20636 USA
21 * Voice: (301) 373-9600
22 * EMail: cups-info@cups.org
23 * WWW: http://www.cups.org
30 typedef struct cups_netif_str
/**** Network interface data ****/
32 struct cups_netif_str
*next
; /* Next interface in list */
33 char name
[32], /* Network interface name */
34 hostname
[HTTP_MAX_HOST
];
35 /* Hostname associated with interface */
36 int is_local
, /* Local (not point-to-point) interface? */
37 port
; /* Listen port */
38 http_addr_t address
, /* Network address */
39 mask
, /* Network mask */
40 broadcast
; /* Broadcast address */
48 VAR
time_t NetIFTime
VALUE(0);
49 /* Network interface list time */
50 VAR cups_netif_t
*NetIFList
VALUE(NULL
);
51 /* List of network interfaces */
57 extern cups_netif_t
*NetIFFind(const char *name
);
58 extern void NetIFFree(void);
59 extern void NetIFUpdate(void);