X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fplugins%2Fpppoatm%2Fpppoatm.c;h=7712c6d8fdd79ad9787c0902179ca715e63d6d10;hb=f0259e4526354c69482217dcf5f36aca6068d251;hp=f99fd0ad16c1eb6e1b5021c4a0a4f33f7dde03ef;hpb=dd41357657d1436fe20692aa43613ceae8e03fa0;p=ppp.git diff --git a/pppd/plugins/pppoatm/pppoatm.c b/pppd/plugins/pppoatm/pppoatm.c index f99fd0a..7712c6d 100644 --- a/pppd/plugins/pppoatm/pppoatm.c +++ b/pppd/plugins/pppoatm/pppoatm.c @@ -133,7 +133,7 @@ static int connect_pppoatm(void) int fd; struct atm_qos qos; - system ("/sbin/modprobe pppoatm"); + system ("/sbin/modprobe -q pppoatm"); if (!device_got_set) no_device_given_pppoatm(); @@ -168,34 +168,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 +189,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 };