iplang_y.y (153881) | iplang_y.y (161357) |
---|---|
1/* $FreeBSD: head/contrib/ipfilter/iplang/iplang_y.y 153881 2005-12-30 11:52:26Z guido $ */ | 1/* $FreeBSD: head/contrib/ipfilter/iplang/iplang_y.y 161357 2006-08-16 12:23:02Z guido $ */ |
2 3%{ 4/* 5 * Copyright (C) 1997-1998 by Darren Reed. 6 * 7 * See the IPFILTER.LICENCE file for details on licencing. 8 * | 2 3%{ 4/* 5 * Copyright (C) 1997-1998 by Darren Reed. 6 * 7 * See the IPFILTER.LICENCE file for details on licencing. 8 * |
9 * Id: iplang_y.y,v 2.9.2.2 2004/12/09 19:41:10 darrenr Exp 10 * $FreeBSD: head/contrib/ipfilter/iplang/iplang_y.y 153881 2005-12-30 11:52:26Z guido $ | 9 * Id: iplang_y.y,v 2.9.2.4 2006/03/17 12:11:29 darrenr Exp $ 10 * $FreeBSD: head/contrib/ipfilter/iplang/iplang_y.y 161357 2006-08-16 12:23:02Z guido $ |
11 */ 12 13#include <stdio.h> 14#include <string.h> 15#include <fcntl.h> 16#if !defined(__SVR4) && !defined(__svr4__) 17#include <strings.h> 18#else --- 1625 unchanged lines hidden (view full) --- 1644 1645 if (canip->ah_next) { 1646 fprintf(stderr, "cannot specify options after data body\n"); 1647 return; 1648 } 1649 for (sto = toipopts; sto->sto_st; sto++) 1650 if (sto->sto_st == state) 1651 break; | 11 */ 12 13#include <stdio.h> 14#include <string.h> 15#include <fcntl.h> 16#if !defined(__SVR4) && !defined(__svr4__) 17#include <strings.h> 18#else --- 1625 unchanged lines hidden (view full) --- 1644 1645 if (canip->ah_next) { 1646 fprintf(stderr, "cannot specify options after data body\n"); 1647 return; 1648 } 1649 for (sto = toipopts; sto->sto_st; sto++) 1650 if (sto->sto_st == state) 1651 break; |
1652 if (!sto || !sto->sto_st) { | 1652 if (!sto->sto_st) { |
1653 fprintf(stderr, "No mapping for state %d to IP option\n", 1654 state); 1655 return; 1656 } 1657 1658 hlen = sizeof(ip_t) + canip->ah_optlen; 1659 for (io = ionames; io->on_name; io++) 1660 if (io->on_value == sto->sto_op) --- 199 unchanged lines hidden --- | 1653 fprintf(stderr, "No mapping for state %d to IP option\n", 1654 state); 1655 return; 1656 } 1657 1658 hlen = sizeof(ip_t) + canip->ah_optlen; 1659 for (io = ionames; io->on_name; io++) 1660 if (io->on_value == sto->sto_op) --- 199 unchanged lines hidden --- |