CCP In PPP


 
Thread Tools Search this Thread
Special Forums IP Networking CCP In PPP
# 1  
Old 03-15-2007
CCP In PPP

Hi,
I am using linux-2.6.10 mandrake. In which i am establishing PPP sessions with the peer.During the PPP negotiations i negotiate even CCP-deflate compression option.
I just wanted to know the amount of memory which is being used in kernel space by the compression algorithms,when a ccp compressed session is established.
Or in general how will i come to know about the amount of memory being used in kernel space at run time.Becoz top command shows memory being used only in user space.

Regards,
Sriram..
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

No SMS notifications once ppp up

Hi all, I have an Siemens IoT2020 with a Sim7000e cellular board that I connect via USB to the board and connect to Telstra Cat-M1 network. I can send and receive SMS and do so using Node-Red but can also do with Minicom etc. When connected I get : root@iot2000:~# dmesg | grep USB ACPI:... (0 Replies)
Discussion started by: antc
0 Replies

2. Shell Programming and Scripting

SLIP/PPP questions

Hello all.. I need to script SLIP dial-up connections and wanted ask others about the following; - does pppd support SLIP (noticed some releases do and some don't) - if pppd doesn't support SLIP can bash variables be passed to a dip script (e.g. phone-number, ip-address) - or is another... (0 Replies)
Discussion started by: LAVco
0 Replies

3. Solaris

install PPP on Solaris 9

Background: I have been running Solaris 8 on an Ultra5 with 128MB and 4GB disk for years without upgrade. If it ain’t broke, don’t fix it. Now my ISP has upgraded their software, and no longer talks to my old (asppp!) software. Sun no longer ships newer versions of Solaris 8. So I bought Solaris... (1 Reply)
Discussion started by: sandee
1 Replies

4. IP Networking

How to get Caller Id in PPP

hello I am workin with PPP to send data from dos machine to unix & Linux machine using FTP with help of fax & voice modem(Caller id Enabled & Exchange provides facility). i need to identify phone(number) connect with Dos machine i.e. to identify from where data is send. so i want to get the... (0 Replies)
Discussion started by: yspl
0 Replies

5. IP Networking

PPP Network through TCP/IP

I have two unix systems. One is Redhat Linux and the other is Sun Solairs. I am runing PPP on my Linux machine but not on my Solaris machine. TCP/IP connects the two machines. I want to pick up PPP on both machines simultaneously with only one dial up connection on my linux machine. ... (4 Replies)
Discussion started by: Photon_Blast
4 Replies

6. UNIX for Dummies Questions & Answers

PPP in netcfg

Hi! I'm using RedHat 7.1 and I have some prolems with connecting with ppp. I have run modemtool and told that I'm using ttyS0. Whe I then try to set up a PPP connection using netcfg the PPP option is not there. I have all the other alternativs except PPP. What have I missed? (6 Replies)
Discussion started by: <Therapy>
6 Replies
Login or Register to Ask a Question
NG_MPPC(4)						   BSD Kernel Interfaces Manual 						NG_MPPC(4)

NAME
ng_mppc -- Microsoft MPPC/MPPE compression and encryption netgraph node type SYNOPSIS
#include <sys/types.h> #include <netgraph/ng_mppc.h> DESCRIPTION
The mppc node type implements the Microsoft Point-to-Point Compression (MPPC) and Microsoft Point-to-Point Encryption (MPPE) sub-protocols of the PPP protocol. These protocols are often used in conjunction with the Point-to-Point Tunneling Protocol (PPTP). The node has two hooks, comp for compression and decomp for decompression. Typically one or both of these hooks would be connected to the ng_ppp(4) node type hook of the same name. Each direction of traffic flow is independent of the other. HOOKS
This node type supports the following hooks: comp Connection to ng_ppp(4) comp hook. Incoming frames are compressed and/or encrypted, and sent back out the same hook. decomp Connection to ng_ppp(4) decomp hook. Incoming frames are decompressed and/or decrypted, and sent back out the same hook. CONTROL MESSAGES
This node type supports the generic control messages, plus the following: NGM_MPPC_CONFIG_COMP This command resets and configures the node for a session in the outgoing traffic direction (i.e., for compression and/or encryption). This command takes a struct ng_mppc_config as an argument: /* Length of MPPE key */ #define MPPE_KEY_LEN 16 /* MPPC/MPPE PPP negotiation bits */ #define MPPC_BIT 0x00000001 /* mppc compression bits */ #define MPPE_40 0x00000020 /* use 40 bit key */ #define MPPE_56 0x00000080 /* use 56 bit key */ #define MPPE_128 0x00000040 /* use 128 bit key */ #define MPPE_BITS 0x000000e0 /* mppe encryption bits */ #define MPPE_STATELESS 0x01000000 /* use stateless mode */ #define MPPC_VALID_BITS 0x010000e1 /* possibly valid bits */ /* Configuration for a session */ struct ng_mppc_config { u_char enable; /* enable */ u_int32_t bits; /* config bits */ u_char startkey[MPPE_KEY_LEN]; /* start key */ }; The enabled field enables traffic flow through the node. The bits field contains the bits as negotiated by the Compression Control Pro- tocol (CCP) in PPP. The startkey is only necessary if MPPE was negotiated, and must be equal to the session start key as defined for MPPE. This key is based on the MS-CHAP credentials used at link authentication time. NGM_MPPC_CONFIG_DECOMP This command resets and configures the node for a session in the incoming traffic direction (i.e., for decompression and/or decryption). This command takes a struct ng_mppc_config as an argument. NGM_MPPC_RESETREQ This message contains no arguments, and is bi-directional. If an error is detected during decompression, this message is sent by the node to the originator of the NGM_MPPC_CONFIG_DECOMP message that initiated the session. The receiver should respond by sending a PPP CCP Reset-Request to the peer. This message may also be received by this node type when a CCP Reset-Request is received by the local PPP entity. The node will respond by flushing its outgoing compression and encryption state so the remote side can resynchronize. SHUTDOWN
This node shuts down upon receipt of a NGM_SHUTDOWN control message, or when both hooks have been disconnected. COMPILATION
The kernel options NETGRAPH_MPPC_COMPRESSION and NETGRAPH_MPPC_ENCRYPTION are supplied to selectively compile in either or both capabilities. At least one of these must be defined, or else this node type is useless. The MPPC protocol requires proprietary compression code available from Hi/Fn (formerly STAC). These files must be obtained elsewhere and added to the kernel sources before this node type will compile with the NETGRAPH_MPPC_COMPRESSION option. SEE ALSO
netgraph(4), ng_ppp(4), ngctl(8) G. Pall, Microsoft Point-To-Point Compression (MPPC) Protocol, RFC 2118. G. S. Pall and G. Zorn, Microsoft Point-To-Point Encryption (MPPE) Protocol, draft-ietf-pppext-mppe-04.txt. K. Hamzeh, G. Pall, W. Verthein, J. Taarud, W. Little, and G. Zorn, Point-to-Point Tunneling Protocol (PPTP), RFC 2637. AUTHORS
Archie Cobbs <archie@FreeBSD.org> BUGS
In PPP, encryption should be handled by the Encryption Control Protocol (ECP) rather than CCP. However, Microsoft combined both compression and encryption into their ``compression'' algorithm, which is confusing. BSD
December 8, 1999 BSD