]>
Commit | Line | Data |
---|---|---|
2123c23a | 1 | /* |
bcd9e019 | 2 | * "$Id: network.h,v 1.1.2.5 2004/08/23 18:01:56 mike Exp $" |
2123c23a | 3 | * |
4 | * Network interface definitions for the Common UNIX Printing System | |
5 | * (CUPS) scheduler. | |
6 | * | |
9639c4de | 7 | * Copyright 1997-2004 by Easy Software Products, all rights reserved. |
2123c23a | 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 | |
bcd9e019 | 19 | * Hollywood, Maryland 20636 USA |
2123c23a | 20 | * |
9639c4de | 21 | * Voice: (301) 373-9600 |
2123c23a | 22 | * EMail: cups-info@cups.org |
23 | * WWW: http://www.cups.org | |
24 | */ | |
25 | ||
26 | /* | |
27 | * Structures... | |
28 | */ | |
29 | ||
30 | typedef struct cups_netif_str /**** Network interface data ****/ | |
31 | { | |
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 */ | |
edd6ee99 | 36 | int is_local, /* Local (not point-to-point) interface? */ |
37 | port; /* Listen port */ | |
20264b99 | 38 | http_addr_t address, /* Network address */ |
2123c23a | 39 | mask, /* Network mask */ |
40 | broadcast; /* Broadcast address */ | |
41 | } cups_netif_t; | |
42 | ||
43 | ||
44 | /* | |
45 | * Globals... | |
46 | */ | |
47 | ||
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 */ | |
52 | ||
53 | /* | |
54 | * Prototypes... | |
55 | */ | |
56 | ||
57 | extern cups_netif_t *NetIFFind(const char *name); | |
58 | extern void NetIFFree(void); | |
59 | extern void NetIFUpdate(void); | |
60 | ||
61 | ||
62 | /* | |
bcd9e019 | 63 | * End of "$Id: network.h,v 1.1.2.5 2004/08/23 18:01:56 mike Exp $". |
2123c23a | 64 | */ |