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.15 2004/08/05 07:10:59 brandt 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 } else {
6239 msg->b_rptr += 2;
6240 }
6241 ielen -= 3;
6242 ie->h.present |= UNI_CALLED_SOFT_VCI_P;
6243 break;
6244
6245 case 0x82:
6246 if(!vci_seen) {
6247 ie->vci = *msg->b_rptr++ << 8;
6248 ie->vci |= *msg->b_rptr++;
6249 } else {
6250 msg->b_rptr += 2;
6251 }
6252 ie->h.present |= UNI_CALLED_SOFT_VCI_P;
6253 ielen -= 3;
6254 break;
6255
6256 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.15 2004/08/05 07:10:59 brandt 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 } else {
6239 msg->b_rptr += 2;
6240 }
6241 ielen -= 3;
6242 ie->h.present |= UNI_CALLED_SOFT_VCI_P;
6243 break;
6244
6245 case 0x82:
6246 if(!vci_seen) {
6247 ie->vci = *msg->b_rptr++ << 8;
6248 ie->vci |= *msg->b_rptr++;
6249 } else {
6250 msg->b_rptr += 2;
6251 }
6252 ie->h.present |= UNI_CALLED_SOFT_VCI_P;
6253 ielen -= 3;
6254 break;
6255
6256 default:
--- 906 unchanged lines hidden ---