1/*
2 * Copyright (c) 2001-2003
3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus).
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
--- 12 unchanged lines hidden (view full) ---
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 * Author: Hartmut Brandt <harti@freebsd.org>
28 *
29 * $Begemot: libunimsg/netnatm/msg/uni_ie.c,v 1.16 2005/05/23 12:06:30 brandt_h Exp $
30 *
31 * Private definitions for the IE code file.
32 *
33 * This file includes the table generated automatically.
34 */
35
36#include <sys/types.h>
37#include <sys/param.h>
--- 6192 unchanged lines hidden (view full) ---
6230
6231 while(ielen) {
6232 switch(*msg->b_rptr++) {
6233
6234 case 0x81:
6235 if(!vpi_seen) {
6236 ie->vpi = *msg->b_rptr++ << 8;
6237 ie->vpi |= *msg->b_rptr++;
6238 vpi_seen = 1;
6239 } else {
6240 msg->b_rptr += 2;
6241 }
6242 ielen -= 3;
6243 ie->h.present |= UNI_CALLED_SOFT_VCI_P;
6244 break;
6245
6246 case 0x82:
6247 if(!vci_seen) {
6248 ie->vci = *msg->b_rptr++ << 8;
6249 ie->vci |= *msg->b_rptr++;
6250 vci_seen = 1;
6251 } else {
6252 msg->b_rptr += 2;
6253 }
6254 ie->h.present |= UNI_CALLED_SOFT_VCI_P;
6255 ielen -= 3;
6256 break;
6257
6258 default:
--- 906 unchanged lines hidden ---
2 * Copyright (c) 2001-2003
3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus).
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
--- 12 unchanged lines hidden (view full) ---
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 * Author: Hartmut Brandt <harti@freebsd.org>
28 *
29 * $Begemot: libunimsg/netnatm/msg/uni_ie.c,v 1.16 2005/05/23 12:06:30 brandt_h Exp $
30 *
31 * Private definitions for the IE code file.
32 *
33 * This file includes the table generated automatically.
34 */
35
36#include <sys/types.h>
37#include <sys/param.h>
--- 6192 unchanged lines hidden (view full) ---
6230
6231 while(ielen) {
6232 switch(*msg->b_rptr++) {
6233
6234 case 0x81:
6235 if(!vpi_seen) {
6236 ie->vpi = *msg->b_rptr++ << 8;
6237 ie->vpi |= *msg->b_rptr++;
6238 vpi_seen = 1;
6239 } else {
6240 msg->b_rptr += 2;
6241 }
6242 ielen -= 3;
6243 ie->h.present |= UNI_CALLED_SOFT_VCI_P;
6244 break;
6245
6246 case 0x82:
6247 if(!vci_seen) {
6248 ie->vci = *msg->b_rptr++ << 8;
6249 ie->vci |= *msg->b_rptr++;
6250 vci_seen = 1;
6251 } else {
6252 msg->b_rptr += 2;
6253 }
6254 ie->h.present |= UNI_CALLED_SOFT_VCI_P;
6255 ielen -= 3;
6256 break;
6257
6258 default:
--- 906 unchanged lines hidden ---