亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? dhcpr.c

?? vxworks的完整的源代碼
?? C
字號:
/* dhcpr.c - DHCP relay agent library *//* Copyright 1984 - 2002 Wind River Systems, Inc. */#include "copyright_wrs.h"/*modification history--------------------01h,23apr02,wap  Use BPF_WORDALIGN() when retreiving multiple messages from a                 BPF buffer (SPR #74215)01g,03dec01,vvv  fixed packet forwarding (SPR #71645)01f,16feb01,rae  fixed modhist line01e,14jun00,spm  upgraded to RFC 2131 and removed direct link-level access01d,06oct97,spm  removed reference to deleted endDriver global; replaced with                 support for dynamic driver type detection01c,06may97,spm  changed memory access to align IP header on four byte boundary01b,28apr97,spm  allowed user to change DHCP_MAX_HOPS setting01a,07apr97,spm  created by modifying WIDE project DHCP implementation*//*DESCRIPTIONThis library implements the relay agent of the Dynamic Host Configuration Protocol. It will transfer all DHCP or BOOTP messages arriving on theclient port of the specified network interfaces across subnet boundaries tothe IP addresses of other DHCP relay agents or DHCP servers.INCLUDE_FILES: dhcprLib.h*//* * WIDE Project DHCP Implementation * Copyright (c) 1995 Akihiro Tominaga * Copyright (c) 1995 WIDE Project * All rights reserved. * * Permission to use, copy, modify and distribute this software and its * documentation is hereby granted, provided only with the following * conditions are satisfied: * * 1. Both the copyright notice and this permission notice appear in *    all copies of the software, derivative works or modified versions, *    and any portions thereof, and that both notices appear in *    supporting documentation. * 2. All advertising materials mentioning features or use of this software *    must display the following acknowledgement: *      This product includes software developed by WIDE Project and *      its contributors. * 3. Neither the name of WIDE Project nor the names of its contributors *    may be used to endorse or promote products derived from this software *    without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE DEVELOPER ``AS IS'' AND WIDE * PROJECT DISCLAIMS ANY LIABILITY OF ANY KIND FOR ANY DAMAGES * WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. ALSO, THERE * IS NO WARRANTY IMPLIED OR OTHERWISE, NOR IS SUPPORT PROVIDED. * * Feedback of the results generated from any improvements or * extensions made to this software would be much appreciated. * Any such feedback should be sent to: *  *  Akihiro Tominaga *  WIDE Project *  Keio University, Endo 5322, Kanagawa, Japan *  (E-mail: dhcp-dist@wide.ad.jp) * * WIDE project has the rights to redistribute these changes. *//* includes */#include <stdio.h>#include <stdlib.h>#include <sys/ioctl.h>#include <netinet/in.h>#include <arpa/inet.h>#include "net/bpf.h"#include "logLib.h"#include "sockLib.h"#include "ioLib.h"#include "muxLib.h"#include "dhcprLib.h"#include "dhcp/dhcp.h"#include "dhcp/common.h"#include "dhcp/common_subr.h"/* globals */IMPORT BOOL dhcprInputHook (struct ifnet*, char*, int);struct msg dhcprMsgIn;IMPORT struct if_info *dhcprIntfaceList;IMPORT int dhcprBufSize;    /* size of receive buffer for each interface. */IMPORT char * pDhcprSendBuf;/* forward declarations */void dhcpServerRelay (struct if_info *);IMPORT void dhcpClientRelay (struct if_info *, int, char *);/********************************************************************************* dhcprStart - monitor specified network interfaces** This routine monitors the interfaces specified by the user for incoming* DHCP or BOOTP messages. It is the entry point for the relay agent task and * should only be called internally.** RETURNS: N/A** ERRNO: N/A** NOMANUAL*/void dhcprStart (void)    {    struct if_info *ifp = NULL;          /* pointer to interface */    struct if_info *pIf = NULL;              int n = 0;    struct bpf_hdr * 	pMsgHdr;    char * 		pMsgData;    int 		msglen;    int 		curlen;    int 		totlen;         /* Amount of data in BPF buffer. */  /****************************   * Main loop                *   * Process incoming message *   ****************************/      FOREVER        {        /* select and read from interfaces */        ifp = read_interfaces (dhcprIntfaceList, &n, dhcprBufSize);        if (ifp == NULL)            continue;        /* Divide each DHCP message in buffer into protocol sections. */        msglen = curlen = 0;        totlen = n;        pMsgHdr = (struct bpf_hdr *)ifp->buf;        pMsgData = ifp->buf;        while (curlen < totlen)            {            msglen = BPF_WORDALIGN(pMsgHdr->bh_hdrlen + pMsgHdr->bh_caplen);            curlen += msglen;            /* Set the IP pointer to skip the BPF and link level headers. */            dhcprMsgIn.ip = (struct ip *) (pMsgData + pMsgHdr->bh_hdrlen +                                           pMsgHdr->bh_linklen);            /* Check if message is addressed to us */            pIf = dhcprIntfaceList;	    while (pIf != NULL)		{		if (pIf->ipaddr.s_addr == dhcprMsgIn.ip->ip_dst.s_addr)		    break;		pIf = pIf->next;		}            if ((dhcprMsgIn.ip->ip_dst.s_addr == 0xffffffff || (pIf != NULL)) &&                  check_ipsum (dhcprMsgIn.ip))                dhcprMsgIn.udp = (struct udphdr *) ((char *) dhcprMsgIn.ip + 						    (dhcprMsgIn.ip->ip_hl << 2));            else                {                pMsgData = pMsgData + msglen;                pMsgHdr = (struct bpf_hdr *)pMsgData;                continue;                }            if (check_udpsum (dhcprMsgIn.ip, dhcprMsgIn.udp))                dhcprMsgIn.dhcp = (struct dhcp *) ((char *) dhcprMsgIn.udp +							    UDPHL);            else                {                pMsgData = pMsgData + msglen;                pMsgHdr = (struct bpf_hdr *)pMsgData;                continue;                }            dhcpMsgIn.ip = dhcprMsgIn.ip;            dhcpMsgIn.udp = dhcprMsgIn.udp;            dhcpMsgIn.dhcp = dhcprMsgIn.dhcp;            if (dhcpMsgIn.dhcp->op == BOOTREQUEST)                dhcpServerRelay (ifp);     /* process the packet */            else if (dhcpMsgIn.dhcp->op == BOOTREPLY)                dhcpClientRelay (dhcprIntfaceList, DHCPLEN (dhcprMsgIn.udp),                                 pDhcprSendBuf);            pMsgData = pMsgData + msglen;            pMsgHdr = (struct bpf_hdr *)pMsgData;            }        }    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美变态凌虐bdsm| 亚洲成av人综合在线观看| 国产一区二区电影| 亚洲欧美另类小说| 久久久久久亚洲综合影院红桃 | 这里只有精品电影| 久久综合狠狠综合久久综合88| 99国产一区二区三精品乱码| 日韩精品每日更新| 亚洲乱码国产乱码精品精可以看 | 亚洲激情第一区| 久久综合给合久久狠狠狠97色69| 91视频www| 国产精品一区二区三区网站| 亚洲精品一区二区三区99 | jiyouzz国产精品久久| 国产最新精品精品你懂的| 一区二区三区波多野结衣在线观看| 久久伊人蜜桃av一区二区| 欧美又粗又大又爽| 99久久精品国产一区| 国产成人精品在线看| 日韩精品1区2区3区| 亚洲乱码国产乱码精品精小说| 日本一区二区三区四区| 欧美日韩高清一区二区| 91蜜桃免费观看视频| caoporn国产一区二区| 国产一区二区精品在线观看| 日韩激情在线观看| 樱桃视频在线观看一区| 亚洲日韩欧美一区二区在线| 国产精品热久久久久夜色精品三区| 日韩一二三区不卡| 日韩一区二区免费在线观看| 99久久99久久精品免费观看| 久久国产综合精品| 国内精品不卡在线| 狠狠色伊人亚洲综合成人| 九九久久精品视频 | 午夜久久久久久电影| 亚洲精品一二三四区| 亚洲专区一二三| 亚洲a一区二区| 日本亚洲天堂网| 久久爱www久久做| 亚洲免费在线视频一区 二区| 亚洲欧洲综合另类| 三级影片在线观看欧美日韩一区二区| 亚洲电影一级黄| 蜜桃av噜噜一区二区三区小说| 亚洲激情成人在线| 日韩成人av影视| 精品一区中文字幕| 高清成人免费视频| 日本精品一区二区三区高清| jvid福利写真一区二区三区| 欧美综合久久久| 欧美一卡二卡在线| 国产女人aaa级久久久级 | 成人福利视频在线| 欧洲视频一区二区| 日韩欧美卡一卡二| 精品国产乱子伦一区| 国产精品卡一卡二卡三| 亚洲中国最大av网站| 亚洲激情在线激情| 一区二区不卡在线视频 午夜欧美不卡在| 亚洲精品高清在线| 蜜桃av一区二区| 不卡欧美aaaaa| 91.com视频| 亚洲人被黑人高潮完整版| 天天爽夜夜爽夜夜爽精品视频| 国产伦理精品不卡| 欧美少妇一区二区| 欧美电影免费观看高清完整版 | 粉嫩av一区二区三区粉嫩| 91免费精品国自产拍在线不卡| 精一区二区三区| 在线观看免费亚洲| 久久人人爽爽爽人久久久| 亚洲自拍偷拍麻豆| 久久99精品久久久久久动态图 | 日本在线不卡一区| 成人av一区二区三区| 日韩免费福利电影在线观看| 亚洲宅男天堂在线观看无病毒| 国产真实精品久久二三区| 色综合天天综合网天天看片| 欧美激情中文字幕一区二区| 免费人成在线不卡| 欧美视频第二页| 日韩一区欧美一区| 蜜桃一区二区三区四区| 欧美体内she精视频| 蜜臀精品一区二区三区在线观看 | 国产片一区二区三区| av中文字幕亚洲| 丝袜脚交一区二区| 国产亚洲精久久久久久| 91色在线porny| 奇米色一区二区| 国产精品美女久久久久久久久| 色诱亚洲精品久久久久久| 七七婷婷婷婷精品国产| 国产欧美一区二区精品性色| 在线免费观看日本欧美| 韩国在线一区二区| 亚洲综合图片区| 国产亚洲综合在线| 色综合久久久网| 秋霞国产午夜精品免费视频| 国产精品第五页| 日韩一级片在线观看| 91天堂素人约啪| 国产精品性做久久久久久| 亚洲美女免费视频| 国产欧美一区视频| 91精品国产一区二区三区香蕉| 国产91丝袜在线观看| 亚洲妇女屁股眼交7| 欧美极品xxx| 日韩精品自拍偷拍| 欧美日韩一级片在线观看| 成人夜色视频网站在线观看| 老司机午夜精品| 丝袜a∨在线一区二区三区不卡| 日韩美女视频一区| 久久久久成人黄色影片| 91精品国产综合久久蜜臀| 91麻豆精品一区二区三区| 国产高清久久久久| 国内成人精品2018免费看| 五月激情综合网| 亚洲第一av色| 亚洲精品五月天| 136国产福利精品导航| 久久久久久久久久久久久女国产乱| 欧美日韩亚洲不卡| 色老汉一区二区三区| 成人午夜电影久久影院| 国产高清在线精品| 国产精品99久久久久久久女警| 麻豆成人免费电影| 一区二区三区四区在线免费观看| 久久久91精品国产一区二区三区| 欧美成人午夜电影| 精品卡一卡二卡三卡四在线| 日韩欧美中文字幕制服| 欧美精品亚洲二区| 欧美丰满嫩嫩电影| 欧美一级欧美三级| 91精品国产色综合久久ai换脸| 欧美精品日日鲁夜夜添| 精品视频全国免费看| 欧美麻豆精品久久久久久| 欧美精品久久99| 日韩欧美一区在线| 精品成人私密视频| 亚洲国产精品成人综合色在线婷婷| 日本一区二区三区四区| 亚洲免费av高清| 午夜精品福利久久久| 蜜臀久久99精品久久久画质超高清| 麻豆91在线播放| 成人美女在线观看| 在线观看视频一区二区欧美日韩| 欧美午夜在线一二页| 欧美哺乳videos| 亚洲欧美综合在线精品| 亚洲国产一区二区三区青草影视| 免费人成精品欧美精品| 国产91高潮流白浆在线麻豆| 99久久er热在这里只有精品15| 欧美日韩在线直播| 欧美精品一区二区三区蜜桃| 最近日韩中文字幕| 日韩成人av影视| 成人动漫一区二区在线| 欧美老女人在线| 国产欧美日韩综合精品一区二区| 亚洲另类春色校园小说| 蜜桃视频一区二区| 99精品黄色片免费大全| 欧美一二三区在线观看| 国产精品素人视频| 奇米影视一区二区三区小说| 97国产精品videossex| 日韩精品自拍偷拍| 亚洲欧美乱综合| 国产在线播精品第三| 欧美日韩一区二区在线观看视频| 欧美精品一区二区精品网| 综合欧美一区二区三区| 免费成人结看片| 99re这里只有精品视频首页| 欧美电影免费观看完整版| 中文字幕精品三区| 五月天激情小说综合|