snmpd.h (8d7f605b6c744bbf454b92d88aee811c01c9594a) | snmpd.h (04d1781439aa9bf5c34c0eee606a3909f3503fe4) |
---|---|
1/* 2 * Copyright (c) 2001-2003 3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus). 4 * All rights reserved. 5 * 6 * Author: Harti Brandt <harti@freebsd.org> 7 * 8 * Redistribution and use in source and binary forms, with or without --- 160 unchanged lines hidden (view full) --- 169 struct asn_oid index; /* table index of this tp point */ 170 TAILQ_ENTRY(tport) link; /* table link */ 171 struct transport *transport; /* who handles this */ 172}; 173TAILQ_HEAD(tport_list, tport); 174 175int snmpd_input(struct port_input *, struct tport *); 176void snmpd_input_close(struct port_input *); | 1/* 2 * Copyright (c) 2001-2003 3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus). 4 * All rights reserved. 5 * 6 * Author: Harti Brandt <harti@freebsd.org> 7 * 8 * Redistribution and use in source and binary forms, with or without --- 160 unchanged lines hidden (view full) --- 169 struct asn_oid index; /* table index of this tp point */ 170 TAILQ_ENTRY(tport) link; /* table link */ 171 struct transport *transport; /* who handles this */ 172}; 173TAILQ_HEAD(tport_list, tport); 174 175int snmpd_input(struct port_input *, struct tport *); 176void snmpd_input_close(struct port_input *); |
177void snmpd_input_init(struct port_input *); |
|
177 | 178 |
178 | |
179/* 180 * Transport domain 181 */ 182#define TRANS_NAMELEN 64 183 184struct transport_def { 185 const char *name; /* name of this transport */ 186 struct asn_oid id; /* OBJID of this transport */ 187 188 int (*start)(void); 189 int (*stop)(int); 190 191 void (*close_port)(struct tport *); 192 int (*init_port)(struct tport *); 193 194 ssize_t (*send)(struct tport *, const u_char *, size_t, 195 const struct sockaddr *, size_t); 196 ssize_t (*recv)(struct tport *, struct port_input *); | 179/* 180 * Transport domain 181 */ 182#define TRANS_NAMELEN 64 183 184struct transport_def { 185 const char *name; /* name of this transport */ 186 struct asn_oid id; /* OBJID of this transport */ 187 188 int (*start)(void); 189 int (*stop)(int); 190 191 void (*close_port)(struct tport *); 192 int (*init_port)(struct tport *); 193 194 ssize_t (*send)(struct tport *, const u_char *, size_t, 195 const struct sockaddr *, size_t); 196 ssize_t (*recv)(struct tport *, struct port_input *); |
197 198 /** send via a multi-socket port */ 199 ssize_t (*send2)(struct tport *, const u_char *, size_t, 200 struct port_input *); |
|
197}; 198struct transport { 199 struct asn_oid index; /* transport table index */ 200 TAILQ_ENTRY(transport) link; /* ... and link */ 201 u_int or_index; /* registration index */ 202 203 struct tport_list table; /* list of open ports */ 204 --- 138 unchanged lines hidden --- | 201}; 202struct transport { 203 struct asn_oid index; /* transport table index */ 204 TAILQ_ENTRY(transport) link; /* ... and link */ 205 u_int or_index; /* registration index */ 206 207 struct tport_list table; /* list of open ports */ 208 --- 138 unchanged lines hidden --- |