]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | /* |
2 | * "$Id: network.h 4719 2005-09-28 21:12:44Z mike $" | |
3 | * | |
4 | * Network interface definitions for the Common UNIX Printing System | |
5 | * (CUPS) scheduler. | |
6 | * | |
7 | * Copyright 1997-2005 by Easy Software Products, all rights reserved. | |
8 | * | |
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 | |
14 | * at: | |
15 | * | |
16 | * Attn: CUPS Licensing Information | |
17 | * Easy Software Products | |
18 | * 44141 Airport View Drive, Suite 204 | |
19 | * Hollywood, Maryland 20636 USA | |
20 | * | |
21 | * Voice: (301) 373-9600 | |
22 | * EMail: cups-info@cups.org | |
23 | * WWW: http://www.cups.org | |
24 | */ | |
25 | ||
26 | /* | |
27 | * Structures... | |
28 | */ | |
29 | ||
30 | typedef struct cupsd_netif_s /**** Network interface data ****/ | |
31 | { | |
32 | struct cupsd_netif_s *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 */ | |
41 | } cupsd_netif_t; | |
42 | ||
43 | ||
44 | /* | |
45 | * Globals... | |
46 | */ | |
47 | ||
48 | VAR time_t NetIFTime VALUE(0); | |
49 | /* Network interface list time */ | |
50 | VAR cupsd_netif_t *NetIFList VALUE(NULL); | |
51 | /* List of network interfaces */ | |
52 | ||
53 | /* | |
54 | * Prototypes... | |
55 | */ | |
56 | ||
57 | extern cupsd_netif_t *cupsdNetIFFind(const char *name); | |
58 | extern void cupsdNetIFFree(void); | |
59 | extern void cupsdNetIFUpdate(void); | |
60 | ||
61 | ||
62 | /* | |
63 | * End of "$Id: network.h 4719 2005-09-28 21:12:44Z mike $". | |
64 | */ |