X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fplugins%2Fpppoatm%2Fpppoatm.c;h=d693350bc473078b85030254b132a4217e690b9d;hb=52cd43a84bea524033b918b603698104f221bbb7;hp=f99fd0ad16c1eb6e1b5021c4a0a4f33f7dde03ef;hpb=dd41357657d1436fe20692aa43613ceae8e03fa0;p=ppp.git diff --git a/pppd/plugins/pppoatm/pppoatm.c b/pppd/plugins/pppoatm/pppoatm.c index f99fd0a..d693350 100644 --- a/pppd/plugins/pppoatm/pppoatm.c +++ b/pppd/plugins/pppoatm/pppoatm.c @@ -133,8 +133,6 @@ static int connect_pppoatm(void) int fd; struct atm_qos qos; - system ("/sbin/modprobe pppoatm"); - if (!device_got_set) no_device_given_pppoatm(); fd = socket(AF_ATMPVC, SOCK_DGRAM, 0); @@ -168,34 +166,6 @@ static void disconnect_pppoatm(void) close(pppoa_fd); } -static void send_config_pppoa(int mtu, - u_int32_t asyncmap, - int pcomp, - int accomp) -{ - int sock; - struct ifreq ifr; - if (mtu > pppoatm_max_mtu) - error("Couldn't increase MTU to %d", mtu); - sock = socket(AF_INET, SOCK_DGRAM, 0); - if (sock < 0) - fatal("Couldn't create IP socket: %m"); - strlcpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); - ifr.ifr_mtu = mtu; - if (ioctl(sock, SIOCSIFMTU, (caddr_t) &ifr) < 0) - fatal("ioctl(SIOCSIFMTU): %m"); - (void) close (sock); -} - -static void recv_config_pppoa(int mru, - u_int32_t asyncmap, - int pcomp, - int accomp) -{ - if (mru > pppoatm_max_mru) - error("Couldn't increase MRU to %d", mru); -} - void plugin_init(void) { #if defined(__linux__) @@ -217,8 +187,8 @@ struct channel pppoa_channel = { disconnect: &disconnect_pppoatm, establish_ppp: &generic_establish_ppp, disestablish_ppp: &generic_disestablish_ppp, - send_config: &send_config_pppoa, - recv_config: &recv_config_pppoa, + send_config: NULL, + recv_config: NULL, close: NULL, cleanup: NULL };