nat_cmd.c (61863) | nat_cmd.c (62778) |
---|---|
1/*- 2 * The code in this file was written by Eivind Eklund <perhaps@yes.no>, 3 * who places it in the public domain without restriction. 4 * | 1/*- 2 * The code in this file was written by Eivind Eklund <perhaps@yes.no>, 3 * who places it in the public domain without restriction. 4 * |
5 * $FreeBSD: head/usr.sbin/ppp/nat_cmd.c 61863 2000-06-20 12:18:40Z brian $ | 5 * $FreeBSD: head/usr.sbin/ppp/nat_cmd.c 62778 2000-07-07 14:22:08Z brian $ |
6 */ 7 8#include <sys/param.h> 9#include <netinet/in.h> 10#include <arpa/inet.h> 11#include <netdb.h> 12#include <netinet/in_systm.h> 13#include <netinet/in.h> --- 404 unchanged lines hidden (view full) --- 418 log_Printf(LogDEBUG, "Found a frag header (%lu) - plus %d more frags (no" 419 "w %d)\n", (unsigned long)((struct ip *)MBUF_CTOP(bp))->ip_id, 420 nfrags, gfrags); 421 break; 422 423 case PKT_ALIAS_IGNORED: 424 if (log_IsKept(LogTCPIP)) { 425 log_Printf(LogTCPIP, "NAT engine ignored data:\n"); | 6 */ 7 8#include <sys/param.h> 9#include <netinet/in.h> 10#include <arpa/inet.h> 11#include <netdb.h> 12#include <netinet/in_systm.h> 13#include <netinet/in.h> --- 404 unchanged lines hidden (view full) --- 418 log_Printf(LogDEBUG, "Found a frag header (%lu) - plus %d more frags (no" 419 "w %d)\n", (unsigned long)((struct ip *)MBUF_CTOP(bp))->ip_id, 420 nfrags, gfrags); 421 break; 422 423 case PKT_ALIAS_IGNORED: 424 if (log_IsKept(LogTCPIP)) { 425 log_Printf(LogTCPIP, "NAT engine ignored data:\n"); |
426 PacketCheck(bundle, MBUF_CTOP(bp), bp->m_len, NULL); | 426 PacketCheck(bundle, MBUF_CTOP(bp), bp->m_len, NULL, NULL); |
427 } 428 break; 429 430 default: 431 log_Printf(LogWARN, "nat_LayerPull: Dropped a packet (%d)....\n", ret); 432 m_freem(bp); 433 bp = NULL; 434 break; 435 } 436 437 return bp; 438} 439 440struct layer natlayer = 441 { LAYER_NAT, "nat", nat_LayerPush, nat_LayerPull }; | 427 } 428 break; 429 430 default: 431 log_Printf(LogWARN, "nat_LayerPull: Dropped a packet (%d)....\n", ret); 432 m_freem(bp); 433 bp = NULL; 434 break; 435 } 436 437 return bp; 438} 439 440struct layer natlayer = 441 { LAYER_NAT, "nat", nat_LayerPush, nat_LayerPull }; |